Open Budget Tracker
Open the app · How it works · USD & LBP guide · Contribute
A bilingual (English/Arabic, right-to-left) personal budget built on Postgres/Supabase and React. Every dollar has exactly one job. One append-only journal records where money is (wallets) and what it is for (plan items) in the same entry, so the cash you hold always equals the money set aside plus the money ready to assign. The database enforces this; nothing on screen keeps its own balance.
v2 is live as of 2026-10-04. The owner authorized a fresh start: old Budget application data was backed up, restored in a local rehearsal, and cleared from production. Existing login accounts were preserved. Live address: https://openbudgetracker.app. The original release record is in
docs/operations/2026-10-04-v2-production-release.md.
Help improve the app
The project is open source under the MIT license. Contributions can be code, Arabic translations, documentation, accessibility improvements, or clear bug reports. Browse issues or read the contribution guide to get started. Please use demonstration data and remove personal financial details from reports.
Concepts
| Word | Meaning |
|---|---|
| Wallet | Where spendable money is: a bank account, cash or a card (a card may go negative). |
| Investment account / Loan | Tracked outside spendable cash; counts in net worth only. |
| Plan group | A share of expected income (Essentials 60%, Guilt free 5%, …). |
| Plan item | One purpose inside a group: monthly spending, a reserve, a goal, a loan payment, or the group's flexible item (which gets what the items leave). |
| Ready to assign | Money you hold that has no job yet. |
| Fund / Move | Give ready money a job, or change a job. Funding and moving are never income or spending. |
The rules, with worked examples recomputed in cents, are in the design spec. The schema and calculation rules are in the plan.
Run the local preview
Requires Docker, the Supabase CLI, Node 22 and pnpm 11.
pnpm install
pnpm preview:up
pnpm demo
Then open http://127.0.0.1:5173 and pick a demo account. Everything runs on this computer; see the local preview runbook.
Verify
pnpm typecheck
pnpm test:db
pnpm test:ui
pnpm build
pnpm test:e2e
pnpm test:dbstarts its own Postgres 17.6 (Supabase image) with Testcontainers.pnpm test:e2eneeds the local preview stack.
Where things live
-
src/public-site/: bilingual public articles and shared site links.scripts/public-pages.tsserves them in development and emits standalone HTML documents plussitemap.xmlduringpnpm build. The public routes are/about,/how-it-works,/budgeting-usd-lbp, and/contribute, with Arabic equivalents under/ar/. They share the app stylesheet and load no app JavaScript or backend session. Titles, canonical URLs, language alternatives, social metadata, and structured data are included in the HTML. -
supabase/migrations/: the schema, invariant triggers, commands, plan and reads. All writes go throughSECURITY DEFINERfunctions. The tables are not reachable from the browser. -
src/api/: the typed client. Every read is validated with zod, and money isbigintminor units end to end. -
src/screens/,src/record/,src/ui/: the screens, the record dialog and shared UI. All of it followsdocs/design-guidelines.md. -
scripts/preview/: the local stack, the seed, and the ten demonstrations as one shared script.