"It's like Git, for your data."

CR-SQLite is a run-time loadable extension (opens in a new tab) for SQLite (opens in a new tab) and libSQL (opens in a new tab). It allows merging different SQLite databases together that have taken independent writes.

In other words, you can write to your SQLite database while offline. I can write to mine while offline. We can then both come online and merge our databases together, without conflict.

In technical terms: cr-sqlite adds multi-master replication and partition tolerance to SQLite via conflict free replicated data types (CRDTs (opens in a new tab)) and/or causally ordered event logs.

For those that want a deep dive into the consistency model and how conflicts are resolved, see the deep dive section. Otherwise, continue to the getting started section. Otherwise head to the quickstart.