How this site works

This site shows live status from a homelab. The design goal was that nothing on the internet can reach into the homelab, and that the site stays up without being dependent on the homelab.

Data only goes out

A small program inside the homelab, the collector, reads the homelab’s monitoring every 15 seconds and sends a status snapshot out to this site. Nothing on the internet ever connects to the homelab. There’s no tunneling, no open port and no public address. If the homelab goes down, the snapshots simply stop arriving.

A contract for what may leave

One schema file defines every field that may leave the homelab. A snapshot with any field that isn’t in the schema gets rejected, first by the collector before it sends and again by the site when it arrives. Components are referred to by a fixed list of public names, which keeps IP addresses and internal hostnames private.

Fresh, Stale or Unavailable Statuses

Every live figure on the site is in one of three states. Fresh means it is less than 45 seconds old. Stale means the homelab has stopped reporting, and the page shows how long ago it last did. Unavailable means there is nothing to show. The pages themselves are plain HTML and read fully without JavaScript.

Measured from outside

The availability figure on the live page is measured at the edge: the share of minutes in which the homelab reported in, against a target of 99.0% over 30 days. It counts the home internet connection and a brief nightly backup pause, because those are part of what a visitor would experience. If the homelab stays quiet for five minutes, the edge opens an incident in my personal PagerDuty.

Built with

The pages are built with Hugo and served by Cloudflare Workers. The live API is a small Worker with a D1 database. The collector is a Go program with no dependencies beyond the standard library. Browser code is a few kilobytes of TypeScript with no framework. The diagram on the homelab page is generated from one data file, so it can’t drift from the live data’s list of components.