Files
sigilbox/README.md

20 lines
506 B
Markdown
Raw Normal View History

2026-05-14 08:12:13 -07:00
# Local Page Archiver
2026-05-15 01:00:27 -07:00
This project saves self-contained HTML archives. It opens the input with Playwright, captures the rendered HTML, and inlines external resources as `data:` URLs.
2026-05-14 08:12:13 -07:00
## CLI
```sh
npm install
npm run install-browsers
node src/cli.mjs archive "https://example.com/article"
```
For an existing HTML file:
```sh
2026-05-15 01:00:27 -07:00
node src/cli.mjs archive ./page.html
2026-05-14 08:12:13 -07:00
```
Archives are written to `ARCHIVE_PATH`, or to a development directory under the system temp directory when `ARCHIVE_PATH` is not set.