Offline-First Is a Design Decision, Not a Fallback
Offline support is usually added after the app is built. By then it is a patch. Decided up front, it changes the shape of the whole system.
Most apps treat offline as an error state: a banner, a spinner, a polite apology. The app works when the connection works, and waits when it does not. That is a reasonable way to build a web app. It is a poor way to build the kind of app people open on a bus, in a basement, or on a connection that drops every few minutes.
Decide it before the first screen
Offline-first is a decision about where the truth lives. If the truth lives on the server, the app is a window, and every interaction is a round trip. If the truth lives on the device, the app is the system, and the server is a copy that catches up when it can. Everything downstream follows from that choice: the data model, the sync strategy, the way conflicts are resolved, even the shape of the screens. Decided late, offline support becomes a patch — a cache here, a retry there — and the seams show everywhere.
The trade-offs are real
Local-first is not free. Data on the device has to be stored, migrated, and protected. Two copies of the same record can disagree, and someone has to decide which one wins. Features that are trivial with a server — search across all users, a shared ledger, a push notification — become real engineering problems. I have accepted those costs because the alternative costs more: an app that stops being useful the moment the network does.
- The app must be fully usable with no connection, not just readable.
- Every write succeeds locally first; sync is a background concern, not a gate.
- Conflicts have a rule before they happen, not after.
- The server is a copy of the data, not its home; the device is the source of truth.
What it buys you
What you get in return is an app that is fast because it never waits, reliable because it has nothing to wait for, and private by default because the data never has to leave the device. It also outlives your infrastructure: if the backend goes down for a day, or for good, the app still works. That is the part people notice only when it is gone — and the reason I keep making the same decision.
More articles