{"id":13725101,"url":"https://github.com/orbitdb-archive/crdts","last_synced_at":"2025-05-07T19:32:47.226Z","repository":{"id":51128451,"uuid":"56703853","full_name":"orbitdb-archive/crdts","owner":"orbitdb-archive","description":"A library of Conflict-Free Replicated Data Types for JavaScript","archived":true,"fork":false,"pushed_at":"2023-03-10T01:46:30.000Z","size":170,"stargazers_count":214,"open_issues_count":2,"forks_count":16,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-11-14T08:58:26.901Z","etag":null,"topics":["conflict-resolution","crdt","crdts","data-structures","distributed","p2p"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orbitdb-archive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS"}},"created_at":"2016-04-20T16:41:11.000Z","updated_at":"2024-10-16T05:53:18.000Z","dependencies_parsed_at":"2024-01-10T12:01:02.678Z","dependency_job_id":"f5074428-960f-42ee-b427-7cbc7c1872f0","html_url":"https://github.com/orbitdb-archive/crdts","commit_stats":{"total_commits":72,"total_committers":7,"mean_commits":"10.285714285714286","dds":0.2222222222222222,"last_synced_commit":"45982c1345cf2855152d9cac7973b85721fa7a75"},"previous_names":["orbitdb-archive/crdts","orbitdb/crdts"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbitdb-archive%2Fcrdts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbitdb-archive%2Fcrdts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbitdb-archive%2Fcrdts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbitdb-archive%2Fcrdts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orbitdb-archive","download_url":"https://codeload.github.com/orbitdb-archive/crdts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224593862,"owners_count":17337185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conflict-resolution","crdt","crdts","data-structures","distributed","p2p"],"created_at":"2024-08-03T01:02:13.014Z","updated_at":"2024-11-14T15:30:43.341Z","avatar_url":"https://github.com/orbitdb-archive.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# CRDTs\n\n[![npm version](https://badge.fury.io/js/crdts.svg)](https://www.npmjs.com/package/crdts)\n[![CircleCI](https://circleci.com/gh/orbitdb/crdts.svg?style=shield)](https://circleci.com/gh/orbitdb/crdts)\n[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/orbitdb/Lobby) [![Matrix](https://img.shields.io/badge/matrix-%23orbitdb%3Apermaweb.io-blue.svg)](https://riot.permaweb.io/#/room/#orbitdb:permaweb.io)\n\n\u003e A library of Conflict-Free Replicated Data Types for JavaScript.\n\n***Work In Progress***\n\nThis 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.\n\nCRDTs implemented in this module:\n\n- [G-Counter](https://github.com/orbitdb/crdts/blob/master/src/G-Counter.js)\n- [PN-Counter](https://github.com/orbitdb/crdts/blob/master/src/PN-Counter.js)\n- [G-Set](https://github.com/orbitdb/crdts/blob/master/src/G-Set.js)\n- [2P-Set](https://github.com/orbitdb/crdts/blob/master/src/2P-Set.js)\n- [OR-Set](https://github.com/orbitdb/crdts/blob/master/src/OR-Set.js)\n- [LWW-Set](https://github.com/orbitdb/crdts/blob/master/src/LWW-Set.js)\n\n## Install\n\nThis module uses [npm](https://www.npmjs.com/) and [node](https://nodejs.org/en/).\n\nTo install, run:\n\n```sh\n$ npm install crdts\n```\n\n## Usage\n\n```javascript\nimport { GCounter, PNCounter, GSet, TwoPSet, ORSet, LWWSet, GSet, ORSet, LWWSet } from 'crdts'\n```\n\nSee the [source code for each CRDT](https://github.com/orbitdb/crdts/blob/master/src) for the APIs and [tests](https://github.com/orbitdb/crdts/blob/master/test/) for usage examples.\n\n## Inheritance\n\n```\n           +-----------++-----------++----------++---------++------------++------------+\nData Type  |  OR-Set   ||  LWW-Set  ||  2P-Set  ||  G-Set  || G-Counter  || PN-Counter |\n           +-----------++-----------++----------++---------++------------++------------+\nBase Class |                    CmRDT-Set                  |             --            |\n           |-----------------------------------------------+---------------------------+\nCRDT Type  |                 Operation-Based               |        State-based        |\n           +-----------------------------------------------+---------------------------+\n```\n\n## CRDTs Research\n\nTo learn more about CRDTs, check out this research:\n\n- [\"A comprehensive study of Convergent and Commutative Replicated Data Types\"](http://hal.upmc.fr/inria-00555588/document) paper\n- [CRDTs on Wikipedia](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type#Known_CRDTs)\n- [IPFS's CRDT research group](https://github.com/ipfs/research-CRDT)\n\n## Contribute\n\nIf you think this could be better, please [open an issue](https://github.com/orbitdb/crdts/issues/new)!\n\nPlease note that all interactions in [@OrbitDB](https://github.com/OrbitDB) fall under our [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## License\n\n[MIT](LICENSE) © 2017-2019 Haja Networks Oy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbitdb-archive%2Fcrdts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forbitdb-archive%2Fcrdts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbitdb-archive%2Fcrdts/lists"}