Skip to content
pubscout

crdt_sync

1.0.10, released 2 years ago by cachapa.net

Network synchronization solution for CRDT data stores over WebSockets.

WASM-ready
$ flutter pub add crdt_sync
Source repository

What it does

Handles network plumbing between a local CRDT store and a backend. Provides offline-first, real-time synchronization using delta changesets sent over standard WebSockets.

AI-written summary of version 1.0.10, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need offline-first synchronization with a backend
  • You are using a CRDT-compatible local store

Skip it when

  • You do not use CRDTs for your data store
  • You require traditional REST or GraphQL API communication

Strengths

  • Compatible with all crdt package implementations
  • Optimizes bandwidth using delta changesets
  • Works over standard WebSockets for broad network compatibility

Weaknesses

  • Strictly dependent on the crdt package ecosystem
  • Limited to WebSocket-based communication

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2

Not documented

final crdt = MapCrdt(['chat']);
final client = CrdtSyncClient(crdt, Uri.parse('ws://localhost:8080'));
client.connect();

Alternatives

Packages that do the same job and could replace crdt_sync.

  • http2

    An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.

Works with

Packages commonly used together with crdt_sync: ones it builds on, ones built on it, and its own family.