Files
modules/scheduling-queues/hyper-p2p-cron-gossip
2026-05-20 22:56:32 -04:00
..
2026-05-20 22:56:32 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 21:19:52 -04:00
2026-05-20 22:56:32 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 21:57:50 -04:00
2026-05-20 22:56:32 -04:00

hyper-p2p-cron-gossip

Cron scheduling with cron-fire gossip over Hyperswarm.

Category: scheduling-queues

Protocol: cron-gossip/v1

When to use

Coordinating periodic jobs across peers and observing remote fires.

When not to use

One-shot deadline tasks (use hyper-p2p-deadline-queue).

Quick start

const { HyperP2PCronGossip } = require('hyper-p2p-cron-gossip')
const c = new HyperP2PCronGossip({ topic: process.argv[2] })
await c.ready()
c.schedule('@every 30s', 'heartbeat')
console.log(c.tick(Date.now()))
await c.close()

Docs

Test

npm install && npm test