crdt 1.2.0 copy "crdt: ^1.2.0" to clipboard
crdt: ^1.2.0 copied to clipboard

outdated

Dart implementation of Conflict-free Replicated Data Types (CRDTs).

Dart implementation of Conflict-free Replicated Data Types (CRDTs).

This project is heavily influenced by James Long's talk CRTDs for Mortals and includes a Dart-native implementation of Hybrid Local Clocks (HLC) based the paper Logical Physical Clocks and Consistent Snapshots in Globally Distributed Databases.

It has zero external dependencies, so it should run everywhere where Dart runs.

Usage #

The Crdt class works as a layer on top of a map. The simplest way to experiment is to initialise it an empty map:

import 'package:crdt/crdt.dart';

main() {
  var crdt = Crtd();
}

You'll probably want to implement Store if you want to offer any sort of persistence though.

Example #

An example of how it can be used in an application can be found at https://github.com/cachapa/crdt_server.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

42
likes
0
pub points
72%
popularity

Publisher

verified publishercachapa.net

Dart implementation of Conflict-free Replicated Data Types (CRDTs).

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on crdt