Prompt

simple uptime checker with status page

Technology / Observability1 observationLast seen Oct 20, 2026

Latest observation

Oct 20, 2026OpenAI 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

  • id
  • name
  • url
  • interval_seconds
  • enabled

Checks table

  • id
  • monitor_id
  • checked_at
  • status (up / down)
  • latency_ms
  • status_code
  • error

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:

  1. a full working Node.js example
  2. a Python Flask version
  3. a Next.js version
  4. a database schema + API design

If you want, I can generate a complete starter project for one of those.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.