octoturge 6fab9072d4 Play cameras through the relay instead of straight at the gateway
The player posted its SDP offer to the gateway's go2rtc directly, which
cannot work from a browser on another origin: no CORS headers on any
go2rtc response, a preflight required because application/sdp is not
CORS-safelisted, and the password checked before CORS so that preflight
gets a 401. It now hands the offer to a `signal` function the app
supplies, which relays it through the backend.

Pinned to iceTransportPolicy "relay" whenever ICE servers are present,
so media always goes through the TURN relay and never peer-to-peer. A
hosted console cannot rely on reaching a customer's gateway directly,
and a camera that works from the workshop but not from home is worse
than one that behaves the same everywhere.

With no TURN configured it falls back to "all", which still works for a
viewer on the gateway's own network. Relay-only with no relay would
gather no candidates and fail every time, so the fallback is what makes
an unconfigured deployment degrade rather than break - and a failed
connection in that state now says so, since the browser reports nothing
but "failed" and the fix is a deployment setting.

It also waits for ICE gathering before signalling rather than trickling:
the answer comes back through a single request/response relay hop, so
there is no channel to trickle over afterwards and the offer has to
carry its candidates. Bounded at 3s, because gathering can hang on a
candidate that never resolves and signalling with what we have beats
waiting forever.

`signal` is a prop rather than a fetch in the component, like `stream`
already was: @continuum/ui stays plain Vue that knows nothing of the API,
which is what lets it render from a test or the desktop shell.
2026-10-19 00:33:18 +00:00

continuum-app

Operator console for the Continuum print farm platform. A single Nuxt 3 SPA (apps/web) shared between the browser and a Tauri 2 desktop shell (apps/desktop), plus a shared component library (packages/ui).

Layout

apps/
  web/        Nuxt 3 SPA (ssr: false) - Supabase auth, Pinia telemetry store
  desktop/    Tauri 2 shell wrapping apps/web's static build
packages/
  ui/         Shared Vue components: PrinterCard, TemperatureGraph, WebRTCStreamView

Getting started

pnpm install
cp .env.example apps/web/.env
pnpm dev:web       # browser dev server on :3000
pnpm dev:desktop    # Tauri dev shell (requires Rust toolchain)

apps/web builds as a static SPA so the exact same apps/web/.output/public bundle is served in the browser and embedded into the Tauri desktop app.

S
Description
Continuum platform: continuum-app
Readme
268 KiB
Languages
Vue 76.7%
TypeScript 22.4%
Rust 0.9%