Decisions

0003 · No backend

Bills live in localStorage; sharing puts the bill in the URL fragment.

Status: Accepted · 2026-11

Context

Sharing a split with the group is the most requested feature for an app like this. The usual approach is an account system and a database so a bill has a URL. That means sign-up friction, storing what people ate and paid (and Pix keys) on a server, and an ongoing cost for a free tool.

Decision

  • Bills are stored only in the browser (localStorage).
  • A share link contains the whole bill, compressed, in the URL fragment (/s#…). Browsers never send fragments to servers, so the host can't see the content even in access logs.
  • The shared view is read-only; recipients can save a copy to their own history.

Consequences

  • No accounts, no database, no personal data on servers, no running costs beyond static hosting.
  • Links are snapshots: editing the bill afterwards requires sending a new link. There is no real-time collaboration.
  • Clearing browser data clears history. The UI says "saved on this device only".
  • Link payloads are untrusted input and are decoded defensively (see share links).
Edit this page on GitHub