data-liberation-agent
Liberate any website into a complete, portable HTML site.
The problem
Closed platforms make it hard to leave. Wix has no HTML export and caps RSS at 20 posts. JavaScript-rendered content and limited APIs leave your site locked inside.
The solution
Point it at a URL and get your site back as plain files:
data-liberation https://example.com/
Every retained route becomes a directory of HTML, CSS, media, and fonts, with references rewritten so navigation works locally. Sites with shared headers/footers need include-aware serving or compilation as described below; the rendered pages need no DLA or browser assembly runtime.
HTML is the contract. The liberated site is the deliverable — not an intermediate format on the way to somewhere else, and not tied to any destination.
Release provenance
Release tarballs contain package/provenance.json (or provenance.json at the installed package root) with name, version, and commit. The commit is the full Git HEAD at pack time; packing requires a resolvable Git commit. This file is generated only during npm pack and removed afterward, leaving committed bundles unchanged.
Four commands
data-liberation <url> # liberate a site
data-liberation inspect <url> # assess a source before liberation
data-liberation compare <run-dir> # verify the copy against its source
data-liberation publish <run-dir> --to spacefast # put it on a live URL
That is the whole surface. Inspection is bounded and read-only; it reports measured route/document facts, coverage, issues, and explicit unknowns without writing a site. Liberation writes the site and exits; add --serve to keep a local server running so you can click through it.
See rendered inspection and complexity and source cleanup, comparison, and destination attribution for their API contracts, evidence, and limits.
Hosts that run captures for an importer (Studio, WordPress.com's capture runner) run the CLI from the release package with --json: stdout carries one result object (capture root, website/, receipt path, the complete/entrypointCaptured/missingRoutes verdict, route counts, media totals), exit 1 means no importable capture, and --progress=json streams NDJSON progress on stderr. See the CLI host contract.
Embedded Node consumers can import the same operations from data-liberation/runtime, or use the committed standalone dist/capture-engine.bundle.mjs. Both expose inspect, capture, compare, publish, and their extension registries.
Comparison defaults to immutable capture-session evidence at 390/768/1440px. --candidate <url> compares the portable capture to another rendered copy; --stage drift explicitly revisits the live source. Missing reference evidence stays unproven.
Inspect
data-liberation inspect https://example.com/ --discovery-limit 50 --sample-limit 5
The JSON result is versioned and destination-neutral. It samples the entry route plus distinct discovered route types, up to the configured limits. It does not claim browser-rendered layout, responsive reflow, or activated interactions: those remain explicit unknowns until full liberation and comparison.
Liberate