This project is a build-time tool that converts single-page application routes into static HTML files. It functions as a Webpack build plugin that uses a headless browser to execute JavaScript and capture the final DOM state as static markup to improve search engine optimization and initial page load speeds.
The system provides precise control over the capture process through custom render triggers, allowing HTML generation to be delayed until a specific DOM element appears, a custom event fires, or a timer expires. It also supports global state injection, which embeds JSON-serializable data into the browser window object before the rendering process begins.
Further capabilities include route specification for defining which paths to crawl and a post-processing function to modify HTML content or file paths before storage. To optimize production delivery, the tool includes an HTML minification utility to compress the generated output.