Kakeibo

A mobile-first finance tracker: log a payment in seconds, then see today and this month at a glance.

Home screen: 23,588 yen spent this month, the budget left per day, and today's four payments.
Home · Light
Type it sheet: the text 'ramen 850, train 230, coffee 480' turned into three categorised transactions.
Type it · Pink
Reports screen: money out and in for November, and a heatmap of daily spending.
Reports · Dark
Role
Solo project: design and engineering
Year
2026
Stack
React 19 · Vite PWA · TanStack Router and Query · Hono · Drizzle · Postgres on Neon · Better Auth · Vercel
Live
finance.spindyzel.com ↗

The problem

A finance tracker fails at the moment of entry. If logging a ¥480 coffee takes longer than a few seconds, it does not get logged, and every report after that is wrong.

Kakeibo (家計簿, "household account book") is built around that moment. Entry comes first, and everything else reads from it.

What it does

  • Type it. Write ramen 850, train 230, coffee 480 and get three categorised transactions to check and save. The parser is a keyword table, not a model, so it works offline and gives the same answer every time.
  • Home answers two questions. How much have I spent this month, and how much can I spend per day until it ends.
  • It works without signal. A save goes to an outbox on the device and appears in the lists at once. It syncs when the connection returns.
  • The rest of v1. History with search and filters, reports with a daily heatmap, wallets with transfers and adjustments, CSV export and import, and Light, Dark and Pink themes.

Decisions

One function owns the numbers

computeMonthSummary lives in a shared package. The API uses it, Home and Reports use it on cached transactions, and the demo build uses it. The totals on screen update before the server answers, and both sides calculate with the same code.

Money is an integer

Amounts are stored in minor units, so ¥580 is 580. The number of decimals per currency is pinned in code, because browser engines disagree: WebKit gives rupiah two decimals and V8 gives none.

Saving twice is safe

The app creates a UUID v7 for every transaction. The API inserts with ON CONFLICT DO NOTHING and returns the stored row on a repeat, so an outbox retry never makes a duplicate.

Local development runs real Postgres

Locally the API runs on PGlite, which is Postgres compiled to WebAssembly: no Docker and no account. Production is Neon in Singapore, in the same region as the API.

Shipping

Every push to main runs lint, type checks, unit tests and Playwright tests in an iPhone-sized WebKit and in Chromium. When all of them pass, the pipeline migrates the production database and then deploys.