Skip to content

← All work

CS-07 · 2026 · ongoing

Mizan, my personal finance app

A self-hosted finance app on top of Firefly III that I use every day, and a live demo that runs the real server code in your browser on an invented household.

My role
Product owner and architect; built with Claude Code
When
2026 · ongoing
Status
In daily use · being extended
149Measured
Automated tests in the Mizan repository
At v2.0.0, the release the live demo runs
97%Demo data
Right on transactions the model hadn't seen
Tested month by month on the invented demo household. A simple merchant lookup gets 93%
21 / 21Measured
Demo files verified against the build checksums
Checked again in CI on every change to this site
How Mizan is put together
  1. Banks via SimpleFINRead-only sync of every account I hold
  2. Firefly IIIThe ledger; the only source of truth
  3. SnapshotRefreshed often; served stale rather than failing
  4. ServicePlain functions for budget, bills, goals, alerts, reports
  5. Web appChecks who may ask, and what; phone and desktop

Bank data arrives through SimpleFIN into Firefly III, which runs as a container on my home server. Mizan reads a snapshot of that ledger, works everything out fresh, and writes changes back only after checking that they stuck. The demo runs this same code in the browser with an invented ledger.

The problem

I wanted to see my money clearly (where it went, whether I’m on plan, what changed) without a monthly spreadsheet. The apps that do this well charge a monthly fee and keep your data on their servers. I already ran Firefly III as my ledger, so I built the app I wanted on top of it.

What it is

Mizan turns my bank data into a few calm screens: this month against the plan, budgets, bills, goals, reports, and short heads-ups (a late bill, a price rise, an unusual charge). It works on a phone or a desktop. Try the live demo.

  • Bank data syncs through SimpleFIN into Firefly III, which runs on my home server. Mizan reads from it and never stores the money data itself.
  • Transfers between my own accounts are paired up, so moving money isn’t counted as spending and income.
  • Private notes are encrypted in the browser before they’re saved, so the server only ever holds ciphertext.

It learns how I file things

Mizan suggests a category for each new transaction, learned from the ones I’ve already filed. The interesting part is how it’s tested:

  • It’s scored month by month, only ever trained on the past, so it can’t peek at the answers.
  • On the demo’s invented household it was right 97% of the time, against 93% for a simple merchant lookup. On merchants it had never seen, 55%.1
  • It only files in bulk when the test shows it’s right at least 98% of the time at that confidence. Otherwise it just suggests.

Mizan 2.0: run your money like a business

Version 2.0 (4 November 2026) treats a household’s money the way a small business treats its books:

  • A score for today, this week and this month, compared with my own history, so a rent payment on the 1st doesn’t read as overspending.
  • A month-end close: a checklist, then a Close button, as a business closes its books.
  • A suggested budget that starts from what I usually spend.
  • Financial statements (income, balance sheet, cash flow) built nightly and tied out to the cent. MetricFlow defines 29 metrics once, so every screen agrees.

The app has 149 automated tests. The warehouse runs 242 dbt steps (62 models, 172 data tests, 6 unit tests and 2 seeds) and 154 Python tests on every build.2 The warehouse has its own case study.

Built so it can’t quietly go wrong

  • Every change is checked. After Mizan writes to the ledger, it reads the change back. If it didn’t stick, the app says so.
  • It degrades instead of breaking. If the ledger is down, the last good copy keeps serving, marked as out of date.
  • Everything is logged, with ids and counts only, never descriptions or amounts.
  • Only I can reach it, through my private network. There’s no password to leak.

A safe public demo

The demo is the real Python code, running in your browser through WebAssembly, on an invented household. Nothing is sent anywhere. Before it ships, a check blocks any secret or infrastructure detail, and this site refuses to deploy unless every file matches its checksum: it checks all 21 demo files on every push.3

My role

I was the product owner and architect: I decided what it should do, what it must never do, and I reviewed and tested what was built. The code was written with Claude Code. The Mizan repository has 149 tests.

What’s not done

  • The source stays private until launch.
  • The demo shows the app, not the statements and dashboards behind it. Those come later.
  • Two small writes can’t be read back, because the ledger returns nothing to check.

What this shows

Product thinking, defensive design, machine learning tested honestly, and directing AI-assisted development with tests and review.

Footnotes

  1. Test run · Mizan’s own backtest (learn.evaluate) on the live demo’s invented household at v2.0.0, re-run on 4 November 2026: 924 transactions tested, 96.9% right against 93.3% for the merchant lookup; 62 new merchants, 54.8% right. The household is generated up to today’s date, so the counts drift a little; the gap holds. ↩

  2. Test run · Mizan v2.0.0 (commit a596631): the app’s suite passes with 149 tests. Warehouse v1.5.0 (commit 919d43e): dbt build on the invented household runs 242 steps, all passing (62 models, 172 data tests, 6 unit tests, 2 seeds), make test runs 154 Python tests, and the semantic layer defines 29 metrics. Both repositories are private for now, so these receipts name the commit to check. Warehouse figures measured on 2026-11-24. ↩

  3. CI check · scripts/verify-mizan-demo.mjs in this site’s repository checks all 21 demo files against the build’s SHA-256s, and its tests run on every push. You can read both. ↩

Writing about this