{"id":37858969,"url":"https://github.com/notebox/nb-crdt","last_synced_at":"2026-01-16T16:30:13.898Z","repository":{"id":235428603,"uuid":"790552542","full_name":"notebox/nb-crdt","owner":"notebox","description":"A block based Conflict-free Replicated Data Type","archived":false,"fork":false,"pushed_at":"2024-04-23T07:28:16.000Z","size":198,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T04:15:05.875Z","etag":null,"topics":["crdt","nb-editor","nbfm","notebox","typescript"],"latest_commit_sha":null,"homepage":"https://notebox.cloud","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/notebox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-23T05:00:43.000Z","updated_at":"2025-05-03T19:15:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"43516db4-3d22-4e80-a7bd-1214c5fff943","html_url":"https://github.com/notebox/nb-crdt","commit_stats":null,"previous_names":["notebox/nb-crdt"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/notebox/nb-crdt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notebox%2Fnb-crdt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notebox%2Fnb-crdt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notebox%2Fnb-crdt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notebox%2Fnb-crdt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notebox","download_url":"https://codeload.github.com/notebox/nb-crdt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notebox%2Fnb-crdt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["crdt","nb-editor","nbfm","notebox","typescript"],"created_at":"2026-01-16T16:30:13.125Z","updated_at":"2026-01-16T16:30:13.862Z","avatar_url":"https://github.com/notebox.png","language":"TypeScript","funding_links":["https://github.com/sponsors/notebox"],"categories":[],"sub_categories":[],"readme":"# nb-crdt\n\n[![codecov](https://codecov.io/gh/notebox/nb-crdt/graph/badge.svg?token=65QQDKPEPV)](https://codecov.io/gh/notebox/nb-crdt)\n[![sponsor](https://img.shields.io/static/v1?label=Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86)](https://github.com/sponsors/notebox)\n\nA block based Conflict-free Replicated Data Type that enables collaborative editing across multiple participants allowing for flexible data sharing across spreadsheets, boards, rich text, and more.\n\n## Development\n\n### Prerequisites\n```\nnpm install\n```\n\n### Test\n```\nnpm test\n```\n\n## Checkout Points\nfor synchronization, just investigate\n  - `domain/entity/block`\n  - `domain/entity/contribution`\n\nfor making an editor, all the interfaces you need are in\n  - `domain/usecase/replica`\n\n## Key Concepts\n- `replicaID`\n    - is an identifier for writers or devices\n- `note`\n    - consists of `blocks`\n    - `block`\n        - `block-props`\n            - nested json object for block properties\n            - each leaf has its own stamp\n                - `replicaID`\n                - `timestamp`\n        - `text`\n            - consists of `spans`\n            - `span`\n                - `point`\n                    - position identifier\n                - `content`\n                    - `attrs`\n                        - length\n                        - `text-props`\n                            - flat json object\n                        - `stamp`\n                    - string (UTF16)\n        - `version`\n            - per `replicaID`\n                - `block-props` version\n                - `text-points` or `DB_RECORD-point` version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotebox%2Fnb-crdt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotebox%2Fnb-crdt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotebox%2Fnb-crdt/lists"}