Architecture portfolio

ADR 005

Local-first apps with no account by default

AcceptedNovember 2026Scope: product and data architecture

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

OptionForAgainst
Accounts everywhere, data on the serverMulti-device by default; usage analytics per userEvery app becomes a personal-data system; more attack surface, cost and compliance
Local-first: IndexedDB or localStorage, offline PWA, no accountNo personal data held; works offline; instant start; servers are just static filesNo 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

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.