Edvard Kristiansen
← Back to vibes
Live

Tot Up

Holiday money, totted up.

  • Svelte 5
  • TypeScript
  • Hono
  • Cloudflare Workers
  • Durable Objects
  • D1
  • Workers AI
Launch app
Tot Up screenshot

Why

Every group holiday ends with a spreadsheet nobody trusts. Tot Up is built so the maths can be checked: every number on screen opens up to the expenses behind it.

How it works under the hood

  • Money is whole pennies, always. A zero-dependency money core uses branded integer minor units, and a lint rule makes floating-point money impossible to build. Every split sums exactly to the amount; remainder pennies go to the payer first, then in join order.
  • Each trip is an append-only ledger. One SQLite Durable Object per trip is the only writer. Edits supersede rather than overwrite, and every balance is rebuilt from the raw events.
  • Exchange rates are fixed when you pay. Foreign-currency expenses convert at the European Central Bank’s rate for the day paid, stored once and never recomputed — or at exactly what your card statement says.
  • Receipt scanning. Snap a receipt and Workers AI reads the items into an itemised split.
  • Offline first. Writes go into an on-device outbox and sync when you are back online, so nothing logged on a beach is lost.

How it was built

Tot Up is written and maintained entirely by a team of AI coding agents — engineers, product, design and a read-only correctness reviewer that must pass every change touching money, exchange rates, sign-in or the ledger. Property-based tests over the money core gate every build.