Add clear/list/bulk/count helpers across hyperdrive, autobase, CRDTs, observability, transport, pear-platform, and related categories for more complete manual module surfaces. Co-authored-by: Cursor <[email protected]>
hyper-p2p-core-seed-policy
Per-peer seeding policies (allow, max blocks, priority) synced over gossip; use with hyper-p2p-presence to map policy peers to live connections. Hyperswarm gossip when topic is set.
Category: Storage (Hypercore)
Composes with: hyper-p2p-presence
Protocol: core-seed-policy/v1
When to use
You must gate which peers may seed blocks and cap their contribution.
When not to use
Open replication to all peers or policies managed entirely off-core.
Quick start
const { HyperP2PCoreSeedPolicy } = require('hyper-p2p-core-seed-policy')
const topic = process.argv[2] // 64-char hex or string
const mod = new HyperP2PCoreSeedPolicy({ 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