news.volyx.in

Show HN: CLI tool for saving web pages as a single file (github.com)

640 points by flatroze · 2614 days ago · 209 comments on HN

Article summary

The article presents a CLI tool called Monolith that saves web pages as a single HTML file, embedding CSS, images, and JavaScript assets. This tool is useful for archiving web pages and making them available offline. The tool uses data URLs to embed assets, which can result in large file sizes if the same resource is used multiple times. The article also discusses the tool's features, installation, and usage.

Main themes

  • web page archiving
  • offline access
  • data URL embedding
  • MHTML format
  • CLI tools
  • web scraping

What commenters say

  • The tool's approach to embedding assets as data URLs can lead to large file sizes and potential duplication of resources.
  • MHTML format is a suitable alternative for archiving web pages, but its support is limited across browsers.
  • The tool's ability to save web pages as a single HTML file makes it more accessible and easier to share than other archiving methods.
  • Using a tar file or other archive format could be a more efficient way to store web page assets, but may not be as convenient for non-technical users.
  • The tool's lack of support for dynamic content and JavaScript rendering is a significant limitation.
  • Converting MHTML files to standalone HTML files could be a useful feature, but may not be straightforward due to limitations in MHTML support.
  • The use of base64 encoding for images in MHTML files may have size limits that could be a problem for large images.