trevato/arm
Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
- src/live-metrics.ts: rolling counters and p50/p95, rendered as Prometheus text - a pure module with unit tests (re-run on today's main)
- bench/launch-check.ts checks a deployed URL as an anonymous stranger and prints a pass/fail checklist
- /live closes any text frame over 4096 bytes with 1009, counted by the relay because Bun's ws ignores maxPayload
- A preview deploys while the Pi is offline: GET /healthz answers 200 from the relay alone, and forge.json's health points at it
- Phone portrait: a bottom tab bar Drive / Queue / Chat (/ Mod for admins) shows one panel at a time
- Phone portrait: the video is pinned on top with its 16:9 box reserved (no layout shift), and one status strip sits under it
- The relay feeds src/live-metrics.ts and serves it: Pi round trip, camera fps in, viewers, follow frames dropped, bytes out at /metrics.prom, one log line a minute
- src/live-metrics.ts: rolling counters and p50/p95, rendered as Prometheus text - a pure module with unit tests
- A repeatable launch check: bench/launch-check.ts walks a stranger's path (watch, join, queue, drive, STOP) against any URL and passes on a preview
- The page's queue, join and chat script lives in src/ui/lobby-panel.js - no behaviour change
- Relay's /admin routes live in their own module, src/admin-routes.ts - no behaviour change
- Mobile landscape: video fills the screen, controls overlay the lower corners, STOP top-right
- Mobile drive sheet: a bottom sheet with two snap points - peek (status, STOP, gripper) and open (~45dvh, joint controls)
- Exactly one STOP on every layout: red, >= 56 px, fires on pointerdown, resume asks for a second tap, a full-width stopped banner
- Mobile portrait shell: video pinned on top with no layout shift, one status strip, a bottom tab bar Drive / Queue / Chat
- The app counts its own numbers: Pi round trip, camera fps in, viewers, frames dropped and bytes out, at /metrics.prom and a one-line log each minute
- The camera reaches the browser over a WebSocket, latest frame wins, so it never freezes behind Cloudflare
- Real video: hardware H.264 from the Pi over the WebSocket, decoded with WebCodecs, smaller streams for slow viewers - a fraction of MJPEG's bytes
new above
offline