Technology

Beyond Offline: Building Local-First Apps

Making an app work offline is one thing. Keeping devices in sync, sharing by choice, and protecting private data is where the real engineering begins.

Making things work independently is one challenge. Making them work together is another.
Making things work independently is one challenge. Making them work together is another.
Nyskra Blog
Alexander Moortgat-Pick
Alexander Moortgat-Pick Co-Founder of Nyskra
Updated
Published

Overview

In our previous article, we explored why local-first apps feel better in everyday use. They can respond immediately, keep working without an internet connection, and let you record something when it actually happens, not when a network becomes available.

But working offline is only the starting point. The more interesting challenge is making independent devices work together again, without making your personal information any less private.

That involves several different problems: synchronizing changes, handling competing edits, keeping data available when a device disappears, and deciding what other people should be allowed to see. None of these problems vanishes just because an app stores its data locally.

So what does it actually take to build local-first software that works beyond a single device?

Three approaches to personal apps

Let’s put privacy aside for a moment and look at where an app does its everyday work.

Online-first apps typically rely on a service to retrieve data and accept changes. This makes it straightforward to keep a central view of information, but core actions may depend on reaching that service. Some online-first apps offer excellent offline modes; others provide little more than a cache of previously viewed content.

Offline-only apps put the device first. You can work without a network, but getting the same information onto a second device may require manual exports, transfers, or backups. That is perfectly reasonable for some tools, and less convenient for others.

Local-first apps aim for a different combination. A usable, writable copy of your information lives on your device, so the app doesn’t need to ask a server for permission each time you record or change something. Synchronization can then bring those changes to other authorized devices when connections become available.

These aren’t rigid categories, and local-first doesn’t mean serverless. The essential distinction is that working with your own data locally is a foundation of the app, not just an emergency fallback.

Common approaches to storing and using personal data. Individual applications may combine features from more than one approach.

Online-firstOffline-onlyLocal-first
Primary working copyOften service-backedOn one deviceLocally usable on each participating device
Recording changes offlineDepends on the appYesYes, by design
Automatic synchronizationCommon when onlineNot usually part of the modelCan work across independently updated devices
Sharing informationApp-dependentOften requires a separate transferCan be built around authorized local copies

The appeal is easy to understand. The engineering gets more interesting as soon as a second device enters the picture.

When two devices have different answers

Imagine you record a health observation on one device while traveling. Later, on another device that hasn’t received the update yet, you correct an earlier entry and add a personal note. Both devices let you work normally while disconnected.

Now they hold different changes. When they reconnect, how do we bring those changes together without losing something important?

Simply keeping whichever version has the latest timestamp sounds tempting. It also creates a risk that an unrelated change gets overwritten. Asking someone to resolve every disagreement manually is another possibility, but it makes everyday logging feel like maintaining a software project.

This is where data synchronization meets the challenges of distributed systems: independent copies of information may change at different times, and a network can’t guarantee that every update arrives immediately or in the same order.

There are several ways to approach reconciliation. Conflict-Free Replicated Data Types (CRDTs) are one well-known family of techniques for certain kinds of replicated data. They let independently updated copies converge under defined rules. They don’t, however, settle every question of meaning. Two changes may be technically compatible while still requiring the application to decide how they should be presented or interpreted.

That distinction matters especially for personal records. Synchronizing is not merely copying the newest file. It’s preserving a useful understanding of what happened across devices.

Availability matters as much as synchronization

Even if an application can reconcile changes, there’s another practical question: when does the other device receive them?

Suppose you log a symptom, regain connectivity long enough for your device to synchronize, then put that device away. Hours later, you open the app elsewhere. Should the first device need to be switched on and connected at that exact moment?

For a good everyday experience, ideally not.

A synchronization service can keep uploaded changes available until another authorized device comes online. The devices don’t need to establish a direct connection or be online simultaneously. This is an important distinction between storing data locally and requiring devices to communicate only with one another. The trade-offs are explored further in our Knowledge article on peer-to-peer and service-backed synchronization.

A service can also provide an off-device copy of synchronized information. That’s particularly valuable for personal logs and notes: if a phone is lost or replaced, data that has already synchronized need not disappear with it. Encrypted, incremental backups can make this protection part of normal use rather than another task to remember.

There is an important boundary here: a change made offline isn’t backed up elsewhere until it has actually synchronized. And if the stored data is encrypted, accessing it again also depends on securely retaining or recovering the necessary keys.

This balance between local independence and dependable availability is central to Nyskra Sync. The goal isn’t to eliminate the service. It’s to use it where it adds real value, without making every interaction depend on a live connection.

Sharing adds a different kind of responsibility

Keeping your own devices synchronized is one thing. Choosing to share personal information with somebody else raises a separate question: what belongs in their view, and what should stay yours?

A period-tracking app provides a useful example. You might want to share selected information with your partner while keeping other health observations and personal notes private. Sharing one part of your records shouldn’t require exposing the entire collection.

That is the basic idea behind selective data sharing. It isn’t simply another way of copying an account from one device to another. It is an intentional decision about which information another person may access.

The recipient’s device may also be offline. Information they’ve already received should remain useful locally, while new information can only arrive once a connection is available again. The application needs to make that distinction feel natural rather than surprising.

We approach this experience through Nyskra Share: choosing what to share and with whom, across supported platforms, without turning personal information into an all-or-nothing proposition.

Local-first does not automatically mean private

It’s possible to build a local-first app that synchronizes everything in readable form. Having data on your own device is useful, but it doesn’t by itself prevent a service operator from inspecting copies sent to its infrastructure.

Protecting personal information requires another layer of design. With end-to-end encryption, private content is encrypted on an authorized device before it leaves. The service can store or deliver the encrypted information without possessing the keys needed to read the protected content.

This makes some engineering choices harder. A service still needs enough operational information to authenticate requests, route data, and handle delivery, but it shouldn’t need to understand the sensitive records inside an encrypted payload. It also shouldn’t be treated as a trusted reader just because it helps synchronize those records.

Nor does end-to-end encryption mean that every kind of metadata disappears. Some operational details remain necessary, even when the private content is protected.

These principles are part of Nyskra Zero, our zero-access privacy architecture. Privacy is most convincing when the system doesn’t need access to your personal content in the first place.

Making these principles useful in real life

The engineering is fascinating, but most people don’t install a personal app because they’re excited about distributed systems.

They want to record something important when it happens. Find it again later. Understand how things have changed over time. Maybe share a selected detail with somebody close to them. And not worry that doing any of this gives the service provider a window into their private life.

That’s why we’re bringing these ideas together in Nyskra Technology: Sync for local-first availability across devices, Share for deliberate sharing with other people, and Zero for protecting private content throughout. These aren’t independent promises that happen to sit next to each other. They’re designed to support the same everyday experience.

Nyskra Rose is where we’re beginning to apply that foundation. In a period-tracking app, cycle logs, symptoms, notes, and insights can form a deeply personal record over time. We want that information to be easy to record, dependable across devices, and private by design. Our initial applications focus on iOS and Android, while the synchronization technology is designed for a broader range of device types.

The technology matters because of what it allows people to do: log without waiting for a signal, return to their records on another device, share by choice, and keep sensitive information protected along the way.

Complexity belongs behind the scenes

Local-first software takes a deceptively simple idea — let people use their data on their own devices — and makes it work in a connected world.

That means thinking carefully about independent changes, delayed connections, useful backups, selective sharing, and encryption. Some of those problems have well-established solutions; others involve difficult trade-offs between simplicity, performance, availability, and privacy.

The result shouldn’t feel complicated.

You should be able to make a log, close the app, lose your connection, switch devices, or share something you’ve chosen without having to think about how the pieces fit together.

The complexity belongs in the technology, not in your day.

Coming Soon

We turn we won't into we can't.

Follow us for early access and the reveal.