Start here

Documentation

What Splitmize is, the principles behind it, and a map of these docs.

Splitmize splits a restaurant or bar bill item by item. People are added, items are typed straight from the check ("2x Chopp 14,90"), each item is assigned to whoever had it (with uneven portions when needed), service charge and other fees are applied, and everyone gets an exact amount — down to the cent. When one person paid the whole bill, Splitmize computes who should transfer how much to whom and can generate a Pix "copia e cola" code for each transfer.

It runs entirely in the browser. There is no account, no backend and no database.

Principles

These are the constraints every change is measured against.

PrincipleWhat it means in practice
Cent-exactMoney is integer minor units end to end. The sum of what people pay always equals the bill. See the calculation engine.
Local-firstBills live in localStorage. Share links carry the bill in the URL fragment, which browsers never send to a server. See share links.
Fast at the tableThe app works offline after the first visit, accepts receipt shorthand, and never asks a question it can answer with a sensible default.
Honest UINo dark patterns, no ads, no fake urgency. Copy is plain and a little playful. See voice.
Small surfaceSeven runtime dependencies. Pure functions for everything that matters, tested in isolation.

How the app is organized

src/
  app/[locale]/      Routes: landing, /split (the app), /s (shared bill), /docs
  components/        Presentational building blocks (Receipt, Avatar, Dialog…)
  features/          Feature modules: workbench (the app), viewer, landing, docs, bill store
  lib/               Pure logic: money, allocation, bill engine, Pix, share links, storage
  i18n/              Locales, dictionaries and the tiny translation runtime
docs/                You are here. Rendered at /docs by the app itself.

Read architecture for how the pieces talk to each other.

Where to start

Edit this page on GitHub