home-budget
A simple family cash-flow app: it forecasts what's safe to spend, keeps weekly envelopes, and syncs with the bank. It runs on Cloudflare Workers + D1, and it's built to be accessible by default.
Early
There's no live data yet. The money rules are built and tested, and Partner's page runs on a made-up household; these pages record the rules and why the app is built the way it is.
What's here
- Supported devices: where the app has to work and look right.
- Accessibility: the WCAG target and the rules every page follows.
- Help and Emergency: the plain-language pages for the people who use the app, and how they are built.
- Partner's page: "Can I spend this?" for the member: the answers, Add it, Undo, Move money and the message to the admin.
- The dashboard: the admin's page, from the verdict at the top to Add a charge, and what a member sees of it.
- The Lynx Ledger: the day-by-day view, the Danger zone, moving between days and Add a transaction.
- The Reconcile page: what each button does, what needs a decision, the last run and the run history.
- The Aliases page: the admin's list of bank words that name a merchant, what a new Match would catch, and Try a bank line.
- Money rules: the rules the money math follows, each with a worked example, and what is and isn't built.
- Importing the history: the one-time tool that loads a spreadsheet download into the local database, checks it, and compares it with the bank, and writes the checked data as a file you load into the real app. The load itself isn't run by any tool here.
- Data model and roles: the tables, what an Admin and a Member may read and do, how sign-in works and the
nowoverride. - Hourly jobs: the one hourly trigger and how it decides which jobs are due.
- Deploying: the commands that put the demo on Cloudflare, and the generated config they use.
- Operations runbook: the nightly encrypted backup, the restore drill, key custody, the monthly off-site copy and the alerts.
- Threat model: the risks, what controls them today and what's still missing.
- Decisions: architecture decision records (ADRs), one per decision, with the reasons.
The code
- App: benweese/home-budget, a TypeScript monorepo (
packages/*,apps/worker,apps/web, and these docs indocs/). - End-to-end and accessibility tests: benweese/home-budget-e2e.
- Releases and the changelog come from the commit history (releases).
This site is edited through pull requests only, like the code.