Overview
Bobine is offline-first video playout, member kiosk, coach console and club radio for gyms and studios. One machine on the local network drives the screens and the sound of the rooms: pre-recorded classes, a coach screen, a cinema mode, a radio and signage loops, scheduled or driven by hand. No account, no telemetry. It ships for Linux, Windows, macOS, Android and Android TV, with a command line, bobine, that does everything the interface does. License: AGPL-3.0.
How it is built
| Part | Content |
|---|---|
| backend | Python, one Uvicorn process and SQLite; domain packages under backend/app (playback, radio, signage, scheduling, outputs, catalog, updates, inputs, network, storage) |
| frontend | Next.js exported as static files and served by the backend; one folder per page under components/, shared helpers under lib/ |
| command line | bobine, a pure HTTP client declared as data under cli/specs/, standard library only |
| native components | Rust crates run as child processes speaking bounded line-delimited JSON: media (metadata, covers, video probe), devices (screens, audio, remotes and gamepads), projector (screen window) |
| Android | a Kotlin shell around a WebView, with the backend embedded through Chaquopy |
| media tools | ffmpeg and ffprobe, bundled per platform |
Every route has its bobine command, or a recorded reason why not. Bounds and shared lists live in api/contract.py; errors read {code, message} with 404, 409 and 422; lists take limit and offset and return X-Total-Count. A route or command change regenerates the reference in docs/reference of the Bobine repository, copied to the website.
Outputs and screens
Three fixed, isolated outputs: Wired (cable), Network 1 (network) and Network 2 (network_2). Each has one active mode at a time: classes (kiosk), cinema, radio or signage; the coach screen exists on Wired only. A device is set once to /screen/?output=ID and follows the mode of its output.
Behaviors that must not break
| Area | Rule |
|---|---|
| Video position | follows the server clock, never a screen report; playbackRate correction (plus or minus 5 percent) on mirror screens only, the primary screen stays at exactly 1.0; one seek beyond 2 s of drift, never periodic seeks |
| Sound | on /radio, native audio without an AudioContext while the sound settings are neutral; a video sound goes through Web Audio only when its output sound is not neutral; one safety limiter with a soft ceiling |
| Schedule | a class follows wall-clock time and is never restarted after a manual stop, a replacement, a cancellation or a manual playback |
| Browsers | feature detection, never the user agent; every stream route answers Range, If-Range, 416 and ETag; no /api route returns HTML; the original video is never modified |
| Updates | Stable compares versions, Beta and Canary compare commits; SHA-256 required; a scheduled update waits for the end of playback; no automatic rollback |
| Configuration | JSON export and import per family, uid as identity, atomic apply, dry run by default, prune only on request |
| Network | port 1903, fallback 1904 to 1913; mDNS name bobine.local, then bobine-2 to bobine-9; every action goes through REST, never WebSocket alone |
| Privacy | zero telemetry, enforced by a test |
Trust model
Bobine trusts the local network and has no accounts or passwords. Clients outside the private networks are refused, even behind a proxy, unless allowed by BOBINE_ALLOWED_NETWORKS; untrusted hosts are refused, so DNS rebinding reads and writes nothing; writes and WebSockets are accepted from the same origin only. Access from outside the local network is outside the model and would require an authentication decided by the maintainer. Details: reference/threat-model.md.
Channels
Stable is a tag VX.Y.Z; Beta and Canary are rolling tags rebuilt from main. Every code push to main publishes a Canary; a documentation-only commit builds nothing. VERSION in the Bobine repository is the single source of the version.