SingleFile CLI is an open source command-line tool designed to save complete web pages as a single self-contained HTML file. It captures the rendered page in a headless browser and embeds all required resources directly into the output document, including stylesheets, scripts, images, and fonts. By consolidating every dependency into one file, it allows users to preserve a faithful copy of a web page that can be viewed offline without requiring external assets. SingleFile CLI works by controlling a browser through the Chrome DevTools Protocol, rendering the page before extracting and packaging all necessary resources. This approach helps ensure that the saved page closely matches the original appearance and functionality. SingleFile CLI can be used for automated archiving, research, documentation, or offline reading workflows where preserving a page exactly as displayed is important.

Features

  • Saves complete web pages as a single self-contained HTML file
  • Embeds CSS, JavaScript, images, and fonts directly into the document
  • Uses a headless browser and Chrome DevTools Protocol for page capture
  • Supports command-line automation and batch processing
  • Can process multiple pages or URLs through configurable options
  • Compatible with several JavaScript runtimes and containerized execution

Project Samples

Project Activity

See All Activity >

Categories

Web Scrapers

License

Affero GNU Public License

Follow single-file-cli

single-file-cli Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of single-file-cli!

Additional Project Details

Programming Language

JavaScript, Unix Shell

Related Categories

Unix Shell Web Scrapers, JavaScript Web Scrapers

Registered

2026-03-11