Build a WebSocket-only tracker from the official Node image and a locked bittorrent-tracker 11.2.3, run via compose.tracker.yaml and the tracker:up/tracker:down/test:tracker scripts. A small wrapper disables scrape and stats and bounds input: frame validation, per-IP connection and message limits (IPv6 grouped per /64), origin checks, a fixed peer ID and at most four swarms per socket (tracked synchronously, so pipelined frames cannot bypass it), swarm and peer caps, idle-socket timeout and explicit expiry of stale swarm memberships. Forwarded addresses are taken from the rightmost X-Forwarded-For entry and only from trusted proxies. Integration tests use only Node built-ins. Document the planned tracker reconnect design; the app still uses manual connection codes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
"name": "hellcon",
|
|
"private": true,
|
|
"version": "0.0.5",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"dev:setup": "node scripts/dev-setup.ts",
|
|
"turn:up": "docker compose --env-file .env.development up -d",
|
|
"turn:down": "docker compose --env-file .env.development down",
|
|
"tracker:up": "docker compose -f compose.tracker.yaml up -d --build --wait",
|
|
"tracker:down": "docker compose -f compose.tracker.yaml down",
|
|
"test:tracker": "docker build --target test -t hellcon-tracker:test tracker",
|
|
"test:turn": "node scripts/browser-check.ts --turn",
|
|
"build": "vue-tsc --noEmit && vite build",
|
|
"preview": "vite preview",
|
|
"test": "node --test tests/*.test.ts",
|
|
"test:browser": "node scripts/browser-check.ts",
|
|
"test:download": "node scripts/browser-check.ts --stream-download",
|
|
"test:cross-browser": "node scripts/cross-browser-check.ts",
|
|
"typecheck": "vue-tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"vue": "^3.5.44"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^26.6.5",
|
|
"@vitejs/plugin-vue": "^6.0.10",
|
|
"axe-core": "^4.14.0",
|
|
"typescript": "~6.0.3",
|
|
"vite": "^8.3.4",
|
|
"vue-tsc": "^3.3.13"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.18.0"
|
|
}
|
|
}
|