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.
| Principle | What it means in practice |
|---|---|
| Cent-exact | Money is integer minor units end to end. The sum of what people pay always equals the bill. See the calculation engine. |
| Local-first | Bills 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 table | The app works offline after the first visit, accepts receipt shorthand, and never asks a question it can answer with a sensible default. |
| Honest UI | No dark patterns, no ads, no fake urgency. Copy is plain and a little playful. See voice. |
| Small surface | Seven 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
- Running it locally → Getting started
- Understanding the math → Calculation engine
- Changing the UI → Design system and
npm run storybook - Adding a language → Internationalization
- Shipping → Deployment
- Why things are the way they are → Decision log