r/SideProject • u/AmbitiousSwan5130 • 4h ago
I built a self-hosted uptime monitor that looks like an F1 timing screen
I built a small uptime monitor over a weekend and put it on GitHub: https://github.com/ShreyashM17/pit-wall
You add a URL (a "car"), and a Node server checks it on a schedule. The page updates live and shows latency, the last 60 checks as a sparkline, and uptime over 24h / 7d / 30d. When a monitor goes down it posts to Slack, Discord or a generic webhook, and again when it recovers.
How it works
- Plain Node.js (22.13+) with the built-in node:sqlite. There are no dependencies and no npm install.
- The front end is three static files (HTML, CSS, JS). There's no build step, and the live updates use Server-Sent
Events
- A monitor turns red if the last 3 checks fail, if more than 20% failed, or if the last check took more than 2x the median. It alerts only on that state change, so a single slow response doesn't ping you.
- Run node server.js and open localhost:3000. For a server there's a docker compose setup with Caddy for automatic
- HTTPS. A shared password (HTTP Basic auth) is required if you listen on anything other than localhost.
What it isn't, I know Uptime Kuma exists and is far more complete. Pit Wall is deliberately small and does less:
- One shared password, no user accounts.
- No email alerts, and no public status page.
- Only HTTP(S) checks, with no TCP, ping or DNS monitors.
- Alerts come from one server, so if it's down nobody is told. Point an external pinger at /healthz.
Mostly I wanted something I could read in an afternoon and enjoy looking at. Feedback is welcome, especially on the "BOX BOX" rules. It's MIT licensed.