Files
modules/storage-autobase/hyper-p2p-autobase-view-sync
Raven ScottandCursor 78ea930da6 Expand supercomputer, pear, storage, network, and workflow modules
Add manual API helpers across categories: net gateway capacity,
compute shard plan cancel, ram pool lease release, pear target matrix
and bundle/detached registry clears, argv flag reset, autobase writer
full/slots, view sync isSynced, indexer bus batch publish, inverted
index clear, blind relay and DHT hint listing, blind pair handoff
cleanup, retransmission resolve all, version vector and OR-map clear,
workflow graph complete-all-ready, and wire registry decode batch.

Co-authored-by: Cursor <[email protected]>
2026-05-21 02:48:14 -04:00
..
2026-05-21 02:00:00 -04:00
2026-05-21 02:00:00 -04:00

hyper-p2p-autobase-view-sync

Gossip-synced Autobase view version + content hash; reactive UIs can mirror via hyper-p2p-reactive-state. Hyperswarm gossip when topic is set.

Category: Storage (Autobase)

Composes with: hyper-p2p-reactive-state

Protocol: autobase-view-sync/v1

When to use

Peers must agree on the latest materialized view version/hash.

When not to use

View state is local-only or full Autobase sync replaces hash checks.

Quick start

const { HyperP2PAutobaseViewSync } = require('hyper-p2p-autobase-view-sync')
const topic = process.argv[2] // 64-char hex or string
const mod = new HyperP2PAutobaseViewSync({ topic })
await mod.ready()   // joins swarm when topic set
// ... application logic ...
await mod.close()

Docs

Test

npm install && npm test