Catalogue / firstdollar-2026-ledger

First Dollar builds its own double-entry ledger as a self-contained PostgreSQL and TypeScript service, with balances computed on every read

First Dollar, 2026. Ledger for health savings accounts and other benefits.

Organisation
First Dollar
Evidence
Reported from production
Source
How we built our ledger

First Dollar blog, published 2026-04-21

Records

Decision#d1

Build the ledger in-house instead of buying a ledger service or adopting an open-source one

Decision#d2

Build the ledger on the existing PostgreSQL and TypeScript stack as a separate service

Decision#d3

Model several separate ledgers and a pending and a settled layer instead of one shared ledger

Decision#d4

Enforce balanced entries with a database trigger and immutability by revoking UPDATE and DELETE

Decision#d5

Compute account balances by summing lines on every read, with no cached balance

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.