hyper-p2p-dht-bootstrap-hint
Gossip and merge DHT bootstrap address hints across a Hyperswarm topic.
Category: network-transport
Protocol: dht-bootstrap-hint/v1
When to use
- Peers discover bootstrap nodes for HyperDHT and need shared, scored address hints.
- You run a mesh where nodes report reachable addresses for known
nodeIdvalues.
When not to use
- You already have a fixed bootstrap list baked into config (no peer-sourced hints).
- Single-process tools with no P2P topic (use local
addHintonly or skipready()).
Quick start
const { HyperP2PDhtBootstrapHint } = require('hyper-p2p-dht-bootstrap-hint')
const topic = process.argv[2]
const mod = new HyperP2PDhtBootstrapHint({ topic })
await mod.ready()
mod.addHint('bootstrap-node', '1.2.3.4:49737')
console.log(mod.bestHint())
await mod.close()
Docs
Test
npm install && npm test