Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

SingleFile CLI

$ single-file Community Low Risk
Gildas Lormeau · Browser & Web · AGPL-3.0-or-later · macos / linux / windows

SingleFile CLI (single-file) drives a headless Chromium or Firefox browser to render dynamic JavaScript pages, wait for deferred images, and save the exact rendered DOM with inlined assets into one standalone HTML file (single-file <url> page.html).

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g single-file-cli
CLI vs MCP Decision CLI Only

Produces high-fidelity, asset-inlined single-HTML snapshots of JS-rendered pages that MCP browser tools do not emit.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Runs headlessly and non-interactively, with --dump-content and file output, but lacks JSON summary output or structured exit metadata.

  • Non-interactive headless execution; supports --dump-content and file output
Trust & Safety 21 / 25

Read-only page rendering plus local HTML file output; supports --remove-hidden-elements and --block-scripts.

  • Supports --block-scripts and explicit output file paths
Setup & Portability 11 / 15

Distributed via npm/npx across macOS, Linux, and Windows, but requires Playwright/Puppeteer or a local Chromium/Firefox binary.

  • Requires local Chrome/Chromium or --browser-executable-path
Utility & Efficiency 13 / 15

Best-in-class DOM fidelity for archiving dynamic JS pages, SPAs, and lazy-loaded images into a single HTML file.

  • Handles lazy images (--load-deferred-images-max-idle-time) and SPAs
Maintenance & Lineage 8 / 10

Maintained by the official SingleFile author (gildas-lormeau/single-file-cli) under AGPL-3.0-or-later.

  • Official SingleFile CLI project by Gildas Lormeau
Docs & Verifiability 7 / 10

README and --help document browser, crawler, and compression flags.

  • README documents --browser-executable-path and --browser-args

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Supports optional --browser-cookies-file or --http-headers per run; stores no persistent credentials.

Side Effects
Read-Only Local Write
Cost & Quotas

Free under AGPL-3.0-or-later; requires a local Chromium/Chrome or Firefox browser.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# SingleFile CLI Agent Rules
- Always write to a file path (`single-file <url> out.html`) rather than `--dump-content` to avoid blowing up stdout context.
- Pass `--browser-executable-path` if Chrome/Chromium is not auto-discovered.
- Use `--browser-args='["--no-sandbox"]'` only inside isolated Linux containers when required.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect CLI flags and browser options
single-file --help

Lists browser executable, lazy-image timeout, and asset-inlining flags without launching a browser.

Controlled Writes & Previews

Archive a rendered page to a standalone HTML file
single-file https://example.com page.html

Renders the URL headlessly and saves the complete DOM and inline resources to page.html.

Strengths for Agents

  • + Captures fully rendered JavaScript SPAs and lazy-loaded assets with high visual fidelity.
  • + Outputs portable single HTML files without needing a companion asset directory.

Caveats & Pitfalls

  • ! Depends on an external Chrome/Chromium/Firefox binary and can fail in headless Linux without --browser-executable-path.
  • ! No JSON report output for status/asset diagnostics.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI