Uptime monitoring with a status page, built by Claude Code on Elements
Checks your sites every minute, opens an incident after three failures, and runs a status page that emails subscribers.
How it's built
Uptimebell needed a check of every site each minute, incidents that open on their own, a status page that updates as people watch, and email to subscribers. Each of those is a part of Elements, so the agent spent its 20 minutes on the monitoring itself.
- Checks on a schedule. One cron line runs a job every minute that queues one check job per monitor, keyed to the monitor and the minute, so a slow site holds up only its own check.
- Incidents in one transaction. Each check records its result, the day's rollup and the monitor's state together, and the third failure in a row opens an incident, posts its first update and schedules the alert email.
- A live status page. A channel announces each check and incident. The dashboard and the public status page listen for their own account and re-read through
@rpcfunctions, so bars turn red and posted updates appear live. - Email to subscribers. Visitors subscribe from the status page, and each incident update goes out as one background job per subscriber, so a retry reaches only the person it missed.
- Data from SQL files. Two migrations define the schema and seed two accounts with eight monitors on reserved example domains, 90 days of checks with outages, the incidents and updates that came from them, and subscribers. Two monitors fail on purpose and stay red.
- Sessions. Every dashboard rpc reads the account from the signed-in session.
Why Elements
Elements is the integrated stack for building apps with AI: a TypeScript project server, build system, app framework and deployment system, engineered from the ground up as one. Your editor, tools and one or many agents all connect to the same always-on project server, which runs type checking, program analysis, migrations and tests as the agent builds. Built-in guardrails keep the app structured correctly and secure as it grows from prototype to production.
Run it yourself
Paste this into a terminal. It installs Elements, creates your copy of this app and starts it.
curl -fsSL 'https://elements.dev/install?create=uptimebell&scaffold=demo-uptimebell' | sh