Files
modules/storage-hyperdrive/hyper-p2p-drive-mirror-sync
Raven ScottandCursor 71056e533a Expand storage, discovery, state, and platform module APIs
Add clear/list/bulk/count helpers across hyperdrive, autobase, CRDTs, observability, transport, pear-platform, and related categories for more complete manual module surfaces.

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

hyper-p2p-drive-mirror-sync

Queues cross-drive mirror operations and tracks per-path progress; epidemic fanout of queue ops can layer on hyper-p2p-gossip-mesh. Hyperswarm gossip when topic is set.

Category: Storage (Hyperdrive)

Composes with: hyper-p2p-gossip-mesh

Protocol: drive-mirror-sync/v1

When to use

Multiple drives mirror paths identified by remote drive keys.

When not to use

Single-drive apps or mirrors applied only locally.

Quick start

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

Docs

Test

npm install && npm test