The problem
The aim was to have every project live in one place, at next to no cost, with one front door for someone deciding whether the work is worth their time. Live demos are expensive to keep running around the clock. Left to sleep, they meet a visitor's first click with a slow or broken page, and a recruiter who hits a dead link doesn't come back.
Lighthouse is the front door and the manager behind it. It is this site: the background, the projects, and a way to start each one. It wakes a sleeping demo when you ask for it and tells you what to look for while it starts, lets it go back to sleep afterwards, and watches every project and publishes what it finds, including its failures.
How it works
A scheduler finds monitors that are due and checks them with a bounded pool of workers: HTTP checks for the real projects, simulated ones for the public sandbox. Each result goes through a small state machine that opens an incident after several failures in a row and closes it after several successes, so one blip never pages anyone and a flapping site doesn't open an incident every minute.
It also counts its readers without cookies: a visitor is a hash of their IP address keyed with a salt that is deleted every day, browsers asking not to be tracked are skipped, and public numbers under five are hidden.
Everything is one Go binary: server-rendered public pages, plus a small Vue console, built into the binary, where the owner and sandbox visitors manage monitors and incidents. The owner signs in with GitHub (one account is admitted); visitors can create a throwaway sandbox with its own monitors, isolated from everything else by PostgreSQL row-level security. When a visitor launches a demo, the launch page polls the demo's health address, which wakes it (idle demos sleep, to cost nothing), and opens the demo when it answers.
“Every figure on these pages is measured by the site itself, and so is every outage.”