Commit Graph

1 Commits

Author SHA1 Message Date
claude-ceo-assistant
0ccc8a6a8f feat(site): static status page (closes #2 — page renderer)
Single-page status dashboard for Molecules AI services. Pure static
HTML+CSS+JS — zero build step, zero dependencies. Reads probe results
directly from public Gitea raw URLs at runtime.

Files:
- site/index.html: structure + embedded CSS (light/dark via prefers
  -color-scheme; ~110 lines styling)
- site/app.js: fetches .upptimerc.yml + per-site history JSONL,
  renders rows + summary + 24h-history sparkline, auto-refreshes
  every 5 min (matches probe cadence)
- site/vercel.json: static-site config + security headers

Why no framework
- Page must load fast and never lie. React/Vue would be cargo-cult
  at this scale (3 visible elements, 1 data source).
- Plain DOM + fetch removes the supply-chain surface a JS framework
  drags in. Zero npm deps, zero lockfile, zero CI build.

Slugify rule mirrors the probe binary's slugify() in
cmd/probe/main.go — both must agree on the file naming for
history/<slug>.jsonl to round-trip cleanly.

Out of scope (separate PRs / follow-ups)
- Vercel project configuration + deploy (next commit)
- Custom domain status.moleculesai.app
- Historical data migration from old upptime JSON format
- Alerting / RSS / status-as-API endpoints
2026-05-10 06:39:09 +00:00