Prompt
simple uptime checker with status page
Latest observation
Oct 20, 2026
OpenAI APIWeb search: off
Here’s a simple, practical way to build an uptime checker with a public status page.
What it does
- Pings your websites/APIs on a schedule
- Records whether each check passed or failed
- Shows a status page with:
- current status
- uptime percentage
- recent incidents / check history
Simple architecture
1) Checker
A background job runs every 1 minute:
GET https://example.com- if response is
200–399, mark up - otherwise mark down
2) Storage
Save results in a database:
- monitor name
- URL
- timestamp
- status
- response time
- error message
3) Status page
A public page that reads the latest results and shows:
- overall status
- service list
- uptime percentage over 24h / 7d / 30d
- incident timeline
Minimal stack options
Option A: Very simple
- Backend: Node.js + Express
- Scheduler: node-cron or a simple cron job
- DB: SQLite
- Frontend: plain HTML / server-rendered page
Option B: Slightly more polished
- Backend: Next.js API routes
- Scheduler: Vercel cron / GitHub Actions / server cron
- DB: Postgres
- Frontend: Next.js page
Option C: Easiest to host
- Backend: Python Flask
- Scheduler: cron
- DB: SQLite
- Frontend: Flask template
Basic data model
Monitors table
idnameurlinterval_secondsenabled
Checks table
idmonitor_idchecked_atstatus(up/down)latency_msstatus_codeerror
Example uptime logic
const fetch = require("node-fetch");
async function checkUrl(url) {
const start = Date.now();
try {
const res = await fetch(url, { timeout: 10000 });
const latency = Date.now() - start;
return {
status: res.ok ? "up" : "down",
statusCode: res.status,
latency,
error: null,
};
} catch (err) {
return {
status: "down",
statusCode: null,
latency: Date.now() - start,
error: err.message,
};
}
}
Status page example
You can show something like:
<h1>Status Page</h1>
<div class="service up">
<strong>Website</strong> — Operational
<span>99.98% uptime (30d)</span>
</div>
<div class="service down">
<strong>API</strong> — Degraded
<span>Incident started 12 min ago</span>
</div>
Uptime calculation
A simple formula:
uptime % = (successful checks / total checks) * 100
For more accurate uptime:
- exclude scheduled maintenance
- use rolling windows like 24h, 7d, 30d
- track outages as incidents, not just individual failed checks
Suggested features
Start with:
- monitor list
- check history
- public status page
Add later:
- email alerts
- Slack/Discord notifications
- maintenance mode
- response time graphs
- multiple regions
- custom domains for status page
If you want the fastest possible build
Use:
- Node.js
- SQLite
- cron
- Express
- one public status page route
I can also give you:
- a full working Node.js example
- a Python Flask version
- a Next.js version
- a database schema + API design
If you want, I can generate a complete starter project for one of those.