Files
modules/storage-hyperdrive/hyper-p2p-drive-mount-bridge

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

Test

npm install && npm test