Files
modules/state-crdts/hyper-p2p-reactive-state
Raven ScottandCursor 38e30b63a1 Expand network, encoding, observability, routing, supercomputer, and CRDT APIs.
Adds snapshot() and batch helpers across network discovery/stack/transport, encoding-wire, observability, routing-advanced, supercomputer, state-crdts, scheduling-queues, and session-bridge modules.

Co-authored-by: Cursor <[email protected]>
2026-05-21 04:03:45 -04:00
..
2026-05-20 23:36:32 -04:00
2026-05-20 21:02:45 -04:00
2026-05-20 21:02:45 -04:00
2026-05-21 00:07:44 -04:00
2026-05-20 21:02:45 -04:00
2026-05-21 02:00:00 -04:00
2026-05-20 23:36:32 -04:00

hyper-p2p-reactive-state

Reactive LWW keyvalue state with Hyperswarm sync, Protomux snapshots/updates, and optional Hyperbee persistence.

Category: State CRDTs · Protocol: hyper-p2p-reactive-state/v1

When to use

Observable shared config/game state with offline reload, peer subscriptions, and merge by timestamp + peerId tie-break.

When not to use

Simple gossip CRDTs without persistence/events, or strict BFT ordering (use causal consensus).

Quick start

const { HyperP2PReactiveState } = require('hyper-p2p-reactive-state')
const state = new HyperP2PReactiveState({ topic: process.argv[2], memoryOnly: true })
await state.ready()
await state.set('score', 100)
state.subscribe('score', (c) => console.log(c))

Docs

Test

npm install && npm test
bare examples/basic.js