- JavaScript 61.6%
- CSS 29.6%
- HTML 6.5%
- Python 2.3%
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> |
||
|---|---|---|
| public | ||
| scripts/git-hooks | ||
| server | ||
| src | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| vite.config.js | ||
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.