Files
modules/observability/hyper-p2p-health-probe
Raven ScottandCursor c2282bd2b9 Expand media, network-stack, pear-platform, and scheduling module APIs
Add batch helpers, clear/count utilities, and management methods across content protection, FEC, flow shaper, circuit loom, trust gate, peer scheduler, and related modules.

Co-authored-by: Cursor <[email protected]>
2026-05-21 03:17:48 -04:00
..
2026-05-21 00:07:44 -04:00
2026-05-20 22:30:53 -04:00
2026-05-20 22:28:59 -04:00
2026-05-21 00:07:44 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 23:36:32 -04:00

hyper-p2p-health-probe

Gossip health reports: ok flag, RTT, and custom fields per peer.

Category: Observability

Composes with: hyper-p2p-log-gossip, hyper-p2p-intent-router

Protocol: health-probe/v1

When to use

Mesh liveness dashboards and routing guards on shared topics.

When not to use

Deep APM (use trace/metrics modules instead).

Quick start

const { HyperP2PHealthProbe } = require('hyper-p2p-health-probe')
const probe = new HyperP2PHealthProbe({ topic: 'health-mesh' })
await probe.ready()
probe.report('peer-abc', { ok: true, rttMs: 12 })
console.log(probe.healthyPeers())
await probe.close()

Docs

Test

npm install && npm test