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.
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"name": "seriesoftubes",
|
|
"version": "3.0.0",
|
|
"description": "A cartoon browser game about building the internet.",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"homepage": "https://seriesoftub.es/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/fjaeckel/seriesoftubes.git"
|
|
},
|
|
"scripts": {
|
|
"test": "node scripts/test.js",
|
|
"test:timings": "node scripts/test-timings.js",
|
|
"build": "node scripts/build.js",
|
|
"i18n:check": "node scripts/i18n-check.js",
|
|
"i18n:fix": "node scripts/i18n-check.js --fix",
|
|
"dev": "node scripts/dev.js",
|
|
"page": "node scripts/lib/page.js",
|
|
"serve": "npm run build && npx --yes serve@14.2.4 _site",
|
|
"perf": "node scripts/perf-bench.js",
|
|
"bench:gpu": "node scripts/gpu-bench.js",
|
|
"mcp": "node scripts/mcp.js",
|
|
"mcp:browser": "node scripts/mcp.js --browser",
|
|
"mp": "node scripts/mp-server.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"devDependencies": {
|
|
"@modelcontextprotocol/node": "2.1.2",
|
|
"@modelcontextprotocol/server": "2.4.0",
|
|
"jsdom": "30.1.3",
|
|
"playwright-core": "1.64.1",
|
|
"ws": "8.22.1"
|
|
}
|
|
}
|