sqlsync: Synchronize Collaborative SQLite State Offline

Summary
SQLSync wraps SQLite to let web applications share database state across users, devices, and the edge, including during network interruptions. It suits teams building local-first apps that need reactive queries and collaborative updates.
At a glance
- Language
- Rust
- License
- Apache-2.0
- Stars
- 2.9k
- Forks
- 42
- Added to OSRepos
- February 18, 2026
- Last analyzed
- October 4, 2026
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
SQLSync is a Rust project for building collaborative web applications around SQLite. It aims to keep application data usable locally and synchronize changes between users, devices, and edge environments, rather than requiring every interaction to depend on a continuously available network connection.
It is a fit for applications whose data can be represented in SQLite and where multiple people need to work on shared state. The repository also provides a React library and describes reactive query subscriptions, optimistic reads and writes, and cross-tab synchronization.
Key Features
- Eventually consistent SQLite state.
- Optimistic reads and writes.
- Reactive query subscriptions.
- Real-time collaboration between users.
- Offline-first operation.
- Cross-tab synchronization.
- A React library for web applications.
Use Cases
- Build collaborative, file-oriented web apps where each document or file can have its own database.
- Let users continue working with app data during unreliable or unavailable network connections.
- Run application state at the edge while tolerating intermittent connectivity.
- Add optimistic mutations to SQLite read replicas.
Project Facts
- Language: Rust
- License: Apache-2.0
- Stars: 2.9k
- Forks: 42
- Topics: collaborative, database, local-first, offline-first, relational-database, sql, sqlite, sqlsync
- Archived: No
Getting Started
Read the getting started guide for setup and integration details. The repository also links to a Todo list demo for trying collaborative behavior in a browser.
Alternatives
- yjs-cf-ws-provider: It relays Yjs document updates through Cloudflare Workers, rather than syncing SQLite databases with reactive queries.
Considerations
- SQLSync is designed around SQLite, so it is most appropriate when the application's data model can be represented relationally in SQLite.
- The README describes eventual consistency, so applications should be designed with synchronization rather than immediate global consistency in mind.
- SQLSync runs in a shared web worker by default. This enables sharing a database across tabs, but makes browser debugging less direct.
- Its
executecalls support one SQL statement at a time. Separate multiple statements into individual calls to avoid trailing statements being ignored.
Comparisons
Source repository
Open the original repository on GitHub.
11 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

skillrank: Find and Evaluate AI-Agent Skills
October 4, 2026
SkillRank is a Rust CLI for discovering, installing, and evaluating skills used by coding agents. Its paired local evaluations compare a skill-enabled run with a control to show changes in success, tokens, time, and cost.

prime-agent: Run Self-Improving Agents for Coding Work
October 2, 2026
Prime Agent is a coding and research agent built for long-running tasks, using a persistent Python environment, recursive subagents, and durable working context. It suits developers and researchers who need agents to keep working across sessions.

SwarmLLM: Run Local and Distributed AI Models
October 2, 2026
SwarmLLM runs open AI models on your computer and can pool resources with other computers to run larger models. It also provides OpenAI- and Anthropic-compatible APIs for local apps and agents.

OpenCompany: Coordinate AI Agents to Run a One-Person Business
September 30, 2026
OpenCompany is a Rust-based host for configuring and running companies staffed by coordinated AI agents. It is aimed at solo operators who want to delegate business functions while retaining key decisions, and is explicitly not production-ready.