SQLite-Sync
Offline-first CRDT sync for SQLite databases that enables conflict-free replication across devices, syncing to SQLite Cloud, PostgreSQL, or Supabase with no backend to build.
At a Glance
For prototypes, demos, and small experiments.
Engagement
Available On
Listed Aug 2026
About SQLite-Sync
SQLite-Sync is a multi-platform SQLite extension that turns any local SQLite database into a conflict-free, offline-first replica. Built by SQLite Cloud, Inc., it uses CRDT (Conflict-free Replicated Data Types) algorithms to guarantee that devices can write independently — even without a network connection — and merge all changes automatically when connectivity returns. It syncs to SQLite Cloud, PostgreSQL, or Supabase as the central backend.
What It Is
SQLite-Sync is a database synchronization layer that extends SQLite with CRDT-based conflict resolution. Rather than requiring developers to build a custom sync protocol or backend, a single SQL function call (cloudsync_init) enables a table for sync, and cloudsync_network_sync() handles sending and receiving changes. The extension ships as a loadable SQLite module and is available for Linux, macOS, Windows, iOS, Android, and WebAssembly (WASM).
How the CRDT Engine Works
The sync engine implements several CRDT algorithms — Causal-Length Set, Delete-Wins, Add-Wins, and Grow-Only Set — to handle concurrent edits deterministically. Key guarantees include:
- No data loss: devices update independently offline and all changes merge automatically on reconnect.
- No conflicts: deterministic merge means no manual conflict resolution is ever required.
- No extra infrastructure: a globally distributed network of CloudSync microservices handles routing, packaging, and delivery of changes between SQLite and other DBMS nodes.
A notable feature called Block-Level LWW splits text columns into individual lines and merges them independently, specifically designed to keep markdown files and AI agent memory in sync when multiple agents or devices edit different sections of the same document.
Platform and Integration Support
SQLite-Sync is designed to fit into a wide range of runtimes:
- Mobile: Swift (iOS via Swift Package), Android (
ai.sqlite:syncon Maven Central), Flutter (sqlite_syncon pub.dev) - Web: WASM (
@sqliteai/sqlite-wasmon npm) - Cross-platform JS: Expo (
@sqliteai/sqlite-sync-expo), React Native (@sqliteai/sqlite-sync-react-native) - Backend sync targets: SQLite Cloud CloudSync, self-hosted PostgreSQL, self-hosted or cloud Supabase
Row-Level Security (RLS) is enforced server-side, allowing a single shared cloud database to serve multiple tenants where each client syncs only the rows it is authorized to see.
Part of the SQLite AI Ecosystem
SQLite-Sync is one component in a broader suite of SQLite extensions maintained by SQLite Cloud, Inc. under the sqliteai GitHub organization. The ecosystem includes:
- SQLite-AI: on-device LLM inference and embeddings
- SQLite-Agent: autonomous AI agents running inside SQLite
- SQLite-Memory: persistent, searchable memory for agents
- SQLite-Vector: ANN vector search inside SQLite tables
- SQLite-Columnar: column-oriented analytics for OLAP queries
- SQLite-JS: custom SQLite functions written in JavaScript
- SQLite-MCP: call MCP tools directly from SQL queries
The managed backend for all of these is SQLite Cloud, which provides hosted infrastructure with auth, access control, edge functions, and observability.
Update: Version 1.1.2
The latest release is version 1.1.2, published on July 14, 2026. The repository was last pushed to on July 27, 2026, and was created in May 2025, indicating active and rapid development. The project follows semantic versioning, with PATCH releases delivering bug fixes and performance improvements without API changes. The PostgreSQL extension surfaces only MAJOR.MINOR in its catalog version, making PATCH releases transparent binary upgrades. The GitHub repository has accumulated 540 stars and 23 forks since its creation.
Community Discussions
Be the first to start a conversation about SQLite-Sync
Share your experience with SQLite-Sync, ask questions, or help others learn from your insights.
Pricing
SQLite Cloud Free
For prototypes, demos, and small experiments.
- 1 CPU
- 256 MB RAM
- 512 MB storage
- 20 max connections
- Vector Search
CloudSync Free
For testing CloudSync with small local-first apps.
- 20 devices
- 1 GB traffic
- SQLite Cloud, PostgreSQL, or Supabase backend
SQLite Cloud Dev
For development teams building connected SQLite apps.
- 1 CPU
- 1 GB RAM
- 3 GB storage
- 100 max connections
- Daily snapshots
- 3-day log retention
- Email support
- CloudSync Free included
- Vector Search
- AI features
- AES256 encryption
- Authentication APIs
- Edge functions
- Row-Level Security
- REST API
- Webhooks
- MCP Server
- Drizzle Studio
SQLite Cloud Pro
For production workloads that need more capacity and insight.
- 2 CPUs
- 2 GB RAM
- 30 GB storage
- 400 max connections
- Daily snapshots
- 7-day log retention
- Email + performance insights support
- CloudSync Free included
- Vector Search
- AI features
- AES256 encryption
- Authentication APIs
- Edge functions
- Row-Level Security
- REST API
- Webhooks
- MCP Server
- Drizzle Studio
SQLite Cloud Enterprise
For teams that need custom capacity, regions, SLAs, or support.
- Custom CPU and RAM
- Custom storage
- Custom retention
- Dedicated support
- Custom snapshot schedule
- Custom backend topology
CloudSync Dev
For teams syncing apps across users, devices, or workers.
- 60 devices
- 3 GB traffic
- SQLite Cloud, PostgreSQL, or Supabase backend
CloudSync Pro
For production sync workloads with more devices and traffic.
- 200 devices
- 20 GB traffic
- SQLite Cloud, PostgreSQL, or Supabase backend
CloudSync Enterprise
For thousands of devices, large agent fleets, huge sync traffic, or custom SLAs.
- Custom device capacity
- Custom traffic
- Special high-volume pricing
- Custom backend topology
Capabilities
Key Features
- CRDT-based conflict-free sync
- Offline-first local writes
- Block-Level LWW for markdown and text columns
- Row-Level Security (server-enforced)
- Multi-platform support (iOS, Android, WASM, Linux, macOS, Windows)
- Sync to SQLite Cloud, PostgreSQL, or Supabase
- Single function call to enable sync
- No backend to build
- AI agent memory sync
- Automatic conflict resolution
- Built-in networking layer
- Multi-tenant support with RLS
- CRDT algorithms: Causal-Length Set, Delete-Wins, Add-Wins, Grow-Only Set
