Files
SchluffeandClaude Opus 5.5 7f4811485a Limit what a tracker can make the page do, recommend anti-framing headers
A tracker message over 64 KiB isn't parsed, before acceptance it rejects
the tracker like a failure reason. Beyond 20 messages per 10 s the rest is
dropped, so a tracker can't keep the page parsing and decrypting. What a
tracker makes a socket log goes through one note: each line once, at most
10 per socket. The log keeps the last 1000 lines in a shallow ref and says
how many went.

index.html sets Referrer-Policy itself, the README recommends the headers a
<meta> can't set: frame-ancestors, X-Frame-Options and nosniff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:29:23 +01:00

79 lines
2.5 KiB
JSON

{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": {
"includes": ["**", "!**/node_modules", "!**/dist", "!**/test-results", "!**/*.svg", "!**/pnpm-lock.yaml"]
},
"formatter": { "indentStyle": "space", "lineWidth": 120 },
"javascript": { "formatter": { "quoteStyle": "single" } },
"css": { "formatter": { "quoteStyle": "single" } },
"yaml": { "formatter": { "quoteStyle": "single" } },
"html": {
"experimentalFullSupportEnabled": true,
"formatter": { "enabled": true, "selfCloseVoidElements": "always" }
},
"linter": {
"rules": {
"preset": "recommended",
"nursery": { "noFloatingPromises": "error", "noMisusedPromises": "error" },
"style": {
"noNonNullAssertion": "off",
"noDescendingSpecificity": "off",
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"./core": {
"message": "only src/core.test.ts imports this export of src/core.ts",
"importNames": [
"CHUNK_SIZE",
"MAX_BUFFERED",
"WINDOW",
"TRACKER_TIMEOUT",
"MAX_TRACKER_MESSAGE",
"MAX_TRACKER_MESSAGES",
"MESSAGE_WINDOW",
"TRACKER_NOTES",
"CONNECT_TIMEOUT",
"MIN_INTERVAL",
"PBKDF2_ITERATIONS",
"PROOF_TIMEOUT",
"MAX_NAME",
"own",
"live",
"deadline",
"stunChoice",
"parse",
"decode",
"CODE_CHARS",
"SALT_WINDOW",
"CODE_LENGTH",
"trackerSalt",
"newCode",
"codeSalt",
"secrets",
"seal",
"unseal",
"stunHint",
"securityCheck",
"fingerprints",
"prove",
"Handshake",
"sendFile",
"receiveFile",
"trackerSocket",
"noTracker"
]
}
}
}
}
},
"a11y": { "useSemanticElements": "off" }
}
},
"overrides": [
{ "includes": ["src/core.test.ts"], "linter": { "rules": { "style": { "noRestrictedImports": "off" } } } }
]
}