Skip to content

Add an export command: a self-contained HTML page and CSV files - #1

Merged
abrignoni merged 1 commit into
mainfrom
feat/export
Oct 23, 2026
Merged

abrignoni merged 1 commit into
mainfrom
feat/export

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Adds export, which writes a database out as a page you open in a browser plus CSV files, for examiners who would rather not use a command line.

  • index.html works offline, shows source hashes, the database records and each collection; rows expand to the body, revision tree and kept older bodies, and image blobs show in place.
  • Every value is escaped, expanded rows render with textContent, and a CSP blocks outside requests.
  • Checked in a browser on two corpus stores: a 7,172-document store gives a 51 MB page that opens in about half a second.

🤖 Generated with Claude Code

`export <store> <new folder>` writes index.html, documents.csv, revisions.csv, blobs.csv,
copies of image blobs and export_info.json with the SHA-256 of every source file. The page
needs no network, escapes every value, renders expanded rows with textContent under a
Content-Security-Policy, and its filter searches the full bodies. CI now also fails on a
ResourceWarning. Version 1.1.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni merged commit fb7e4ad into main Oct 23, 2026
5 checks passed
@abrignoni
abrignoni deleted the feat/export branch October 23, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant