Implement OweMe v1 #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/v1-app"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the full v1 spec (all five milestones): core logic, server, web client, push notifications and the podman compose deployment.
This branch contains PR #1's spec commits. Merging this PR merges the spec too, so #1 can be closed; or merge #1 first and this diff shrinks to the implementation only.
What's in it
packages/core: event schema and validation, integer and BigInt money math (largest-remainder splits, round-half-even conversion), replay with rewind snapshots, greedy settle-up, recurring occurrences, stats, CSV export.apps/server: Node 24 standard library only, with zero npm dependencies. Encrypted event log (SQLite), live updates over Server-Sent Events, encrypted photo storage, daily ECB rates, Web Push (VAPID + RFC 8291 implemented withnode:crypto) restricted to known push services, strict CSP. Unknown groups and wrong tokens both return 404.apps/web: Svelte 5 PWA, about 65 KB gzipped. Groups via a#secretlink, remembered on the device along with "who am I". Offline outbox; equal, shares, exact and percent splits; multiple payers; currencies with editable rates; photos resized and stripped of EXIF before encryption; comments; per-expense history and whole-group rewind with undo; stats; recurring expenses; CSV and backup export; EN/CS chosen from the browser language; dark and light money-green theme; service worker that decrypts pushes on the device.deploy/: Containerfile,compose.yaml(app + Caddy with automatic HTTPS),.env.example(DOMAIN, limits, ports), README with VPS steps.Changes from the spec (SPEC.md updated)
node:sqliteplus type stripping meant no new runtime and no server dependencies.reverttargets an event id, not a seq, so restored backups keep working.Verification
npm test: 25 core and 11 server tests pass, including decrypting a push payload as a browser would.npm run check: tsc and svelte-check report 0 errors and 0 warnings.npm run test:e2e: 2/2 pass. They cover two devices (English and Czech) sharing a group, identity, ECB rate prefill, exact split, photo upload and viewing on the other device, live sync, balances and settle-up, rewind and undo, offline edits syncing later, the home screen and stats, and a push delivered to the service worker producing the decrypted notification "Flat | Petr: Pizza · €12.50".DOMAIN=localhost, loopback ports), and the e2e suite passed against it through Caddy over HTTPS. The full ECB history loaded (7,111 days).🤖 Generated with Claude Code
https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF