Add an own tracker and STUN server in backend/

backend/ runs both as Docker Compose services, neither is needed: the client works with any
WebTorrent tracker and STUN server. The tracker is one file on Node and ws that does only the part
of the protocol HellCon uses. It accepts allowed origins only and messages of at most 16 KiB, only
announce, one offer per announce and answers only to offers it delivered, once. Forwarded messages
are rebuilt from the checked fields. It limits the message rate, the signaling each connection
sends, the bytes queued for a peer that stops reading, connection age, connections per IP and in
total, and peers per swarm. It logs nothing. coturn runs STUN only on the host network, pinned,
read-only and without capabilities beyond the one its binary needs.

backend/tracker.spec.mjs tests its rules one by one, e2e.spec.ts sends a real file through it alone
in both directions between Chromium and Firefox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SchluffeandClaude Opus 5.5 committed 2026-10-25 15:26:42 +01:00
1 parent bb69569b51
commit 22d794965e
10 files changed
+665 -51

No files matched your search

+17
View File
@@ -191,6 +191,9 @@ importers:
vue-tsc:
specifier: ^3.3.13
version: 3.3.13(typescript@6.0.3)
ws:
specifier: 8.22.0
version: 8.22.0
packages:
@@ -653,6 +656,18 @@ packages:
typescript:
optional: true
ws@8.22.0:
resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==}
engines: {node: '>=10.0.0'}
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: '>=5.0.2'
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
snapshots:
'@babel/helper-string-parser@7.29.7': {}
@@ -998,3 +1013,5 @@ snapshots:
'@vue/shared': 3.5.44
optionalDependencies:
typescript: 6.0.3
ws@8.22.0: {}