seriesoftubes/site
jvanvik 95aa9b6532 Multiplayer for self-hosted copies: sessions, server-side saves, a leaderboard
Off unless the page is built with MP_API set (MP_API=/api/mp npm run
build): a plain build has no door, no chip and makes no requests. The
session server is scripts/mp-server.js (npm run mp), plain node:http,
which can also serve the built site so one process sits behind the
reverse proxy; docs/MULTIPLAYER.md has the nginx and Caddy setups.

A session has a six-character code, one seed and one rules preset, so
every player starts in the same world, and up to twelve players with
their own AS numbers. Saves go to the server on a new game day at most
every 15 s and when the page hides, ordered by a sequence number (409 on
a stale push, and the player picks which one to keep). Tokens live in
localStorage, never in the save; the server keeps only their hash. A
#mp= link moves a network to another device. The session panel shows
the leaderboard, the feed and a short chat; each player's public card
(tier, POPs, links, exchanges, transit, peak, customers, score) carries
what in-game peering between players will need next.

Server limits: body sizes, one upload per player, uploads per address
and in total, sessions per hour, wrong-code lockout; addresses counted
per IPv6 /64, X-Forwarded-For only with --trust-proxy.
2026-11-07 00:42:39 +01:00
..
architect/weekly Weekly Architect runs: sites outgrow their tubes, and a countdown 2026-10-30 14:07:45 +01:00
i18n Multiplayer for self-hosted copies: sessions, server-side saves, a leaderboard 2026-11-07 00:42:39 +01:00
images Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
puzzles/weekly Puzzles: eighteen puzzles in five packs with traffic, and their tests 2026-10-29 10:48:24 +01:00
scenarios/weekly Sweden beyond Stockholm: Gothenburg, Malmö and Haparanda (closes #206) 2026-11-05 07:31:17 +01:00
404.html Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
apple-touch-icon.png Redraw the app icons for home screens 2026-10-24 23:01:04 +02:00
CNAME Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
d000727792a2ac2fdaa24ec953ed6d2b.txt Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
favicon.ico Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
favicon.svg Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
icon-192.png Redraw the app icons for home screens 2026-10-24 23:01:04 +02:00
icon-512.png Redraw the app icons for home screens 2026-10-24 23:01:04 +02:00
icon-maskable-512.png Redraw the app icons for home screens 2026-10-24 23:01:04 +02:00
llms.txt Point players to How the Internet Works 2026-10-24 22:12:38 +02:00
robots.txt Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
site.webmanifest Rework the phone layout and make the game installable 2026-10-24 22:52:55 +02:00
sitemap.xml Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
sw.js Multiplayer for self-hosted copies: sessions, server-side saves, a leaderboard 2026-11-07 00:42:39 +01:00