Public video generation for snail3d.com. A prompt enters through a Cloudflare Worker, is rate-limited at the edge, tunneled to a render service on the Mac, queued into the H3 farm, and the finished clip comes back through R2. This page is the map.
| Component | Where | Role |
| Frontend UI | /sora/ on snail3d.com (public/sora/index.html, standalone page) | Prompt form, live “in the oven” jobs, clip gallery with hover previews. |
| snail3d-polar Worker | Cloudflare (routes snail3d.com/api/sora*) | Public API: submit + edge rate limits, gallery with KV fallback, status, secret-checked upload → R2, Range-aware clip serving. worker/sora.js + routing in worker/polar-webhook.js. |
KV snail_sora_kv | Cloudflare | Rate-limit counters (per-IP min/day, global min/day) and 1 h gallery cache fallback when the Mac service is down. |
R2 snail-sora | Cloudflare | Stores finished clips as videos/<id>.mp4 (max 25 MB per upload). |
| cloudflared tunnel | Mac (managed, id 26e359aa…) | Exposes sora.snail3d.com.tealclaw.ai → 127.0.0.1:7789. |
| sora_service.py | Mac, 127.0.0.1:7789 (launchd) | Secret auth (HMAC), queue caps, backend auto-pick, job state, 20 s completion poller + clip upload. Config in sora/sora_config.json (gitignored). |
| h3 queue | ~/h3_queue | FIFO MiniMax H3 runner: jobs.json manifest, runner_state.json (done/failed), per-job logs, dashboard on :8741. Wrapper: h3 (status/queue/stitch/play/logs). |
| Mac backend | Apple Silicon, MPS | H3 render fallback when Spark is busy. |
| Spark (blacksnail1) | Remote GPU | H3 render via SGLang when idle ≥ 10 min — chosen automatically. |
| Item | Status |
Worker deployed on snail3d.com (/api/sora* routes live) | ✅ done — submit + gallery verified end-to-end |
| R2 bucket + KV namespace bound | ✅ done |
| h3 runner + dashboard on the Mac (:8741) | ✅ running |
sora_service.py under launchd (com.snail3d.sora) | ✅ running — sora/sora_config.json + shared SORA_SECRET in place |
Tunnel: ingress entry + CNAME sora.snail3d.com.tealclaw.ai | ✅ live — /health verified through the public hostname |
Video page at /sora/ | ✅ live |
| TLS for the tunnel hostname | ⬜ CF cert not issued yet — worker→service hop is plain http (secret-protected) |
Clean sora.snail3d.com CNAME | ⬜ needs a token with DNS write on the snail3d.com zone; then flip SORA_SERVICE_URL to https://sora.snail3d.com |