A Cloudflare Worker that monitors BiblioReads instance statuses, caches results in KV, and does a health check on the main instance.
Built with Hono, using Cloudflare’s generated runtime types (wrangler types) and deployed on Cloudflare Workers.
- Fetches and caches instance list from a source URL
- Checks instance availability with concurrency and timeout controls
- KV caching with stale‑while‑revalidate (serves stale data, refreshes in background)
/instancesfor a raw list of all instances/allfor all instances with status/upfor only healthy instances/downfor failing instances/randomfor a random healthy instance/api-checkruns API health checks and notifies via NTFY for failures
npm installRename .example.dev.vars to dev.vars and edit with your env vars:
mv .example.dev.vars .dev.varsUpdate the KV namespace configuration in wrangler.jsonc
Always run wrangler types after editing wrangler.jsonc or .dev.vars
npx wrangler types