1.0.0 • Published 3 years ago
nest-crdt-tools v1.0.0
Nested CRDT Tools
Provides tools to use with the nest-crdt package,
implementing a MessageHandler (see CachedMessageHandler),
which allows for different broadcasts (see MessageDistributor).
Implementations for some broadcasts are also provided,
which usually rely on a network (see Network),
for which also exist some implementations.
Additionally, a wrapper for managing CRDTs is also provided,
offering a simple interface to create or request CRDTs
(see CRDTManager).
Broadcasts
Following broadcasts are implemented:
- Best-Effort-Broadcast (see
BestEffortMessageDistributor) - Byzantine-Fault-Tolerant Reliable-Broadcast (see
ReliableMessageDistributor) - Some other implementations, which allow for local distribution (see
LocalMessageDistributor), or easier implementation of broadcast algorithms (seeNetworkMessageDistributor), and an abstract implementation, which handles listeners (seeGeneralMessageDistributor)
Networks
Following networks are implemented:
TCPNetworkEncryptedTCPNetwork- An
HTTPNetworkcan be found in thenest-crdt-tools-httppackage (segregated due to its reliance onexpress)
Example
A usage example can be found in the nest-crdt-example package.
Building
To build this project first run npm install to install the node libraries,
then run npm run build, to invoke the TypeScript compiler.
1.0.0
3 years ago