---
title: "Local-first & sync"
description: "Offline-first apps, sync engines, client-side databases"
url: "https://swe.quest/tags/local-first?per=96"
---

# Local-first & sync

Topic in Architecture & design: Offline-first apps, sync engines, client-side databases

By difficulty: [Easy](https://swe.quest/tags/local-first.md?difficulty=easy) · [Medium](https://swe.quest/tags/local-first.md?difficulty=medium) · [Hard](https://swe.quest/tags/local-first.md?difficulty=hard)

Posts 1–31 of 31, page 1 of 1, newest first.

## 2026-11-25

- [One Postgres, a database per user, or both?](https://swe.quest/articles/one-postgres-a-database-per-user-or-both-3df8849f282fa457.md): Turso · 2026-11-25 · Easy · 10 min read · Multi-tenancy, Local-first & sync, System design, SQLite, PostgreSQL
  Choosing between one Postgres database, a Turso database per user, or both comes down to where data must live, who owns it, and how many features need to read across users.

## 2026-11-16

- [Turso Sync: Local-First SQLite with Push and Pull](https://swe.quest/articles/turso-sync-local-first-sqlite-with-push-and-pull-8967f9053b2dc6bc.md): Turso · 2026-11-16 · Medium · 10 min read · Local-first & sync, SQLite, Replication, Event-driven architecture, Performance engineering
  Turso Sync replaces libSQL's page-based Embedded Replicas with logical row-level changes captured via CDC in Turso Database, a Rust rewrite of SQLite, so reads and writes stay local and apps call push() and pull() explicitly.

## 2026-11-12

- [Local Analytics Doesn’t Need a Database Server](https://swe.quest/articles/local-analytics-doesn-t-need-a-database-server-3fa900323ef7de2e.md): DuckDB · 2026-11-12 · Medium · 6 min read · Analytics & OLAP, Local-first & sync, Maps & geospatial, WebAssembly, Frontend
  SQLRooms, an open-source React toolkit extracted from Flowmap City, builds analytics apps on DuckDB running in the browser via WebAssembly or embedded in desktop apps, so no remote database server is needed.

## 2026-11-03

- [Does your application need local data or faster Postgres?](https://swe.quest/articles/does-your-application-need-local-data-or-faster-postgres-dc8690cbad1e3fc9.md): ClickHouse · 2026-11-03 · Easy · 9 min read · PostgreSQL, Local-first & sync, System design, Replication, AI agents
  Before adding a sync engine or local data copy to speed up an application, check whether the real bottleneck is network-attached storage under managed Postgres.

## 2026-10-07

- [Toasty now fully supports Turso](https://swe.quest/articles/toasty-now-fully-supports-turso-b9805f71f7e75171.md): Turso · 2026-10-07 · Medium · 5 min read · Rust, SQLite, Local-first & sync, Serverless, Databases
  Toasty, the async Rust ORM from Tokio's creator, now supports Turso in three modes behind one API: local files with optional concurrent writes (transactions automatically wrapped in BEGIN CONCURRENT), a serverless remote mode over HTTP with URL and auth token, and local-first sync with explicit pull/push calls.

## 2026-09-01

- [Xanadu Was Waiting for Agents](https://swe.quest/articles/xanadu-was-waiting-for-agents-d8ee9682901d8286.md): Zed · 2026-09-01 · Easy · 6 min read · Version control, AI agents, Local-first & sync, Developer tools
  Ted Nelson's Project Xanadu specified permanent versioning, span-level attribution and transclusion decades before its dependencies existed.

## 2026-08-18

- [Rebuilding Linear’s delta sync read path](https://swe.quest/articles/rebuilding-linear-s-delta-sync-read-path-c44713dd7fac387a.md): Linear · 2026-08-18 · Medium · 7 min read · Local-first & sync, PostgreSQL, Search, Event-driven architecture, Performance engineering
  Linear moved its delta sync read path, which lets reconnecting local-first clients fetch only changes since their last checkpoint, from a Postgres table to turbopuffer inverted indexes.

## 2026-07-27

- [Building Local-First Apps: The Complete Guide to Offline-First Database Sync](https://swe.quest/articles/building-local-first-apps-the-complete-guide-to-offline-first-database-sync-047687e423c4421f.md): Turso · 2026-07-27 · Medium · 9 min read · Local-first & sync, SQLite, Replication, Consistency models, TypeScript
  Turso Sync brings local-first behaviour to SQLite-based apps.

## 2026-07-20

- [Building AI Agent Databases: A Complete Guide to Database-per-Agent Architecture](https://swe.quest/articles/building-ai-agent-databases-a-complete-guide-to-database-per-agent-architecture-e621ee857e5a5f4f.md): Turso · 2026-07-20 · Medium · 7 min read · Multi-tenancy, AI agents, SQLite, Local-first & sync, Vector search
  Giving each AI agent its own SQLite-style database, instead of sharing tables keyed by tenant\_id or using schema-per-tenant, makes isolation, debugging and cleanup trivial: deleting an agent is a single API call.

## 2026-05-14

- [From latency to instant: Modernizing GitHub Issues navigation performance](https://swe.quest/articles/from-latency-to-instant-modernizing-github-issues-navigation-performance-d76fe4f2daa6064a.md): GitHub Engineering · 2026-05-14 · Medium · 13 min read · Web performance, Caching, Frontend, Local-first & sync, Browsers
  GitHub made Issues navigation feel instant by moving to a local-first, stale-while-revalidate model: render issue pages from client-side data first, then revalidate in the background.

## 2026-05-04

- [How Sample Vault syncs gigabyte-scale databases from cloud to local with Turso](https://swe.quest/articles/how-sample-vault-syncs-gigabyte-scale-databases-from-cloud-to-local-with-turso-df87236519a9ee42.md): Turso · 2026-05-04 · Easy · 6 min read · Local-first & sync, SQLite, Multi-tenancy, Replication
  Sample Vault, an AI sample browser for music producers, gives each premium user a dedicated Turso database.

## 2026-04-24

- [Turso Sync: a much, much, much better way to sync](https://swe.quest/articles/turso-sync-a-much-much-much-better-way-to-sync-f7b69ab545fa6e56.md): Turso · 2026-04-24 · Medium · 8 min read · SQLite, Local-first & sync, Replication, Performance engineering
  Turso, a Rust rewrite of SQLite, replaces libSQL's Embedded Replicas with a sync model built on change data capture, shipping logical changes instead of physical pages and splitting sync into separate push() and pull() operations.

## 2026-01-29

- [Introducing React Native Bindings for Turso](https://swe.quest/articles/introducing-react-native-bindings-for-turso-d4859b547f15d23e.md): Turso · 2026-01-29 · Medium · 3 min read · Local-first & sync, Mobile, React, SQLite
  \`@tursodatabase/sync-react-native\` is a single package that gives React Native apps on iOS and Android an embedded, SQLite-compatible Turso database plus optional bidirectional sync with Turso Cloud via \`pull\` and \`push\`, enabling offline-first apps.

## 2026-01-05

- [Turso v0.4.0](https://swe.quest/articles/turso-v0-4-0-191cca637e457c1d.md): Turso · 2026-01-05 · Medium · 3 min read · SQLite, Storage engines, Query engines, Local-first & sync, Concurrency
  Turso v0.4.0 overhauls its experimental MVCC mode, which lifts SQLite's single-writer limit, adding index support, checkpointing and recovery.

## 2025-12-22

- [AgentFS in the Browser](https://swe.quest/articles/agentfs-in-the-browser-5b295716ac634197.md): Turso · 2025-12-22 · Medium · 5 min read · AI agents, SQLite, WebAssembly, Browsers, Local-first & sync
  AgentFS gives browser-based agents a virtual filesystem stored in a SQLite database, using Turso's WASM build of its Rust rewrite of SQLite.

## 2025-10-08

- [Introducing Turso in the Browser](https://swe.quest/articles/introducing-turso-in-the-browser-111a711a5e4d489d.md): Turso · 2025-10-08 · Medium · 3 min read · SQLite, WebAssembly, Browsers, Local-first & sync, JavaScript
  Turso, a from-scratch SQLite rewrite, now runs in the browser via WebAssembly as the npm package @tursodatabase/database-wasm, with a better-sqlite3-like API whose methods are all async because of OPFS.
- [Introducing Databases Anywhere with Turso Sync](https://swe.quest/articles/introducing-databases-anywhere-with-turso-sync-0b3d82e805c07b9f.md): Turso · 2025-10-08 · Medium · 4 min read · Local-first & sync, SQLite, Replication, Identity & auth, JavaScript
  Turso Sync lets local SQLite-compatible Turso databases, in Node or in the browser via WASM, sync with Turso Cloud through push, pull and sync-aware checkpoint methods layered on the standard database API.

## 2025-08-07

- [TanStack DB with Sync – the future of real-time UI](https://swe.quest/articles/tanstack-db-with-sync-the-future-of-real-time-ui-23c7d45a5c87b6ef.md): Neon · 2025-08-07 · Medium · 8 min read · Local-first & sync, Real-time systems, React, PostgreSQL, TypeScript
  Pairing TanStack DB with the ElectricSQL sync engine gives web apps end-to-end real-time updates and optimistic mutations, with Postgres as the source of truth.

## 2025-06-02

- [How to Deploy Schema Changes to a Million Databases](https://swe.quest/articles/how-to-deploy-schema-changes-to-a-million-databases-356cdf3f01c11d17.md): Turso · 2025-06-02 · Medium · 4 min read · Schema migrations, Multi-tenancy, SQLite, Local-first & sync, Go
  Database-per-tenant schema migrations can scale to millions of databases by inverting control: a hosted schema registry stores a versioned catalog of SQL scripts, and each client periodically reports its schema version, pulls the missing migrations and applies them locally.

## 2025-01-08

- [Local RAG with Ollama, Mistral, and Turso](https://swe.quest/articles/local-rag-with-ollama-mistral-and-turso-c9414cc4e6a29ef6.md): Turso · 2025-01-08 · Medium · 8 min read · RAG & retrieval, Vector search, SQLite, Local-first & sync, TypeScript
  A local retrieval-augmented generation pipeline can be built in TypeScript using Ollama's Mistral model for both embeddings and generation, with libSQL storing documents and 4096-dimension F32\_BLOB vectors in a single SQLite file indexed via libsql\_vector\_idx.

## 2024-10-25

- [Introducing Offline Writes for Turso](https://swe.quest/articles/introducing-offline-writes-for-turso-e48bdc4a18b3aae7.md): Turso · 2024-10-25 · Easy · 4 min read · Local-first & sync, SQLite, Replication, Multi-tenancy
  Turso is opening a private beta for Offline Writes, letting applications write to local embedded SQLite replicas while online or offline and sync those changes to the cloud later.

## 2024-10-08

- [Building offline-first mobile apps with Supabase, Flutter and Brick](https://swe.quest/articles/building-offline-first-mobile-apps-with-supabase-flutter-and-brick-2c96e1b595fc5e17.md): Supabase · 2024-10-08 · Medium · 6 min read · Local-first & sync, Mobile, Caching, SQLite
  Brick is a Flutter data manager that keeps Supabase data in local SQLite and optional in-memory caches so apps behave the same with or without connectivity.

## 2024-10-02

- [Building Vector Search and Personal Knowledge Graphs on Mobile with libSQL and React Native](https://swe.quest/articles/building-vector-search-and-personal-knowledge-graphs-on-mobile-with-libsql-and-9cac5c5150db9825.md): Turso · 2024-10-02 · Medium · 10 min read · Vector search, SQLite, Mobile, Local-first & sync, React
  Kin, a local-first personal AI app, stores its agent memory as a vector-searchable knowledge graph on the user's device using libSQL through the OP-SQLite React Native binding, enabled with a package.json flag.

## 2024-09-30

- [Personal Knowledge Graphs in AI RAG-powered Applications with libSQL](https://swe.quest/articles/personal-knowledge-graphs-in-ai-rag-powered-applications-with-libsql-0896de56d7bc65a9.md): Turso · 2024-09-30 · Medium · 6 min read · Vector search, SQLite, RAG & retrieval, Local-first & sync, Mobile
  Kin, a local-first mobile personal AI, stores its personal knowledge graph in libSQL so that relational data, graph edges and vector embeddings live in one embeddable single-file database instead of syncing a separate store like faiss.

## 2024-09-23

- [Local-first Realtime Apps with Expo and Legend-State](https://swe.quest/articles/local-first-realtime-apps-with-expo-and-legend-state-f16eaf0818ab58cf.md): Supabase · 2024-09-23 · Medium · 8 min read · Local-first & sync, Mobile, React, PostgreSQL, Real-time systems
  Expo and React Native apps can go local-first by pairing Legend-State's sync engine with Supabase.

## 2024-09-19

- [Comparing local-first frameworks and approaches](https://swe.quest/articles/comparing-local-first-frameworks-and-approaches-d0bd0fb78a9919b2.md): Neon · 2024-09-19 · Easy · 6 min read · Local-first & sync, Consistency models, Replication, PostgreSQL
  Local-first software keeps data on the user's device and syncs opportunistically, and three representative approaches take different routes to it.

## 2024-01-30

- [Post mortem on Linear incident from Jan 24th, 2024](https://swe.quest/articles/post-mortem-on-linear-incident-from-jan-24th-2024-c1bcc35cc14b559c.md): Linear · 2024-01-30 · Medium · 9 min read · Incidents & postmortems, PostgreSQL, Schema migrations, Local-first & sync
  A database migration using \`TRUNCATE TABLE ... CASCADE\` on two new, unused tables silently wiped every production table with foreign keys to them, including issue and document descriptions, comments, notifications and reactions.

## 2023-10-08

- [Offline-first React Native Apps with Expo, WatermelonDB, and Supabase](https://swe.quest/articles/offline-first-react-native-apps-with-expo-watermelondb-and-supabase-1f52e6fbab692dbe.md): Supabase · 2023-10-08 · Medium · 7 min read · Local-first & sync, Mobile, PostgreSQL, React
  An offline-first React Native/Expo app can use WatermelonDB (SQLite-based, last-write-wins sync) as its local store and sync to Supabase Postgres through two RPC calls: a \`push\` function that applies client changesets and a \`pull\` function that returns all changes since the last sync timestamp.

## 2022-12-10

- [pg\_crdt - an experimental CRDT extension for Postgres](https://swe.quest/articles/pg-crdt-an-experimental-crdt-extension-for-postgres-19dd4ebad247eefd.md): Supabase · 2022-12-10 · Easy · 7 min read · PostgreSQL, Consistency models, Local-first & sync, Real-time systems
  pg\_crdt is an experimental, open-source Postgres extension that adds CRDT column types (wrapping the Yjs and Automerge Rust libraries via pgx), so a column like a post's content can be a Yjs Doc whose updates are commutative and idempotent.

## 2022-12-01

- [How CRDTs make multiplayer text editing part of Zed's DNA](https://swe.quest/articles/how-crdts-make-multiplayer-text-editing-part-of-zed-s-dna-b0f0df37585dbddf.md): Zed · 2022-12-01 · Medium · 12 min read · Local-first & sync, Real-time systems, Consistency models, Algorithms, Rust
  Zed builds collaborative editing into its core using CRDTs rather than Operational Transformation, making concurrent edits commutative by addressing text through stable logical anchors (insertion id plus offset) instead of absolute offsets.

## Unknown date

- [Integrating the Dropbox Datastore API with Ractive.js](https://swe.quest/articles/integrating-the-dropbox-datastore-api-with-ractive-js-cdaf88a29aa3c6bf.md): Dropbox Tech · Medium · 2 min read · JavaScript, Frontend, Local-first & sync
  Ractive Datastore is a 40-line library that pairs Ractive.js two-way data binding with the Dropbox Datastore API for cross-device syncing.

Same list as RSS: [https://swe.quest/feed.xml?tag=local-first](https://swe.quest/feed.xml?tag=local-first). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
