hyper-p2p-crdt-rga-text
RGA-style text CRDT: insert/delete characters by stable charId with index-based ordering.
Category: State CRDTs · Protocol: crdt-rga-text/v1
When to use
Collaborative plain-text buffers where each character has a stable id.
When not to use
Rich document models with attributed runs (build higher layers). Binary blobs (use chunk/stream modules).
Quick start
const { HyperP2PCrdtRgaText } = require('hyper-p2p-crdt-rga-text')
const doc = new HyperP2PCrdtRgaText({ topic: process.argv[2] })
await doc.ready()
doc.insert(0, 'a1', 'H')
doc.insert(1, 'a2', 'i')
console.log(doc.toString())
Docs
docs/api.md · docs/architecture.md
Test
npm install && npm test · bare examples/basic.js [topic]