README.md

monitor

Health-endpoint monitor on Cloudflare Workers + Durable Objects. See DESIGN.md for the brief.

Configuration

Endpoints, interval, timeout and alert settings are vars in wrangler.jsonc; change them and redeploy. Basic-auth credentials are secrets (all requests are rejected until both are set):

npx wrangler secret put AUTH_USER
npx wrangler secret put AUTH_PASS

Pushover is off until both of its secrets are set (an application token and your user key):

npx wrangler secret put PUSHOVER_TOKEN
npx wrangler secret put PUSHOVER_USER

Development

pnpm test        # vitest in the Workers runtime
pnpm typecheck
pnpm dev         # local server; credentials come from .dev.vars (AUTH_USER=…, AUTH_PASS=…)
pnpm deploy
pnpm types       # regenerate worker-configuration.d.ts after editing wrangler.jsonc