Overview of Sync Engine Web
mainSync Engine Web is a local-first, offline-capable web sync engine that uses CRDT-based synchronization to maintain data consistency across multiple devices. It is designed for reliable data synchronization where the server acts as a sync and backup layer, while all primary data operations and querying occur client-side.
Core Architecture
- Client: A web-based implementation using IndexedDB (via
dexie) for local storage, Web Workers for background synchronization, and client-side schema migrations. - Server: A client-agnostic REST API that stores encoded CRDT data as bytes. It manages workspaces, backups, and JWT-based authentication.
- Shared Packages: Contains schema definitions, type definitions, and migration utilities used by both client and server.