Economy
A double-entry credit economy that is provably solvent and tamper-evident — built to demonstrate correctness in systems that move money.
economy-lab is a library, not a product: every balance is a posting in a balanced ledger, real funds held in trust back users' spendable credits at par, and a per-account hash chain makes any altered history detectable. New here? Start with the overview.
Concepts
The money model, accounts and double-entry, solvency, the payout saga, integrity, and the proof.
Cookbook
Copy-pasteable patterns: a promo with an expiry, an entitlement-gated feature, a marketplace fee split, and scheduled top-ups — each around a runnable snippet.
Reference
Every operation, the read surface, outcomes and reason codes, the HTTP service, and configuration.
Ports & edges
The interfaces economy-lab depends on — signer, processor, rates, pricing, storage and messaging — and what is out of scope.