Add auction withdraw/cancel, marketplace search helpers, update gossip history, autobase fork/lease/indexer/view APIs, link-probe and circuit-loom utilities, trace trees, pheromone ranking, and scheduling/measurement helpers with tests. Co-authored-by: Cursor <[email protected]>
hyper-p2p-sla-budget
Per-service token budgets for SLA-aware rate limiting.
Category: measurement-rate-control
Protocol: sla-budget/v1
When to use
Allocating and consuming request tokens per API or tenant service name.
When not to use
Time-windowed rate limits with automatic refill (pair with a scheduler module).
Quick start
const { HyperP2PSlaBudget } = require('hyper-p2p-sla-budget')
const b = new HyperP2PSlaBudget()
b.allocate('api', 100)
b.consume('api', 1)
console.log(b.remaining('api'))
Docs
Test
npm install && npm test