vlcn-io/cr-sqlite

Convergent, Replicated SQLite. Multi-writer and CRDT support for SQLite

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 31 minutes ago
Added to GitGenius on September 18th, 2026
Created on July 24th, 2022
Open Issues & Pull Requests: 56 (+0)
GitHub issues: Enabled
Number of forks: 125
Total Stargazers: 3,797 (+1)
Total Subscribers: 35 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 24.9 hours
Mean response time: 141.8 days
90th percentile: 1092.9 days
Tracked items: 9

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 12
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 659 days
Stale 30+ days: 11
Stale 90+ days: 7

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

cr-sqlite is a runtime loadable extension for SQLite that adds multi-master replication and conflict-free data synchronization through CRDTs and causally ordered event logs.

The tool solves the problem of merging independent writes across offline or distributed SQLite databases without requiring custom application logic to handle conflicts. It works by implementing conflict-free replicated data types that allow multiple writers to modify the same database simultaneously and then converge to a consistent state when their changes are merged. This approach eliminates the need for application code to manage sync conflicts, network partitions, and offline editing scenarios.

Developers should choose this tool when building applications that require offline-first functionality, real-time collaboration, or resilience to network conditions. It suits projects where multiple devices or users need to write to the same database independently and later synchronize their changes. The tool is particularly valuable for syncing data between devices, implementing collaborative editing features, and enabling instantaneous interactions without waiting for network round trips. Inserts into replicated tables are slower than regular SQLite operations, though reads maintain the same performance as standard SQLite.

The project maintains active development with regular updates to its core functionality and documentation. The tool has attracted backing from multiple established companies and individual contributors who actively participate in its evolution. Example applications demonstrate practical usage patterns across different frameworks and use cases, from TodoMVC implementations to collaborative presentation editors. The project provides comprehensive tutorials and documentation covering networking, synchronization strategies, and setup procedures for developers integrating it into their applications.