Files
modules/network-discovery/hyper-p2p-seeder-registry
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-seeder-registry

Gossip which peers seed which logical topics.

Category: network-discovery

Composes with: hyper-p2p-gossip-mesh

Protocol: seeder-registry/v1

When to use

Content or topic meshes where downloaders need to find seeders for a topic id on a shared swarm.

When not to use

Single-seeder deployments with no peer discovery requirement.

Quick start

const { HyperP2PSeederRegistry } = require('hyper-p2p-seeder-registry')
const mod = new HyperP2PSeederRegistry({ topic: process.argv[2] })
await mod.ready()
mod.registerSeeder('topic-1', mod.peerHex, { slots: 8 })
console.log(mod.lookup('topic-1'))
await mod.close()

Docs

Test

npm install && npm test