Eric Bell 70c384cdcb Add configurable running print header
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>
2026-11-09 13:23:31 -05:00
2026-11-09 13:23:31 -05:00
2026-11-09 07:57:25 -05:00
2026-11-09 13:23:31 -05:00
2026-11-09 08:17:20 -05:00
2026-11-09 07:49:38 -05:00

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.js passphrase encryption (PBKDF2 -> AES-256-GCM)
  • src/model.js document schema and validation; src/ops.js edit helpers
  • src/print.js print helpers; src/app.js + src/style.css the UI
  • src/template.js the HTML skeleton shared by build.js and in-page Save
  • docs/thumbdrive/ what goes on the drive alongside the HTML file

Never commit

*.pdf and data/ hold real personal data and are git-ignored.

Description
My app to store all the emergency information needed to manage my affairs
Readme 1.5 MiB
Languages
HTML 77.1%
JavaScript 21.6%
CSS 1.3%