2026-11-24 22:40:34 -05:00
2026-11-24 22:14:33 -05:00
2025-12-29 22:09:30 +08:00
2024-01-14 08:12:02 +00:00
2025-04-19 21:50:43 +08:00
2025-04-19 21:50:43 +08:00
2024-01-30 13:31:18 +08:00
2025-05-31 01:20:32 +08:00
2025-04-19 21:50:43 +08:00

Cottage status

The public status page for Cottage, at status.cottage.host: whether the website, the dashboard and app hosting in each region are up, 90 days of history, and the incident updates and planned maintenance we post.

It's a fork of UptimeFlare (Apache-2.0) by lyc8503. It runs entirely on Cloudflare's free plan, with no server of ours:

  • The checks (worker/, unchanged from upstream): a Cloudflare Worker runs every minute, checks each service, and stores the results in a D1 database.
  • The page (pages/, components/, styles/): rewritten in Cottage's brand. The tokens, fonts and component CSS in styles/brand/ and public/fonts/ are copied from Hearth (internal/web/static), and the logo, pod row, status pill and banner are ports of the brand handbook's components. Light by default, dark when the OS asks.

Internal monitoring (servers, backups, alerts) is separate: Grafana Cloud, set up in hearth infra/monitoring.

Change what's checked, or post a notice

Everything lives in uptime.config.ts:

  • workerConfig.monitors: the services we check. Keep an id the same and its history stays.
  • pageConfig.group: the sections on the page.
  • maintenances: incident updates and planned maintenance. Colour sets what the page says about the services it lists: red outage, yellow degraded, blue maintenance, green resolved. Write them in Cottage's voice (brand handbook, Voice and copy): what happened, who it affects, what to expect next.

A push to main deploys (about three minutes), once deploys are switched on.

Preview locally

npm ci
npm run dev                 # http://localhost:3000, with sample data

Without a D1 database, npm run dev shows sample data (dev/sample.ts). Add ?sample=outage, ?sample=maintenance or ?sample=empty to see the other states. Production never uses the samples.

Deploying

Live at status.cottage.host. A push to main deploys it through the "Deploy to Cloudflare" workflow, which runs only while the repository variable CLOUDFLARE_DEPLOY is true. It uses the Actions secrets CLOUDFLARE_API_TOKEN (Workers Scripts, D1 and Cloudflare Pages edit on the Cottage account) and CLOUDFLARE_ACCOUNT_ID.

The "Apps in US East" check loads the health endpoint of a status canary: a small ntfy app Cottage runs on its own (internal, unbilled) account on the Virginia servers. A new region gets its own canary and monitor.

Cottage's footer status ("All systems normal") can read /api/data, which returns the current state as JSON.

Keeping up with upstream

git fetch upstream && git merge upstream/main

The worker, types/, deploy/ and deploy.tf are upstream's, so merges there should be clean. The page itself is ours; upstream UI changes don't apply. Upstream's original README is in UPSTREAM-README.md.

Licence

Apache-2.0, as upstream (LICENSE). The Cottage name, logo and brand assets belong to Cottage Services LLC and aren't covered by that licence. The fonts (Fraunces, Hanken Grotesk, JetBrains Mono) are under the SIL Open Font License; see public/fonts/OFL-*.txt.

S
Description
No description provided
Readme Apache-2.0
2.6 MiB
0 Stars 2 Watchers 0 Forks
Languages
TypeScript 81.9%
CSS 12.7%
JavaScript 2%
Python 1.8%
HCL 1.1%
Other 0.5%