Files
modules/observability/hyper-p2p-log-gossip
2026-05-20 23:36:32 -04:00
..
2026-05-20 23:36:32 -04:00
2026-05-20 22:30:53 -04:00
2026-05-20 22:28:59 -04:00
2026-05-20 22:30:53 -04:00
2026-05-20 22:28:59 -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-log-gossip

Level-filtered log ring buffer with P2P fanout on a shared topic.

Category: Observability

Composes with: hyper-p2p-health-probe, hyper-p2p-trace-span

Protocol: log-gossip/v1

When to use

Aggregate debug/info/warn/error lines across peers without a central log server.

When not to use

Durable retention or compliance logging.

Quick start

const { HyperP2PLogGossip } = require('hyper-p2p-log-gossip')
const logs = new HyperP2PLogGossip({ topic: 'logs-demo', minLevel: 'info' })
await logs.ready()
logs.log('info', 'peer started', { v: 1 })
console.log(logs.tail(10))
await logs.close()

Docs

Test

npm install && npm test