ledgr
Double-entry personal finance
A personal finance system built the way accounting software is: every transaction becomes balanced, permanent ledger entries. It reads my real bank statements, checks each one against its own printed totals, and stages every transaction for me to categorise before it posts, then shows where the money went. There’s a live demo.

Details
- Double-entry ledger in FastAPI and SQLAlchemy that enforces a balanced-entry invariant at write time.
- Posts are idempotent via an external ID, so re-importing the same statement never duplicates money.
- Entries are immutable: corrections are reversals, never updates or deletes.
- Hierarchical accounts (Assets:Checking:HSBC, Income:Salary). Balances are always computed by query, never stored.
- Bank-specific parsers for HSBC (PDF) and Revolut (Excel/CSV), each validating itself against the statement’s printed balance before posting anything.
- Parsed transactions are staged for review instead of posted straight away: the app suggests a category from ledger history, and I confirm them one at a time or in bulk.
- Deployed to Fly.io on SQLite (Postgres-ready via config): upload a statement, categorise it, see balances.
- A stats view shows spend by category and month, the change from last month, and the share of income kept.
- Every posted transaction keeps its statement date, so each month’s totals reflect when money actually moved.
- Next, as a stretch: automatic categorisation.

