Socket
Socket
Sign inDemoInstall

crdts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crdts

A CRDT Library for JavaScript


Version published
Weekly downloads
305
decreased by-8.41%
Maintainers
1
Weekly downloads
 
Created
Source

CRDTs

A CRDT library for JavaScript.

WIP

This module provides a set of Conflict-Free Replicated Data Types for your JavaScript programs. All CRDTs in this library are currently operation-based.

Implemented CRDTs:

  • G-Counter
  • G-Set
  • 2P-Set
  • OR-Set
  • LWW-Set

Usage

npm install crdts
const GCounter = require('crdts/src/G-Counter')
const GSet = require('crdts/src/G-Set')
const TwoPSet = require('crdts/src/2P-Set')
const ORSet = require('crdts/src/OR-Set')
const LWWSet = require('crdts/src/LWW-Set')

See the source code for each CRDT for the APIs and tests for usage examples.

Inheritance

+------------------------------------------------------------+
|           ||           ||          ||         ||           |
|  OR-Set   ||  LWW-Set  ||  2P-Set  ||  G-Set  || G-Counter |
|           ||           ||          ||         ||           |
+-------------------------|          ||         +------------+
|                        ||          ||         |
|       CmRDT-Set        ||          ||         |
|                        ||          ||         |
+-----------------------------------------------+
|                                               |
|                    G-Set                      |
|                                               |
+-----------------------------------------------+

Keywords

FAQs

Package last updated on 09 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc