70c384cdcb0aaa11242a58e6d031c7ce93ad65fc
The line printed on every page is now a header stored in the document as header.fields: any number of Text / Last updated fields, each optionally aligned left or right (at most one of each). Printed order is left, unaligned, right. Edited from a Print header panel with live preview; documents without a header use the previous title/last-update default. The header is a repeating table header so it sits in flow and cannot overlap body text, replacing the fixed-position footer. Also add "Open your existing Final Wishes file" to the start screen so data in an older encrypted file can be carried into a newer build. Closes #9 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Final Wishes
An encrypted, printable "in the event of my death or incapacity" guide that
lives on a thumbdrive as a single HTML file. No install and no network are
needed to use it. See PLAN.md for the design and docs/MAINTENANCE.md to
run it.
Develop
npm test # unit + build tests (Node 20+)
npm run build # app only -> dist/final-wishes.html
npm run seal # encrypt data/seed.json -> dist/
node build.js --data F.json --out PATH # custom input/output
The passphrase is prompted for (hidden) or read from FW_PASSPHRASE.
Layout
src/crypto.jspassphrase encryption (PBKDF2 -> AES-256-GCM)src/model.jsdocument schema and validation;src/ops.jsedit helperssrc/print.jsprint helpers;src/app.js+src/style.cssthe UIsrc/template.jsthe HTML skeleton shared bybuild.jsand in-page Savedocs/thumbdrive/what goes on the drive alongside the HTML file
Never commit
*.pdf and data/ hold real personal data and are git-ignored.
Description
Languages
HTML
77.1%
JavaScript
21.6%
CSS
1.3%