Files
modules/storage-hypercore/hyper-p2p-core-bitfield-scheduler
Raven ScottandCursor 3af23c0d34 Add toJSON() serialization helpers across all module categories on main.
Fourth pass: toJSON() delegates to snapshot() (or exportSnapshot/stateSnapshot) for JSON export and logging across agents, applications, consensus, core, encoding, experimental, indexes, media, messaging, network, observability, pear-platform, routing, scheduling, storage, supercomputer, trust, measurement, oracles, and time-ordering modules.

Co-authored-by: Cursor <[email protected]>
2026-05-21 04:22:54 -04:00
..
2026-05-21 02:00:00 -04:00
2026-05-21 02:00:00 -04:00

hyper-p2p-core-bitfield-scheduler

Schedules Hypercore bitfield download ranges by priority so replication can respect bandwidth budgets when composed with hyper-p2p-bandwidth-broker. Local-only scheduling layer (no Hyperswarm join).

Category: Storage (Hypercore)

Composes with: hyper-p2p-bandwidth-broker

Protocol: core-bitfield-scheduler/v1

When to use

You need ordered, deduplicated range requests over a Hypercore bitfield.

When not to use

You replicate whole cores without range scheduling, or you need cross-peer gossip (this module is local-only).

Quick start

const { HyperP2PCoreBitfieldScheduler } = require('hyper-p2p-core-bitfield-scheduler')
const mod = new HyperP2PCoreBitfieldScheduler()
mod.attach(/* Hypercore instance */)
await mod.ready()
// ... application logic ...
await mod.close()

Docs

Test

npm install && npm test