0.2.0 • Published 1 year ago
crdts v0.2.0
CRDTs
A library of Conflict-Free Replicated Data Types for JavaScript.
Work In Progress
This module provides a set of Conflict-Free Replicated Data Types for your JavaScript programs. All CRDTs in this library, except G-Counter, are currently operation-based.
CRDTs implemented in this module:
Install
This module uses npm and node.
To install, run:
$ npm install crdts
Usage
import { GCounter, PNCounter, GSet, TwoPSet, ORSet, LWWSet, GSet, ORSet, LWWSet } from 'crdts'
See the source code for each CRDT for the APIs and tests for usage examples.
Inheritance
+-----------++-----------++----------++---------++------------++------------+
Data Type | OR-Set || LWW-Set || 2P-Set || G-Set || G-Counter || PN-Counter |
+-----------++-----------++----------++---------++------------++------------+
Base Class | CmRDT-Set | -- |
|-----------------------------------------------+---------------------------+
CRDT Type | Operation-Based | State-based |
+-----------------------------------------------+---------------------------+
CRDTs Research
To learn more about CRDTs, check out this research:
- "A comprehensive study of Convergent and Commutative Replicated Data Types" paper
- CRDTs on Wikipedia
- IPFS's CRDT research group
Contribute
If you think this could be better, please open an issue!
Please note that all interactions in @OrbitDB fall under our Code of Conduct.
License
MIT © 2017-2019 Haja Networks Oy
0.2.1-45982c1.0
1 year ago
0.2.0
1 year ago
0.1.6-f8f738d.0
1 year ago
0.2.1-16bb4a9.0
1 year ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.1
8 years ago