offline_sync_engine 1.0.0
offline_sync_engine: ^1.0.0 copied to clipboard
CRDT-based offline-first sync engine with deterministic merge and multi-device safety.
Offline Sync Engine #
Offline-first CRDT-based sync engine for Flutter and Dart.
Features #
- Operation-based CRDT
- Vector clock conflict resolution
- Deterministic merge
- Multi-device safe
- Idempotent operations
- Offline-first architecture
Usage #
Implement LocalStore and RemoteTransport.
Then:
final engine = CRDTSyncEngine(
store: myLocalStore,
transport: myTransport,
deviceId: "device_123",
);
await engine.createOrUpdate("user1", {"name": "Harsh"});
await engine.sync();