hyper-p2p-drive-mount-bridge
Maps local drive path prefixes to remote prefixes with gossip sync; session-scoped mounts pair with hyper-p2p-session-bridge. Hyperswarm gossip when topic is set.
Category: Storage (Hyperdrive)
Composes with: hyper-p2p-session-bridge
Protocol: drive-mount-bridge/v1
When to use
Federated drive trees expose a unified path namespace across peers.
When not to use
Flat drives without mount indirection.
Quick start
const { HyperP2PDriveMountBridge } = require('hyper-p2p-drive-mount-bridge')
const topic = process.argv[2] // 64-char hex or string
const mod = new HyperP2PDriveMountBridge({ topic })
await mod.ready() // joins swarm when topic set
// ... application logic ...
await mod.close()
Docs
- docs/api.md — constructor, methods, events, errors
- docs/architecture.md — wire types, state, composition
- ../_shared/PRODUCTION.md — production checklist
- ../_shared/DOC_STANDARDS.md — documentation standards
Test
npm install && npm test