A high-speed terminal utility engineered to clone and mirror live websites for 100% offline browsing. Features recursive DOM crawling, automated asset downloading, relative path URL rewriting, and ZIP archive packaging.
Developers, designers, and archiving specialists often need to save offline mirrors of websites, documentation, or landing pages for analysis, backups, or offline demos. Traditional tools like `wget` are complex to configure, struggle with dynamic JavaScript rendering, and fail to rewrite relative CDN links properly.
Mirror CLI (`site-downloader`) was engineered to solve web cloning with terminal elegance. Combining Puppeteer for headless JavaScript rendering, Cheerio for fast DOM parsing, an intelligent link rewriting engine, and multi-threaded asset downloads, Mirror CLI generates 100% self-contained, offline-browsable directory structures and ZIP packages with zero broken links.
Puppeteer & Cheerio deep recursive crawler (`crawler.js`) that renders dynamic SPA pages and extracts all DOM asset nodes.
Parallel asset fetcher (`downloader.js`) handling CSS stylesheets, JS bundles, images, custom web fonts, and inline SVGs.
Intelligent URL rewriter (`rewriter.js`) converting cross-origin CDN links and absolute paths into relative local file system links.
Integrated `archiver` pipeline (`packager.js`) creating compressed ZIP packages of cloned sites for instant distribution.
Rich terminal user interface (`ui.js`) powered by Inquirer, Chalk, Ora spinners, Boxen containers, and custom theme presets.
History logger (`history.js`) tracking cloned domain logs, asset breakdown metrics, total file sizes, and download speeds.
Self-Contained Local File System Output
Fast Recursive Crawling & Extraction
Relative Asset Path Conversion
Interactive Prompts & Command-Line Flags
Live digital event management with real-time WebSockets.
Environmental sensor data & chart analytics interface.
Local-first media downloader & converter for 10+ social platforms.
The source code for Mirror-CLI is kept in a private repository due to client and enterprise confidentiality agreements.
If you are interested in reviewing the CLI architecture, script generators, or discussing custom automation tools, feel free to contact me directly!