Chris F

On-device by default

Chris F · · Big picture · 4 min read

In short: I don't want to know anything personal about the people who use what I build. Data I never collect can't leak, can't be sold and can't be misused later, by anyone, including a future me. So my default is on-device: the person's own phone or computer keeps their data, and my server, if there is one, never sees it.

Two columns. The usual design: the phone sends an account, an email and activity to a server that stores them, which then needs protecting forever. On-device by default: the phone keeps its own data, and the server sends the same files to everyone and stores nothing about anyone.
The same feature, two places to keep the data.

Context

Most software starts with an account. Sign up, give an email, maybe a phone number, and the service keeps a record of what you do. That record is useful to the company: analytics, marketing, a way to reach you. It is also a liability that grows every day it exists. It has to be secured, backed up, answered for and, eventually, deleted properly.

AI makes this sharper. Models are very good at finding patterns in personal data, and the easiest way to "add AI" to a product is often to send everything to a server and let a model look at it. As AI moves closer to us, into phones, earbuds, cars and homes, where the data lives matters more, not less.

I've settled on a simple rule for everything I build at home: personal data stays on the person's device. If a feature seems to need a server that knows something about a person, that is not a design detail. It's a decision, and I make it explicitly, in writing, or the answer is no.

A short decision flow. Does the feature need data about a person? No: build it. Yes: can the device keep it? Yes: keep it on the device, the server never sees it. No: stop, it needs my explicit yes, written down, before anything is built.
The question I ask before any feature that touches a person.

Detail

This blog is the first example

This site has no analytics, no cookies, no comments and no JavaScript. Every page is a static file. Beyond what any web host does to serve a page, I add nothing, and I don't know who reads a post. That is on purpose: the cheapest privacy policy is having nothing to protect.

It also made the site simpler. There is no consent banner to build, no tracking script to keep updated and no third party that can change what my pages do. The security headers say exactly that: no scripts, nothing loaded from other sites.

Reminders without a push server

A small game I've been building for fun wanted a reminder: "your progress is waiting, come back". The obvious design is web push. Each browser registers, my server stores a push address per player, and a job sends the messages.

I stopped there. Even an anonymous push address is a record about a person, held on my server, and it would quietly make me the kind of service I don't want to run. So web push was dropped. The phone version uses a local notification instead: the phone schedules it itself, it is off until the player turns it on, one tap turns it off, and no server is involved at all. The game's state lives in the browser or on the phone, not with me.

A comparison of two reminder designs. Web push: the phone registers, the server stores a push address per player, a server job sends the reminder. Local notification: the player turns it on, the phone schedules it, the phone shows it; the server learns nothing.
Same reminder, and only one of them needs me to keep a list of people.

The rules I use

Five rules as a column of boxes: no accounts unless needed; settings and progress on the device, with an export file for backups; no analytics by default; checks about a person happen on the device; anything else is a written decision before any code.
The defaults, in the order I apply them.

What it costs

On-device is not free. Sync between a person's devices gets harder. I can't see which features people use, so I have to ask them or watch them use it. Support is harder when I can't look anything up. And some features honestly need a server: anything shared between people, for a start.

But I've found the costs are smaller than they look, and they are costs I pay once, in design. The other road has a cost that never stops: a growing pile of data about people that I have to protect, forever, against attackers, mistakes and my own future temptation to use it.

Why I think this gets more important

AI on the device is getting good fast. Phones and laptops can now run useful models locally: speech to text, summaries, image search. That changes the old trade, where "smart" meant "send it to the cloud". More and more, a feature can be smart and private at the same time, because the thinking happens where the data already is.

I expect that to become a real reason people choose one product over another. Not a line in a privacy policy, but a design anyone can check: turn off the network, and see what still works and what still leaves the device.

A bar chart of what leaves the device in each design, in kinds of personal data held on a server: account-based service five (account, email, activity, push address, analytics); on-device by default zero.
What my server ends up holding about a person, in each design.

That is the bar I try to build to: if I don't need to know, I don't want to know.


Drafted with Claude.