Commit f5c64dc
committed
feat: rebuild Tail.WTF on a single Cloudflare Worker
Architecture: one Worker serves the SvelteKit static site via Workers
Assets and /api/* via Hono, in a pnpm workspace deployed by Workers
Builds. Types come from wrangler types; unit tests run in the Workers
runtime (vitest + @cloudflare/vitest-pool-workers) and Playwright drives
wrangler dev with no mocked responses.
Sanitization reports an honest per-link method (rule / expanded /
canonical / verified / none): short links are dereferenced with a GET
fallback; per-site allowlist rules are fetched from the Rules repo's
assembled release at build time; opt-in verification compares page
identity metadata across candidates, calibrates against a control page
before trusting any verdict, binary-searches the minimal required param
set, and retries blind cases against browser-rendered pages. Failures
are remembered per path so target sites are not re-probed.
Public API: GET/POST /api/sanitize (deep, format=text) shared by the
web UI, shortcuts, and clipboard tools; GET /api/verify streams every
probe and the verdict over SSE; Telegram (inline, /sanitize, webhook
secret) and Matrix adapters reuse the same pipeline.
Abuse and privacy: outbound operations are budgeted per actor with a
service-wide fuse and per-colo limiter; actors are keyed hashes over a
rotating window with IPv6 bucketed by /64, and the hash key rotates on
every deploy; nothing logs raw identifiers or URLs and observability
stays off. The site ships a header-enforced hashed CSP, robots.txt, and
security.txt.1 parent f8e16d2 commit f5c64dc
84 files changed
Lines changed: 9262 additions & 8165 deletions
File tree
- .github/workflows
- api
- scripts
- src
- components
- frontend
- e2e
- scripts
- src
- lib
- components
- routes
- static
- .well-known
- pages
- api
- public
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
14 | | - | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
This file was deleted.
0 commit comments