ADR 005
Local-first apps with no account by default
Context
Most of the apps (50+ everyday tools, a home organiser, children's learning apps) work for a single person. Accounts mean password storage, reset flows, personal data held on the server, breach risk and a sign-up wall that drives users away.
Options considered
| Option | For | Against |
|---|---|---|
| Accounts everywhere, data on the server | Multi-device by default; usage analytics per user | Every app becomes a personal-data system; more attack surface, cost and compliance |
| Local-first: IndexedDB or localStorage, offline PWA, no account | No personal data held; works offline; instant start; servers are just static files | No multi-device sync unless built separately; data is lost if the browser storage is cleared |
Decision
A server-side data store is allowed only when the feature can't work without one, such as real-time multiplayer games or sharing within a family. Everything else keeps its data on the device. Each app includes JSON backup and restore, and reminds the user to back up after 30 days. Reminders are .ics calendar files, so the phone's own calendar sends them and there's no push server.
Consequences
- Good: 8 of the 18 services are static nginx containers using about 3 MB of RAM each, with almost no attack surface. A strict Content-Security-Policy is practical.
- Good: privacy policies are short and true.
- Cost: users who clear their browser lose data unless they backed it up. The reminder reduces this but doesn't remove it.
- Follow-up: sync, when needed, must not undo this choice. That led to ADR 004.
At bank scale
Banking data must live server-side, but the principle carries over as data minimisation. Collect only what the use case needs, keep it where the risk is lowest, and set a retention period for every field. Fewer copies of personal data means fewer breaches to report.