Description
Replicate is a local-first sync engine for Convex, the backend platform. It keeps a full copy of your data in client-side SQLite, using OPFS on the web and op-sqlite on React Native, and syncs changes through Convex. Reads come from the local copy, so they are instant, writes work offline, and the sync uses CRDTs with Yjs so concurrent edits merge without you writing conflict resolution logic. Each document is stored in two forms on the client: a materialized JSON copy for fast queries and offline reads, and a Yjs CRDT binary for merging edits. The server keeps the same pair, with the document in a standard Convex table and the CRDT state in the component's internal tables. You install the Replicate component in a Convex project and define a versioned schema with schema.define(), which creates both the Convex table and the client collection. The schema can include server-only private fields that are stored in Convex but stripped before reaching clients. The collection's create call gives you server functions for materialized and delta queries. The source is public on GitHub under the trestleinc organization. It suits developers building real-time or offline-capable apps on Convex.…
Highlights
- Local SQLite copy with offline writes
- Yjs CRDT merging for concurrent edits
- Versioned schema shared by client and server
- Private server-only fields
Ratings & Reviews
No ratings yet
Be the first to rate Replicate.
People also visit
Replicate FAQ
What is Replicate?
It is a local-first sync engine for Convex that keeps a copy of your data in client-side SQLite and syncs it through Convex.
What do I need to use it?
A Convex project. You install the Replicate component, define a schema with schema.define() and create the server functions.
Does it work offline?
Yes. The README says the client keeps a full local copy, so reads are instant and writes work offline.
How are conflicts handled?
Concurrent edits are merged with CRDTs using Yjs, so you do not write conflict resolution code yourself.
What are the best Replicate alternatives?
Popular alternatives to Replicate include Any Sync and Livestore. See all Replicate alternatives




