nodmax-heartbeat
v1.0.0
Published
The standard Nodmax heartbeat to Uptime Kuma (push monitors): up/down with reasons, never blocks, no dependencies.
Readme
nodmax-heartbeat
The standard way a Nodmax service reports to Uptime Kuma.
import { startHeartbeat, heartbeatUrl } from 'nodmax-heartbeat';
startHeartbeat({
url: heartbeatUrl(process.env), // HEARTBEAT_URL
name: 'billing',
check: async () => ({ ok: problems().length === 0, msg: problems().join('; ') }),
});Every 60 s: GET <url>?status=up|down&msg=<reason>&ping=<ms>. down carries the reasons. No URL set = does nothing. Never throws.
