Skip to content

Website

André Borchert edited this page Aug 23, 2026 · 4 revisions

Website

Design stage. Nothing here is implemented.

Served by Caddy over HTTPS on port 8877, with HTTP/3. Static pages plus a small read-only API proxied to the engine on loopback. See Edge and TLS for the certificate constraint and the port consequences.

What it shows

A version selector across the top — 26.1, 26.2, 26.3 — and for the selected version:

  • The mod list: name, category, and a link to the original mod page.
  • Server state: running, starting, or down.
  • Latency: the visitor's measured round-trip time to the host.

The visual treatment carries over the glass design from the previous site. The stylesheet survives at Server App/caddy/site/public/assets/site-theme.css on the archive/v1 tag, along with the hero imagery, so it can be lifted rather than rebuilt.

Mod lists come from the deployed set

The list is rendered from the deployed modset, not from the sheet. The sheet says what someone wants; the modset says what is actually loaded. A visitor asking "what's on this server" deserves the second answer.

Categories come from the provider's own taxonomy — Modrinth and CurseForge both expose them — with the sheet's Category column winning when set.

Server state

State Shown as
running Player count and uptime
starting Restarting after a deployment
down Not answering — crashed, or stopped for maintenance

Status is read by querying each Minecraft server directly over the Server List Ping protocol on loopback. One query returns liveness, player count, maximum players and the MOTD, and it exercises the same path a real client uses.

This matters more than it looks. A manager reporting its own server's health fails exactly when the thing you want to detect has gone wrong; a server hung in a way that still satisfies an internal health check will still fail an actual ping. The status shown to visitors should come from the same channel a player would use.

Latency, measured honestly

A browser cannot ping a Minecraft port. It has no ICMP and no raw sockets. Any page claiming to display true Minecraft latency is measuring something else and labelling it wrongly.

What is genuinely measurable is round-trip time to the same host over HTTPS. Since the web server and the Minecraft server are the same machine, it is the same network path and a good proxy — typically within a millisecond or two.

Mechanism:

  • GET /api/ping returns 204 No Content, Cache-Control: no-store, and a Server-Timing header carrying the server's own processing time.
  • The page takes about seven samples with performance.now().
  • The first sample is discarded — it pays for TCP and TLS setup.
  • The server-reported processing time is subtracted from each remaining sample.
  • The median is displayed, not the mean; a single scheduling hiccup should not move the number.

Label it "your latency to the server host", not "ping to the Minecraft server". The measurement is good; the claim should match what was measured.

API surface

Read-only, no authentication, no client writes. Everything it exposes is already public information.

Endpoint Returns
GET /api/v1/versions Every version with role, state, player count, uptime
GET /api/v1/versions/{version}/mods Deployed mod list with name, category, source URL
GET /api/v1/ping 204, with Server-Timing

The version selector is rendered from /api/v1/versions rather than hard-coded, so a version added to the table appears on the site without a code change. v1 shipped hand-written pages for 26.1.2 and 26.2 and never got one for 26.3 — a fully configured version invisible on its own website.

v1 had an authentication asymmetry — client endpoints required a bearer token while control endpoints did not — which contradicted its own written contract. Keeping this API strictly read-only and unauthenticated avoids reintroducing that class of problem: there is no privileged operation to accidentally leave unguarded.

Any future operator actions belong on a separate, authenticated surface, not bolted onto this one.

Clone this wiki locally