Stats one-pager for the Cyberdeck Bot Arena (Quake III instagib bots, 24/7): Vite + Chart.js, Render Blueprint
  • JavaScript 61.6%
  • CSS 29.6%
  • HTML 6.5%
  • Python 2.3%
Find a file
orca 420d183780 Move off Render: self-hosted at q3.enjoying.yachts
Served from an isolated VM on the home OptiPlex through Caddy on the
Lemmy droplet (WireGuard). Signatures show the new address, patch notes
v1.28, render.yaml removed; deploy with cyberdeck optiplex/q3web/deploy.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:26:09 -05:00
public Move off Render: self-hosted at q3.enjoying.yachts 2026-12-01 10:26:09 -05:00
scripts/git-hooks Cyberdeck Bot Arena stats site 2026-10-14 09:53:04 -04:00
server Move off Render: self-hosted at q3.enjoying.yachts 2026-12-01 10:26:09 -05:00
src Back to top sets #top, so a refresh stays at the top 2026-10-21 13:50:01 -04:00
.gitignore Cyberdeck Bot Arena stats site 2026-10-14 09:53:04 -04:00
index.html Retire the Xonotic arena: Quake III only 2026-10-21 13:46:57 -04:00
package-lock.json Forum signature images and achievements 2026-10-18 02:30:23 -04:00
package.json Forum signature images and achievements 2026-10-18 02:30:23 -04:00
README.md Move off Render: self-hosted at q3.enjoying.yachts 2026-12-01 10:26:09 -05:00
vite.config.js Cyberdeck Bot Arena stats site 2026-10-14 09:53:04 -04:00

Cyberdeck Bot Arena: the stats site

A one-pager for an endless Quake III instagib bot arena. It shows the match running right now, the season standings with each bot's portrait, charts, the Hall of Fame, awards and the wall of shame, and a section about the resident human. Styled like 1999: Quake III's rusted metal meets GeoCities.

Built with Vite and Chart.js. A tiny dependency-free Node server serves the page and the API. Served at https://q3.enjoying.yachts from an isolated VM on the home OptiPlex (moved off Render 2026-11-30, see below).

How data gets here

The arena (an ioquake3 server on a home OptiPlex) isn't reachable from the internet, and doesn't need to be. Every 2 minutes the laptop that runs the arena's stats collector (the cyberdeck-q3 herdr plugin, stats.py --push) POSTs a public snapshot here:

POST /api/ingest   Authorization: Bearer $INGEST_TOKEN

The server stores the latest snapshot, the hit count and the highlight clip in a local Redis next to it. A redeploy or restart therefore serves data straight away. Without REDIS_URL it falls back to memory plus a /tmp copy, and the next push (at most 2 minutes) fills it in. The hit count also rides back to the laptop in each ingest reply, as a backup.

endpoint
GET /api/stats the latest snapshot, plus the hit count
POST /api/ingest the collector's push (bearer token)
POST /api/hit the hit counter; one count per visitor per 30 min
GET /api/health health check (Uptime Kuma)

Deploy

The site runs in the q3web VM on the OptiPlex: Debian 13, Node, Redis, walled off from the home LAN and tailnet. Visitors reach it through Caddy on the Lemmy droplet, which proxies over a WireGuard link the VM dials out to. The infrastructure and the deploy script live in the cyberdeck repo, optiplex/q3web/:

~/htdocs/cyberdeck/optiplex/q3web/deploy.py            # build here, ship to the VM, restart
~/htdocs/cyberdeck/optiplex/q3web/deploy.py --status

Pushing to GitHub no longer deploys anything; run the script.

Develop

npm install
INGEST_TOKEN=dev-token-dev-token PORT=10000 npm start      # API + built page
npm run dev                                                # Vite; proxies /api to :10000
python3 ~/.config/herdr/plugins/cyberdeck-q3/stats.py --export > sample-snapshot.json
curl -X POST -H "Authorization: Bearer dev-token-dev-token" -H "Content-Type: application/json" \
     --data @sample-snapshot.json localhost:10000/api/ingest

Bot portraits (public/portraits, the official 64×64 icons scaled up with nearest-neighbour) and level shots come from the retail pak0.pk3. public/portraits/bots.json maps each bot to its portrait. Quake III Arena artwork © id Software. This is a fan page, not affiliated.

Patch notes

public/changelog.json drives the "Patch notes" section: newest patch first, each with a date, version, title and [tag, text] items (tags: new, fix, balance, change). Add an entry whenever the arena or the site changes.