
A CLI tool for saving complete web pages as a single HTML file.
Monolith is a command-line tool designed for data hoarders and web archivists who want to save complete web pages as single, self-contained HTML files. Unlike traditional "Save page as" functionality, monolith embeds all CSS, images, and JavaScript assets directly into the HTML document as data URLs, creating a completely portable file that renders exactly as it appeared online.
The tool excels at creating perfect offline copies of web pages that remain fully functional without an internet connection. This makes it superior to tools like wget for archival purposes, as the resulting HTML files contain everything needed for proper rendering. Monolith offers extensive customization options, allowing users to exclude specific content types (audio, video, JavaScript, CSS), whitelist or blacklist domains, handle authentication, and even output in MHTML format.
Monolith is perfect for researchers, archivists, content creators, and anyone who needs to preserve web content for offline viewing or sharing. While it doesn't include a JavaScript engine for dynamic content, it can be combined with headless browsers like Chromium to capture pages that load content dynamically. The tool supports various authentication methods and proxy configurations, making it suitable for both public and private content archival.
# via Homebrew
brew install monolith
# via Cargo
cargo install monolith