No description
  • JavaScript 59.9%
  • CSS 27%
  • HTML 13.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-17 21:47:13 -08:00
app.js the centre is words, not a disc 2026-11-16 22:09:16 -08:00
cloud.png the cluster page: mesh, menu, sheets, clouds 2026-11-16 21:40:28 -08:00
clouds.js the cluster page: mesh, menu, sheets, clouds 2026-11-16 21:40:28 -08:00
cluster.sample.json the about prose lives in index.html, not in the snapshot 2026-11-16 21:59:47 -08:00
index.html Update index.html 2026-11-16 22:58:21 -08:00
README.md Update README.md 2026-11-17 21:47:13 -08:00
style.css a footer you can see: the appended sentence sits under the fixed sky 2026-11-16 23:05:02 -08:00

cluster-homepage

The page at cluster.secretserver.club: the Stone Soup Cluster drawn as a mesh — one disc per server, a line between every pair, a menu that slides a list in, and a sheet of facts behind each disc.

It is an ordinary static site. ssc clones it onto its servers, each machine's nginx serves it, and Puff proxies between them with failover.

You can edit and commit the HTML copy inline in this repo. To update it on the site, ssh into puff and run ssc site update cluster.secretserver.club

The prose is here, in index.html — the About sheet is written as HTML, by hand, in this repo. The registry only supplies facts (who the servers are, what they host, where they are); nothing about who we are needs to travel through a pipeline to reach the page.

What generates what

Nothing about a server or a site is written in this repo. The page draws itself from /_ssc/cluster.json, a snapshot ssc renders from the cluster registry and pushes beside the page on every sync:

registry (servers.yaml, sites/*.yaml, apps/*.yaml)
        │
        ├─ ssc render_cluster_json()  ──→  /_ssc/cluster.json   (same origin, next to this page)
        │                                   ▲
        └─ this repo ───────────────────────┘  index.html + app.js fetch it once and draw

So: add a server to the cluster and it appears here on the next sync, with no edit to this repo. Add a site and it shows up in the list, in the sheets of the machines hosting it, and hovering it lights those discs.

Files

File What it is
index.html the frame, the menu, the list container, the empty <svg>
app.js fetch the snapshot, draw the mesh, glide it between arrangements, wire hover/tap/sheets
style.css every design value, at the top as variables
clouds.js + cloud.png the drifting sky, ported from resonant.love's clouds.js to plain canvas (no p5, no third-party fetch)
cluster.sample.json a real snapshot, for running the page locally

The contract

cluster.json is versioned by schema. This page understands schema: 1 and refuses anything else.

{
  "schema": 1,
  "cluster": { "zone": "secretserver.club" },
  "places": ["Angels Gate, San Pedro", "…"],                          // sorted, distinct
  "servers": [{
    "name": "Celery",                    // registry name, the id
    "place": "Bstudio, Lincoln Heights",
    "steward": ["Echo", "Hal", "Whisper"],
    "photo": "https://celery.secretserver.club/media/x.jpg",   // or null
    "homepage": "https://celery.secretserver.club",
    "sites": ["secretserver.club", "…"], // sorted
    "apps": []
  }],
  "sites": [{ "domain": "secretserver.club", "servers": ["Celery", "Cabbage", "Potato"], "kind": "site" }]
}

Rules the page relies on:

  • No timestamps, no counts of the moment. The same registry must render the same bytes, or the sync pushes the file on every run.
  • Node positions are index arithmetic — -90 + i·360/n degrees, an ellipse, plus a small offset derived from a hash of the server's name. Never Math.random(): the page must be identical on every host and for every visitor.
  • photo is an absolute URL on the server's own homepage host, so the page needs no knowledge of the zone layout.

Run it locally

python3 -m http.server 8080
# http://localhost:8080 — /_ssc/cluster.json 404s, so the page falls back to cluster.sample.json

Deploy

Registered in the cluster registry as an ordinary site:

# sites/cluster.secretserver.club.yaml
domain: cluster.secretserver.club
owner: ssc
repo: https://git.secretserver.club/whisper/cluster-homepage.git
servers: [bones, salt, celery]
enabled: true

A push here plus ssc sync --site cluster.secretserver.club ships it. Moving the page to another machine is ssc site config cluster.secretserver.club --add-server noodle.