crdt_hive 1.0.0-pre.4 crdt_hive: ^1.0.0-pre.4 copied to clipboard
A CRDT backed by a Hive store.
example/crdt_hive_example.dart
import 'package:crdt_hive/crdt_hive.dart';
// TODO: Generate id on first launch
const nodeId = 'random_id';
Future<void> main() async {
var crdt = await CrdtHive.open('test', nodeId);
crdt.put('a', 1);
print(crdt.get('a')); // 1
}