Build collaborative applications that work everywhere — online, offline, and everything in between. Powered by mathematical CRDTs, SyncFabric guarantees zero data loss with automatic conflict resolution.
import { SyncFabric } from 'rvs-syncfabric';
const doc = new SyncFabric.Document('my-doc', {
offlineStorage: 'indexeddb',
syncEndpoint: 'wss://api.syncfabric.dev/v1',
conflictStrategy: 'crdt-automerge'
});
doc.on('sync', (delta) => console.log('Merged:', delta));
doc.set('title', 'Hello SyncFabric!'); // ← Syncs everywhere
Designed for teams who build the future
From offline-first storage to real-time collaboration, SyncFabric handles the complexity so you can focus on building.
Mathematical conflict-free replicated data types ensure every edit merges deterministically. No conflicts, no data loss — ever.
CoreEvery change persists locally to IndexedDB or SQLite. Your app works flawlessly even in airplane mode or dead zones.
Compressed differential updates — only changed bytes travel the wire. Up to 95% bandwidth reduction vs full-state sync.
Sub-5ms merge latency with WebSocket transport. Multiple users editing the same document simultaneously, perfectly merged.
Immutable MySQL event log records every state mutation. Full audit trail with time-travel debugging built in.
AES-256 encryption at rest and in transit. Your data is secure on device, on wire, and at the ledger layer.
A deep look at the distributed sync pipeline — from keystroke to global convergence.
Every edit is assigned a unique hybrid logical clock (HLC) identifier on the client. Changes are immediately applied to local state.
doc.set("title", "Hello") → HLC:a3f8:001Changes persist immediately to an embedded local database (IndexedDB in browsers, SQLite in native). Your app never drops a keystroke.
Upon reconnection, the client calculates compressed binary differentials — only the exact bytes that changed are packaged for transport.
Your Node.js backend receives the delta, appends it to the immutable MySQL ledger, and broadcasts to all connected peers for instant convergence.
Type in either editor — watch changes sync in real-time with simulated network latency & offline recovery.
Comprehensive guides, API references, and examples to get you shipping in minutes.
Go from zero to syncing in under 5 minutes with our step-by-step guide.
Read Guide →Complete API documentation with TypeScript definitions and examples.
Explore API →React, Vue, Svelte hooks. Node.js, Deno, and Bun server adapters.
View All →Deep dive into CRDTs, HLCs, and the append-only ledger design.
Learn More →Open-source core with managed cloud for teams that need more.
Full CRDT engine, offline storage, and sync protocol. Self-host everything.
Managed sync infrastructure with analytics, webhooks, and priority support.
Dedicated infrastructure, SLA guarantees, SSO, and white-glove onboarding.
Install SyncFabric in seconds and start building offline-first, conflict-free collaborative experiences.
npm install rvs-syncfabric