Files
modules/network-transport/hyper-p2p-dht-bootstrap-hint
2026-05-20 22:56:32 -04:00
..
2026-05-20 22:56:32 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 21:19:52 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 22:56:32 -04:00

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 nodeId values.

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 addHint only or skip ready()).

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