Engineering 32 min read

What is Local-First Software? A Developer's Guide

MMNMNOTE
local-firstcrdtyjsautomergeloroindexeddbdexieoffline-firstkleppmannink-and-switch

Local-first software is the seven-ideal architecture from the Onward! 2019 paper by Martin Kleppmann, Adam Wiggins, Peter van Hardenberg, and Mark McGranaghan 1. It treats the copy of the data on your device as the primary copy and the network as optional. This post walks the definition, the libraries, and the working stack a developer in 2026 actually ships.

The Hacker News thread that introduced the paper to most working programmers earned 748 points, then 566 the following year, then 883 in the 2025 reissue 2. That viral trajectory is the headline number behind the movement: the same essay re-circulating for six years and growing each time. The paper itself is at DOI 10.1145/3359591.3359737 1. Kleppmann is now an associate professor at Cambridge whose research page lists "local-first collaboration software and distributed systems security" as the topic 3. His textbook Designing Data-Intensive Applications, second edition, ships in 2026 with a new chapter framing the local-first turn — the textbook canon catching up to the research 3. The next 4,000 words assume you have heard the phrase, want to ship it, and need to know which library, which storage layer, and which trade-off you are signing up for.

What is local-first software, in concrete terms

Local-first software keeps the user's data on the user's device, syncs through a CRDT or equivalent merge layer, and stays usable when the network is gone. The 2019 paper defines it by inversion of cloud SaaS: "we treat the copy of the data on your local device as the primary copy" 4. The cloud, when present, is a peer — not the owner.

Cloud SaaS treats the server as the source of truth and the local client as a render of a server response. Local-first inverts both arrows. Reads are local. Writes are local. The server, if there is one, is a relay — two devices reconcile their independently-edited copies through it. This is not the same as "offline-first," which is a storage decision; local-first is a data-ownership stance built on top of that storage decision. Linear's CTO Tuomas Artman framed it at the 2024 Local-First Conference: "good sync engines provide many features for clients out of the box: UI performance, real-time, and offline support" 5. The performance is downstream of the architecture, not bolted on later.

The seven ideals (Kleppmann et al., 2019)

The seven ideals are the contract every local-first app is graded against. They appear verbatim in the Ink & Switch essay 4:

  1. No spinners: your work at your fingertips. Reads and writes complete locally, in milliseconds, without round-tripping a server.
  2. Your work is not trapped on one device. Sync exists. The user's data follows them.
  3. The network is optional. Trains, tunnels, and basements stay productive.
  4. Collaboration with your colleagues without conflict. Two people editing the same document do not destroy each other's work.
  5. The Long Now. The data is readable in twenty years, on a computer the original company no longer makes.
  6. Security and privacy by default. Default encryption. Default no-server-reads.
  7. You retain ultimate ownership and control. No "premium tier required to export" gates. The user's bytes are the user's bytes.

Most apps that call themselves local-first satisfy ideals 1, 3, and 5 cleanly, hedge on 2 and 4 through optional sync, and treat 6 and 7 as roadmap items. The honest scoring is part of the discipline. Kleppmann put the inverse plainly at the 2024 conference: "In local-first architecture, the availability of another computer should never prevent you from working" 5. If your app spinners on offline, you are not local-first yet — regardless of how the README phrases it.

The naive approach (and why it fails)

The naive approach is to put the database in the cloud, cache aggressively, and ship a "works offline" badge. This is what most React + Postgres apps do; it fails because cache is not authority and last-write-wins corrupts the moment two clients diverge. The seven ideals are the spec the naive approach silently violates.

Three concrete failure modes recur across every team that tries the cache-as-offline path. First, the cache becomes stale and the user sees the spinner that the architecture was supposed to remove (ideal 1 fails). Second, two offline edits arrive at the server in arbitrary order, and the loser's edit is silently overwritten — there is no merge layer (ideal 4 fails). Third, the export endpoint and the auth flow become coupled: if the company's API key is revoked, the user's data is unreachable (ideals 5 and 7 fail). The fix is structural. You need a real local database, a real merge function, and a stance that the local copy is canonical. That is the architecture below.

The architecture in one diagram

The architecture is a five-layer stack — UI, state, local DB, merge layer (CRDT), and optional sync transport — where every layer has a working fallback if the layer above it disappears. Geoffrey Litt at Ink & Switch and the lofi.so / Local-First Conference community have converged on roughly the same picture 6 7. The diagram fits in ASCII:

┌──────────────────────────────────────────────────────────────┐
│  UI  (React, Svelte, SwiftUI, etc.)                          │
│       ↑ subscribes to                                        │
│  State / reactive query layer  (useLiveQuery, signals)       │
│       ↑ reads from                                           │
│  Local DB  (IndexedDB via Dexie, OPFS via wa-sqlite, ...)    │
│       ↑ persists                                             │
│  Merge layer  (Yjs, Automerge, Loro — CRDT documents)        │
│       ↕ exchanges binary updates with peers via              │
│  Sync transport  (WebSocket, WebRTC, file, USB stick)        │
└──────────────────────────────────────────────────────────────┘

Two design rules give the diagram its shape. First, every layer has a no-network fallback — the UI reads from state, state reads from the DB, the DB returns the last known CRDT snapshot, and the merge layer accepts a write whether or not the transport is connected. Second, the CRDT is the merge function and the storage format simultaneously: a Yjs Y.Doc, an Automerge document, or a Loro LoroDoc is what gets persisted, and the binary update format is what gets shipped over the wire 8 9 10.

The merge layer: Yjs, Automerge, Loro

The merge layer is a Conflict-free Replicated Data Type — a data structure whose merge operation is associative, commutative, and idempotent, so two replicas converge to the same state regardless of arrival order. Shapiro, Preguiça, Baquero, and Zawirski formalized CRDTs in their 2011 paper, providing what they called "strong eventual consistency" 11. Three libraries dominate in 2026.

Yjs (Kevin Jahns, MIT) is the most-deployed CRDT in production: 21,800 GitHub stars, over 900,000 weekly NPM downloads, and v14.0.0-rc.7 as of March 27, 2026 9 12. The Yjs landing page markets it without hedging — "the fastest CRDT implementation by far" 13. Production users include Evernote, Linear, AFFiNE, GitBook, JupyterLab, Synthesia, Proton Docs, and Meta's Lexical 9 12. Yjs's design choice is a flat list with Lamport timestamps and state vectors, optimized for text and tree-shaped JSON.

Automerge (Ink & Switch, Martin Kleppmann et al.) is the JSON-CRDT alternative — 6.3k stars, v3.2.6 as of April 22, 2026, written in Rust and compiled to WebAssembly with a JS wrapper 14. Automerge 3 reduced memory usage by approximately 10× over Automerge 2 14. Its public vision sentence is the most-quoted positioning in the field: "Automerge aims to be PostgreSQL for your local-first app" 14. Two full-time maintainers, Alex and Orion, are funded through Ink & Switch 14.

Loro (Loro Dev) is the newest entrant — 5.6k stars, v1.x as of 2026-05, Rust-first with WASM bindings and Swift FFI 10. Loro implements Fugue for text, plus moveable trees, moveable lists, and last-write-wins maps — a richer type set than Yjs or Automerge — and ships features like time-travel, shallow snapshots, and Loro Inspector DevTools 10.

The choice in 2026 is roughly: Yjs if your primary type is text and you want the deepest production ecosystem; Automerge if you need rich JSON with explicit local-first design and Ink & Switch's research lineage; Loro if you need moveable trees, time-travel UX, or smaller binary updates and can absorb a younger ecosystem 15.

Code: a minimal Yjs document with offline persistence

A working Yjs document with IndexedDB persistence is roughly thirty lines of code. The official Yjs docs phrase the contract as "as long as all changes eventually arrive, the documents will sync" 13. The ecosystem provides y-indexeddb for storage and y-websocket (or y-webrtc) for transport.

import * as Y from 'yjs';
import { IndexeddbPersistence } from 'y-indexeddb';
import { WebsocketProvider } from 'y-websocket';

// 1. The document is the source of truth.
const ydoc = new Y.Doc();

// 2. Persistence is local. Loads from IndexedDB on startup,
//    flushes updates as you type. No network required.
const persistence = new IndexeddbPersistence('my-local-doc-1', ydoc);
persistence.on('synced', () => console.log('Loaded local snapshot'));

// 3. Sync is optional. Add a transport when (and only when)
//    you want to collaborate. Removing this line still leaves
//    a fully functional offline editor.
const wsProvider = new WebsocketProvider(
  'wss://demos.yjs.dev',
  'my-local-doc-1',
  ydoc,
);

// 4. Shared types behave like normal JS — but every mutation
//    becomes a CRDT update that other peers will merge.
const ytext = ydoc.getText('body');
ytext.insert(0, '# A note that survives the network\n');

// 5. Listen for remote and local edits identically.
ytext.observe((event) => {
  console.log('text changed; new length:', ytext.length);
});

// 6. Snapshot the doc for any other persistence layer.
const snapshot = Y.encodeStateAsUpdate(ydoc);
//     -> Uint8Array, suitable for fetch/upload/file write.

Four properties of this code matter for the local-first contract. First, line 6's snapshot demonstrates ideal 5 — the format is binary, but it is open, versioned, and round-trippable; the bytes can be saved to a file the user owns. Second, removing the WebSocket provider does not break the editor; it just removes ideal 4 (collaboration). Third, the IndexedDB persistence works in incognito mode subject to the browser's quota — Chrome incognito caps at ~5% of disk 16. Fourth, every edit is a Lamport-timestamped operation, so two clients editing offline and reconnecting later converge without a server arbitrating order.

Code: the same idea in Automerge

Automerge models the document as a JSON-shaped CRDT instead of a flat list, which suits structured data — a notes app's metadata, a kanban board, a hierarchical outline — better than Yjs's text-first design. The API is more verbose because every mutation goes through Automerge.change(), an explicit transaction.

import * as Automerge from '@automerge/automerge';

// 1. A document is a typed value, not an instance.
type NoteDoc = {
  title: string;
  body: string;
  tags: string[];
  modified: number;
};

// 2. init() returns an immutable value; change() returns a new one.
let doc = Automerge.init<NoteDoc>();
doc = Automerge.change(doc, 'create note', (d) => {
  d.title = 'Local-first';
  d.body = '';
  d.tags = [];
  d.modified = Date.now();
});

// 3. Local writes happen as ordinary JS inside change().
doc = Automerge.change(doc, 'append', (d) => {
  d.body += 'CRDT merges are commutative.\n';
  d.modified = Date.now();
});

// 4. Save and load are byte-array round trips.
const bytes = Automerge.save(doc);
const restored = Automerge.load<NoteDoc>(bytes);

// 5. Two divergent replicas merge with .merge().
let alice = Automerge.from<NoteDoc>({
  title: 't', body: 'a\n', tags: [], modified: 1,
});
let bob = Automerge.merge(Automerge.init<NoteDoc>(), alice);
alice = Automerge.change(alice, (d) => { d.body += 'alice edit\n'; });
bob   = Automerge.change(bob,   (d) => { d.body += 'bob edit\n'; });

// 6. The merge result is identical regardless of which side runs it.
const merged = Automerge.merge(alice, bob);
//     -> body contains both edits, deterministically ordered.

Two trade-offs are visible in the code. First, Automerge's change() boundary is explicit, which makes commit history readable but adds friction relative to Yjs's mutate-as-you-type ergonomics. Second, the byte format is fully self-contained — the bytes from line 4 are the document, the version history, and the metadata, and load() can rebuild every prior state. This is the property that lets Automerge market itself as "PostgreSQL for your local-first app" 14: the binary blob is your database file.

The storage layer: IndexedDB, OPFS, and quotas

The storage layer in a browser local-first app is IndexedDB by default and OPFS by upgrade. MDN defines IndexedDB as "a low-level API for client-side storage of significant amounts of structured data" with a "transactional database system" model 17. The W3C Indexed Database 3.0 spec is current. localStorage is excluded by capacity and API shape — 5 MB cap, synchronous, string-only, untransactional 17.

Storage quotas vary by vendor and matter for any app that intends to hold years of notes 16:

BrowserPer-origin quotaNotes
Chrome (desktop & Android)Up to 60% of total disk; group cap 80%Incognito ~5% of disk
FirefoxUp to 50% of free disk; eTLD+1 group cap 2 GBStorageManager API for inspection
Safari (macOS, iOS)~1 GB initial; 200 MB increment prompts7-day eviction cap on script-writable storage; installed PWAs exempt

Two quota facts catch teams in production. First, Safari's seven-day eviction policy applies to script-writable storage if the user does not return — installed PWAs are the documented exemption 16. A local-first app that wants to honor ideal 5 (the Long Now) on iOS should encourage installation, prompt for explicit export, and treat the 7-day window as a churn surface. Second, OPFS performance varies dramatically by platform: RxDB's benchmarks against Chrome 128 measured OPFS main-thread initialization at 23 ms versus IndexedDB at 46 ms, but WASM SQLite over IndexedDB at 535 ms 18. The headline is that IndexedDB remains the right ceiling for a notes-shaped workload — moving to OPFS pays for itself only when you need a real query engine.

Code: Dexie + Yjs as the persistent local-first stack

Dexie is the wrapper that makes IndexedDB tractable. v4.4.2 as of March 31, 2026, 14.3k GitHub stars, MIT-licensed, "used by 100,000 of web sites" per the README 19 20. Dexie's useLiveQuery hook gives React a reactive read against IndexedDB — the closest thing to a "local query subscription" the platform offers without inventing new primitives 21.

import Dexie, { type EntityTable } from 'dexie';
import { useLiveQuery } from 'dexie-react-hooks';
import * as Y from 'yjs';

interface NoteRow {
  id: string;
  title: string;
  yjsState: Uint8Array;   // serialized Y.Doc
  modified: number;
}

class NotesDB extends Dexie {
  notes!: EntityTable<NoteRow, 'id'>;
  constructor() {
    super('my-local-notes');
    this.version(1).stores({
      notes: 'id, title, modified',
    });
  }
}
const db = new NotesDB();

// Hydrate a Yjs doc from Dexie, persist it back on every update.
async function loadDoc(id: string): Promise<Y.Doc> {
  const ydoc = new Y.Doc();
  const row = await db.notes.get(id);
  if (row) Y.applyUpdate(ydoc, row.yjsState);
  ydoc.on('update', async () => {
    await db.notes.put({
      id,
      title: ydoc.getText('title').toString(),
      yjsState: Y.encodeStateAsUpdate(ydoc),
      modified: Date.now(),
    });
  });
  return ydoc;
}

// React reads stay reactive — the list re-renders on every save.
function NoteList() {
  const notes = useLiveQuery(
    () => db.notes.orderBy('modified').reverse().toArray(),
    [],
  );
  return notes ?? [];   // undefined while loading
}

This is the smallest configuration that satisfies five of the seven ideals at once. Reads are local and instantaneous (ideal 1). The data is portable as a Uint8Array on disk (ideal 5). The network is absent from the code path (ideal 3). Ownership is the user's because the bytes live in their browser (ideal 7). Privacy is default-on because nothing leaves the device unless you add a sync provider (ideal 6). Ideals 2 and 4 — multi-device and collaboration — are one WebsocketProvider away.

Benchmark: storage primitives compared

The benchmark numbers below are from RxDB's "LocalStorage vs IndexedDB vs Cookies vs OPFS vs WASM-SQLite" article, run on Google Chrome 128.0.6613.137 in 2025 18. They are the most-cited apples-to-apples comparison of browser storage primitives and they shape the architecture decisions of every serious local-first app.

OperationlocalStorageIndexedDBOPFS (main)OPFS (Worker)WASM SQLite + IDB
Initializationn/a46 ms23 ms26.8 ms535 ms
Single small write0.017 ms0.17 msn/an/a3+ ms
Single small read0.0052 ms0.1 msn/an/a2.93 ms
Bulk write (200 docs)n/an/a280 ms104 msfaster than single-write
Bulk read (100 docs)n/an/an/an/a3.59 ms (cached) / 35 ms (cold)

Three takeaways drive practical decisions. First, localStorage wins single-write latency by an order of magnitude — but its 5 MB cap rules it out for a real local-first app, and the synchronous API blocks the main thread on every call. Second, OPFS in a Web Worker beats OPFS on the main thread by ~3× on bulk writes 18; if you choose OPFS, choose the Worker. Third, WASM SQLite's overhead is real on tiny operations but disappears on bulk and cached reads — it is the right call when query complexity (FTS5, joins, GROUP BY) outweighs the per-write cost. For a notes-shaped app where individual operations dominate, IndexedDB's 0.17 ms write latency is the floor that keeps ideal 1 honest.

Trade-offs (the honest section)

Local-first is not free. The architecture trades server simplicity for client complexity, instant UX for harder schema migrations, and ownership for a longer support tail. Naming the trade-offs is part of the practice — every honest essay in the field, from Kleppmann's paper to the lofi.so community talks, makes the same admissions 4 7.

Five trade-offs recur. First, client-side migrations are harder than server-side migrations — you cannot run an ALTER TABLE for every user; you must ship code that detects an old schema, transforms it, and writes the new one, then keep the migration in the codebase forever in case a user's offline tab loads it. Second, CRDT documents grow with history, and pruning history without breaking sync is an unsolved problem in the general case (Loro's shallow snapshots and Automerge 3's columnar storage are partial answers) 10 14. Third, discoverability and search across local-first stores is hard — there is no central index, and full-text search on IndexedDB (MiniSearch, Fuse.js, or wa-sqlite FTS5) is your problem to solve. Fourth, storage eviction is real — Safari's 7-day cap and Chrome incognito's 5% of disk both bite users who do not install the PWA 16. Fifth, debugging across two replicas requires tooling you have to build yourself — Loro Inspector and Automerge's debug viewer are early answers; Yjs has none in the box 9 10.

The market is leaning into the trade-off anyway. The 2024 Local-First Conference drew talks from Linear (sync engine for 10,000 users on an $80/month server), Goodnotes (13-year local-first journey, 30 million monthly users), and tldraw 5. The 2026 conference, July 12–14 in Berlin at Festsaal Kreuzberg, sold out Early Bird tickets with confirmed talks from Kleppmann, Steve Ruiz (tldraw), Paul Frazee (Bluesky CTO), and Seph Gentle 7. The trade-off is being chosen on purpose by people who have shipped at scale.

Production examples worth studying

Five production systems form the canonical local-first reference set in 2026. The shared property across all five: the local copy is canonical, the network is a peer, and the user can leave with their data.

Linear built the canonical commercial sync engine — the entire issue-tracking UI is rendered from a local store, and Tuomas Artman's 2024 talk reported 10,000 users running on a single $80/month coordination server with near-idle CPU 5. Figma is local-first-adjacent: its multiplayer architecture, documented by co-founder Evan Wallace in 2019, uses CRDT-inspired semantics over a centralized server, with fractional indexing for tree ordering and last-writer-wins for property values 22. Goodnotes has run on CRDTs for thirteen years and serves 30 million monthly users 5. tldraw ships a local-first whiteboard and is presenting at the 2026 conference 7. Obsidian is the bellwether for the file-over-app stance — markdown files on disk, sync as a $5/month optional service, and a community of half a million notes-takers who self-identify as "no cloud, no problem."

Steph Ango — Obsidian's CEO — wrote the matching one-line manifesto in July 2023: "In the fullness of time, the files you create are more important than the tools you use to create them. Apps are ephemeral, but your files have a chance to last" 23. Local-first is the engineering shape of that sentence.

Regulatory tailwind: the EU Data Act

The EU Data Act became applicable on September 12, 2025, and it sets a regulatory floor under data portability that aligns directly with ideal 7 24. The portability and switching mandates apply to cloud and edge providers serving EU customers; the practical effect for software vendors is that "export everything to a usable format" stops being a feature differentiator and becomes a legal floor.

The European Commission's framing emphasizes that the Act gives users "greater control over the data generated by their connected devices" and creates a "framework for customers to effectively switch between different providers of data-processing services" 24. Local-first software was already designed for this world. The whole point of an Automerge byte blob or a Yjs Uint8Array snapshot is that the user can take it elsewhere — and the EU Data Act effectively names that capability as default-required for cloud-mediated data. Cory Doctorow's January 2023 essay on enshittification frames the historical trajectory the law is responding to: "first, they are good to their users; then they abuse their users to make things better for their business customers; finally, they abuse those business customers to claw back all the value for themselves. Then, they die" 25. Local-first is the architectural counter-pattern. The user's bytes live somewhere the platform cannot revoke.

Frequently asked questions

Is local-first the same as offline-first?

No. Offline-first is a storage decision — the app keeps working without a network. Local-first is a data-ownership stance built on top of that storage decision, defined by Kleppmann et al. across seven ideals including portability, collaboration without a central server, and "you retain ultimate ownership and control" 4. Every local-first app is offline-first; not every offline-first app is local-first.

Do I have to use a CRDT?

No, but you have to solve the merge problem somehow. CRDTs (Yjs, Automerge, Loro) are the well-studied answer for multi-device sync without a central arbiter 9 10 14. Operational Transformation (OT), used by Google Docs, is the alternative — it requires a centralized server to mediate transforms, which violates ideal 3. For single-device apps, no merge layer is needed; for collaborative ones, CRDTs are the path of least surprise.

Will my notes survive if the company shuts down?

Yes, if the architecture is honest about ideal 5. Notes stored as plain markdown files (Obsidian, plain-text editors, any Pandoc-compatible workflow) survive any company event. Notes stored as Yjs or Automerge byte blobs survive as long as the open-source library is readable, which is decades — both formats are versioned and round-trippable 9 14. Notes stored in proprietary cloud SQL with no export endpoint do not survive; that is the failure mode of cloud SaaS.

What is the simplest local-first stack a developer can ship?

Dexie.js for IndexedDB persistence, Yjs for the merge layer, y-indexeddb for local snapshot storage, and an optional y-websocket provider for sync. That is roughly thirty lines of integration code and it satisfies five of the seven ideals out of the box 9 19. Ship without the WebSocket provider for a single-device app; add it when collaboration becomes a real requirement.

How does local-first interact with AI features?

Carefully. The local-first stance and the cloud-AI inference stance pull in opposite directions — the former wants data on-device, the latter wants data in a vendor's GPU. The honest pattern is that AI calls are explicit, opt-in, and scoped — the user sends a specific note for a specific transformation, and the rest of the corpus stays local. On-device inference (WebGPU, MLC, Transformers.js) is the experimental path that resolves the tension structurally; it works for small models in 2026 and gets better every quarter.

Why is the merge layer binary if the seven ideals talk about openness?

Because text-merging text is not the same problem as text-merging documents. CRDTs encode operation history alongside content, and binary columnar formats are how Yjs and Automerge keep that history compact 9 14. Openness is preserved through the published spec and the round-trip path: an Automerge document can always be exported to a JSON view, a Yjs document to a string. The bytes are a database file, not a lock-in surface.

Where does local-first fail today?

Three places. First, full-text search across many local documents requires you to build the index — there is no equivalent of Postgres tsvector. Second, schema migrations must be coded as forward-compatible transforms because you cannot reach offline tabs to update them. Third, multi-device sync requires either a coordination server (Linear's $80/month case) or a peer transport (WebRTC, USB stick, file). None of these are blockers in 2026, but each is engineering work the cloud SaaS path would have absorbed for you.

Is there a Local-First Conference?

Yes — it ran for the first time on May 30, 2024, with talks from Kleppmann, Linear's Tuomas Artman, Goodnotes, tldraw, and Maggie Appleton on "home-cooked software" 5. The 2026 edition is July 12–14 in Berlin at Festsaal Kreuzberg, single-track for ~350 attendees, with confirmed talks from Kleppmann, Steve Ruiz (tldraw), Paul Frazee (Bluesky CTO), and Seph Gentle 7. The lofi.so community runs an ongoing online event series with recordings on YouTube 6.

Closing

Local-first software is what software looked like in 1995 plus what we have learned about merge functions in the thirty years since. The 2019 paper named the architecture; the 2026 ecosystem has the libraries, the storage primitives, and a small but growing set of production proofs. If you are building something where the user's data matters more than your roadmap — notes, documents, drawings, code, journals — local-first is the architecture that lets you make that promise structurally instead of as a marketing claim. The trade-offs are real and they are worth it.

MNMNOTE is a local-first markdown editor that runs in any browser — your notes stay on your own device in open Markdown, work offline, and survive whether the project does or not.


References


JSON-LD

Article

ScholarlyArticle (the Onward! 2019 reference)

FAQPage

Footnotes

  1. Kleppmann, M., Wiggins, A., van Hardenberg, P., & McGranaghan, M. (2019). "Local-first software: You own your data, in spite of the cloud." Proceedings of the 2019 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software (Onward! '19), Athens, Greece, October 2019, pp. 154–178. DOI: https://doi.org/10.1145/3359591.3359737. Accessed 2026-05-16. ↩ ↩2

  2. Hacker News thread history for "Local-first software" — Algolia search results: "Local-first software (2019)" 883 points / 297 comments (2025-07-05, item 44473135); "Local-first software: you own your data, in spite of the cloud" 748 / 239 (2019-11-20, item 21581444); 566 / 190 (2019-05-02, item 19804478). Accessed 2026-05-16. Source: https://hn.algolia.com/api/v1/search?query=local-first+software&tags=story. ↩

  3. Kleppmann, M. Personal site / Cambridge profile. https://martin.kleppmann.com/. Associate Professor, University of Cambridge; research area "local-first collaboration software and distributed systems security"; co-author of Designing Data-Intensive Applications 2e (2026). Accessed 2026-05-16. ↩ ↩2

  4. Kleppmann, M., Wiggins, A., van Hardenberg, P., & McGranaghan, M. (2019). "Local-first software: You own your data, in spite of the cloud" — essay version published by Ink & Switch. https://www.inkandswitch.com/essay/local-first/. Contains the seven ideals and the line "we treat the copy of the data on your local device as the primary copy." Accessed 2026-05-16. ↩ ↩2 ↩3 ↩4

  5. Evil Martians team. "Recapping the first Local-First conference in 15 minutes." May 30, 2024. https://evilmartians.com/chronicles/recapping-the-first-local-first-conference-in-15-minutes. Source for Tuomas Artman's quote on sync engines and the 10,000-users-on-$80/month figure; Kleppmann's "availability of another computer should never prevent you from working" line; Goodnotes' 30M MAU; Maggie Appleton's home-cooked software talk. Accessed 2026-05-16. ↩ ↩2 ↩3 ↩4 ↩5 ↩6

  6. Lofi.so / LoFi Web. https://lofi.so/. Local-First Web event series; LoFi/36 on April 28, 2026; sponsors include Jazz, Electric SQL, PowerSync, Vella.ai. Accessed 2026-05-16. ↩ ↩2

  7. Local-First Conf 2026. https://localfirstconf.com/. July 12–14, 2026, Berlin, Festsaal Kreuzberg. Confirmed speakers: Kleppmann, Steve Ruiz (tldraw), Paul Frazee (Bluesky), Seph Gentle. Organizers: Schickling, Wiggins, Arthur. Accessed 2026-05-16. ↩ ↩2 ↩3 ↩4 ↩5

  8. Ink & Switch. "Local-first software" research area. https://www.inkandswitch.com/. "Software architecture that returns data to users and enables collaboration in every tool." Accessed 2026-05-16. ↩

  9. Yjs (Kevin Jahns et al.). https://yjs.dev/ and https://github.com/yjs/yjs. CRDT library; "the most popular engine for building collaborative applications"; >900,000 weekly NPM downloads; 21,800 GitHub stars; v14.0.0-rc.7 (2026-03-27); MIT license; production users include Evernote, Linear, AFFiNE, Proton Docs, Meta/Lexical. Accessed 2026-05-16. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8

  10. Loro (Loro Dev). https://loro.dev/ and https://github.com/loro-dev/loro. CRDT library, Rust + WASM + Swift FFI; 5.6k stars; Fugue text algorithm, moveable trees/lists, last-write-wins maps, time-travel, shallow snapshots. Accessed 2026-05-16. ↩ ↩2 ↩3 ↩4 ↩5 ↩6

  11. Shapiro, M., Preguiça, N., Baquero, C., & Zawirski, M. (2011). "Conflict-Free Replicated Data Types." Stabilization, Safety, and Security of Distributed Systems (SSS 2011). INRIA technical report RR-7506. https://hal.inria.fr/inria-00609399/. Foundational definition of CRDTs and "strong eventual consistency." Accessed 2026-05-16. ↩

  12. Yjs documentation. https://docs.yjs.dev/. Shared types Y.Map, Y.Array, Y.Text; integrations with ProseMirror, Tiptap, Monaco, Quill, CodeMirror, Remirror. Accessed 2026-05-16. ↩ ↩2

  13. Yjs landing page and README on GitHub. https://yjs.dev/ and https://github.com/yjs/yjs. "The fastest CRDT implementation by far" (yjs.dev landing); Lamport timestamps, state vectors; V1 and V2 update formats; "as long as all changes eventually arrive, the documents will sync." Accessed 2026-05-16. ↩ ↩2

  14. Automerge (Ink & Switch / Kleppmann). https://automerge.org/ and https://github.com/automerge/automerge. CRDT library, Rust + WASM; 6.3k stars; v3.2.6 (2026-04-22); ~10× memory reduction in v3; "Automerge aims to be PostgreSQL for your local-first app"; full-time maintainers Alex and Orion. Accessed 2026-05-16. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9

  15. Velt blog. "Best CRDT Libraries 2025." Comparative discussion of Yjs, Automerge, Loro for production use. https://velt.dev/blog/best-crdt-libraries-real-time-data-sync. Accessed 2026-05-16. ↩

  16. Pete LePage et al. "Storage for the web." web.dev. https://web.dev/articles/storage-for-the-web. Quotas: Chrome 60% origin/80% group; Firefox 50%/2 GB eTLD+1; Safari ~1 GB with 7-day eviction; PWAs exempt. Accessed 2026-05-16. ↩ ↩2 ↩3 ↩4

  17. Mozilla Developer Network. "IndexedDB API." https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API. "Low-level API for client-side storage of significant amounts of structured data"; "transactional database system, like an SQL-based RDBMS"; same-origin policy; available in Web Workers. Accessed 2026-05-16. ↩ ↩2

  18. RxDB. "LocalStorage vs IndexedDB vs Cookies vs OPFS vs WASM-SQLite." Tested on Google Chrome 128.0.6613.137. https://rxdb.info/articles/localstorage-indexeddb-cookies-opfs-sqlite-wasm.html. Source for benchmark table: localStorage 0.017 ms write, IndexedDB 0.17 ms write, OPFS init 23 ms main / 26.8 ms Worker / 46 ms IndexedDB / 535 ms WASM SQLite + IDB; bulk OPFS Worker 104 ms vs main 280 ms. Article last updated 2026-05-12. Accessed 2026-05-16. ↩ ↩2 ↩3

  19. Dexie.js. https://dexie.org/. "Offline-first database library that simplifies IndexedDB"; built-in cloud sync (Dexie Cloud); reactive useLiveQuery for React. Accessed 2026-05-16. ↩ ↩2

  20. Dexie.js GitHub. https://github.com/dexie/Dexie.js. v4.4.2 (2026-03-31); 14.3k stars; Apache-2.0; "used by 100,000 of web sites." Accessed 2026-05-16. ↩

  21. Dexie React tutorial. https://dexie.org/docs/Tutorial/React. useLiveQuery hook, schema definition with db.version(1).stores(), parameterized queries with dependencies array. Accessed 2026-05-16. ↩

  22. Wallace, E. (October 16, 2019). "How Figma's multiplayer technology works." Figma Blog. https://www.figma.com/blog/how-figmas-multiplayer-technology-works/. Source for "Figma isn't using true CRDTs though" and the fractional-indexing tree-ordering description. Accessed 2026-05-16. ↩

  23. Ango, S. (July 1, 2023). "File over app." https://stephango.com/file-over-app. "In the fullness of time, the files you create are more important than the tools you use to create them. Apps are ephemeral, but your files have a chance to last." Accessed 2026-05-16. ↩

  24. European Commission. "Data Act." https://digital-strategy.ec.europa.eu/en/policies/data-act. Effective 12 September 2025; "framework for customers to effectively switch between different providers of data-processing services"; "greater control over the data generated by their connected devices." Accessed 2026-05-16. ↩ ↩2

  25. Doctorow, C. (January 21, 2023). "Tiktok's enshittification." Pluralistic. https://pluralistic.net/2023/01/21/potemkin-ai/. Original public definition of "enshittification." Accessed 2026-05-16. ↩