P-LensOpen the app

Engineering notes

P-Lens Engineering Notes

How P-Lens, an open-source, local-first bookkeeping app, is built: hledger in WebAssembly, Prolog on the device, encrypted sync over Nostr, and SolidJS.

Tagged #Domain modeling (2)All articles

  1. Law shapes the ledger: modeling Japanese pachinkoJapan's three-shop system from the ground up, and a ledger whose domain model never turns balls into cash inside the parlor.

  2. Modeling pachinko machines nobody has invented yetPachinko makers keep inventing features, so P-Lens writes each machine as ECS-style component tables, not one type per kind.