Double-entry ledger
Every money movement is a journal transaction whose lines sum to exactly zero. Balances are a cache of append-only entries, so the history is the source of truth.
Accounts and entries
A USD wallet backend on a double-entry ledger, built with NestJS and Postgres. No negative balances, no partial writes, no double charges, and a ledger that always reconciles.
| Section | What you'll find |
|---|---|
| Demo | The real API in the browser: wallets, ACH deposits, holds, transfers, idempotent replays and a stress test that checks the invariants afterwards |
| Architecture | How the ledger works, with diagrams: accounts, state machines, locking, the request lifecycle inside Nest, and full traces of real operations |
| Decisions | Architecture decision records: what was chosen, what was rejected and what it costs |
| Features | One page per shipped feature: the problem, how it works, commands to try it |
| Roadmap | What's done, what's next (a virtual debit card) and what's parked, with every plan sized on a scale calibrated against shipped work |
NestJS 12 · TypeScript (ESM) · PostgreSQL 16 with explicit SQL through pg (no ORM) · Vitest against a real database · deployed on Vercel with Neon. The source is on GitHub.