Self-hostable Media over QUIC Transport (MoQT) stack for low-latency video, audio, and data: JavaScript, Python, and Rust SDKs, a cascading relay, and media/telephony gateways, built in Rust on one protocol core.
- Try in browser: MoQT Playground — meetings, live streaming, AI voice agents, camera monitoring, and more (no install)
- Build: JavaScript SDK · Python SDK · Rust SDK
- Self-host: Local demos · Relay setup
- MoQT draft-14 & draft-18: Cross-version relaying between drafts.
- Three transports, one port: The relay accepts native QUIC (
moqt://), WebTransport (https://), and QMux over WebSocket (wss://,draft-lcurley-qmux-websocket-00) on one port. - One media model across SDKs: JavaScript, Python, and Rust SDKs share MSF catalogs, LOC/CMAF tracks, and event timelines, so any SDK can play what another publishes.
- End-to-end OpenTelemetry: Clients, relays, and gateways export OTLP traces, logs, and metrics (
OTEL_EXPORTER_OTLP_ENDPOINT);TRACE_CONTEXTcarries one trace across client–relay boundaries.
flowchart LR
subgraph Clients["Clients & SDKs"]
JS["Browser (JS SDK)"]
PY["Python SDK · AI Bots"]
RS["Rust SDK · Robots"]
end
RELAY["MoQT Relay<br/>draft-14 & 18 · Cache · VTS"]
subgraph Gateways["OSS Gateways"]
IN["ingest-gateway / moqtsink"]
OUT["egress-gateway / recorder"]
SIP["sip-gateway"]
end
EXT_IN["OBS · ffmpeg · Cameras"]
EXT_OUT["RTP · Storage"]
EXT_SIP["SIP Trunk · Phones"]
OTEL["OpenTelemetry<br/>Traces · Logs · Metrics"]
JS <-->|"WebTransport<br/>QMux over WS"| RELAY
PY <-->|"QUIC · WebTransport<br/>QMux over WS"| RELAY
RS <-->|"QUIC · WebTransport<br/>QMux over WS"| RELAY
RELAY <-->|"MoQT"| IN
RELAY <-->|"MoQT"| OUT
RELAY <-->|"MoQT"| SIP
IN <-->|"RTMP · SRT · RTP<br/>RTSP · ONVIF"| EXT_IN
OUT -->|"RTP · fMP4<br/>MoQ Archive"| EXT_OUT
SIP <-->|"SIP · SRTP"| EXT_SIP
RELAY -.->|"OTLP<br/>(Client · Relay · Gateway)"| OTEL
| Domain | Capabilities | Starting points |
|---|---|---|
| Messaging & collaboration | Event timelines, FETCH catch-up |
Whiteboard, Message |
| Web meetings & telephony | Multi-party A/V, recording, SIP trunks | Meeting, recorder, sip-gateway |
| Live streaming & production | Cascading relays, RTMP/SRT/RTP ingest, ABR, relay-cache rewind | Live Viewer, ingest-gateway, egress-gateway, moqtsink |
| Surveillance & monitoring | ONVIF/RTSP pull, on-demand camera streams, PTZ | Remote Monitoring, ingest-gateway pull |
| AI agents | Pipecat voice transport, live translation, object-detection bots | AI Voice Agent, sdk/python, bot-dispatcher |
| Drones & robotics | Camera feeds, action arbitration, dead-man hold | robotics, sdk/rust, moq-robot-sim |
| Cloud gaming & real-time game data | WebCodecs video, unreliable datagrams, prioritized streams | Datagram, moqt |
All three SDKs interoperate, follow GOAWAY, reconnect automatically, and support JWT auth.
| SDK | Guide | API | Highlights |
|---|---|---|---|
| JavaScript (Browser) | sdk/js/js |
TypeDoc | WebTransport → WebSocket fallback, WebCodecs, LivePlayer, <moq-player> |
| Python | sdk/python |
pdoc | Async QUIC/WebTransport client, PyAV codecs, Pipecat transport |
| Rust | sdk/rust |
rustdoc | Async QUIC/WebTransport client, event timelines, robotics teleoperation |
Hosted evaluation relay: connect any SDK without deploying a relay to https://relay.moqt.research.skyway.io:443.
anon/**: no token required (public — anyone who knows the namespace can subscribe).- Private namespaces: self-host
relaywithvts.
| Component | Role |
|---|---|
services/relay |
MoQT relay (QUIC, WebTransport, WebSocket on one port), FETCH cache, cascading, draft-14/18 |
services/vts · services/console |
JWT verification (VTS) and app/token console |
services/bot-dispatcher · services/live-translate |
On-demand room bot launcher and live audio translation |
services/observability |
Client telemetry collector and OTLP forwarder (design) |
| Component | Role |
|---|---|
services/ingest-gateway |
RTMP, SRT, RTP, RTSP, and ONVIF (PTZ) ingest |
services/egress-gateway |
MoQT to RTP + RTCP + SDP output |
services/sip-gateway |
Inbound/outbound SIP + SDES-SRTP room bridge |
services/recorder |
Multi-participant fMP4 recording and replayable MoQ archives |
sdk/gstreamer |
GStreamer moqtsink plugin (H.264/AAC) |
Requires Docker, Google Chrome, Node.js, and OpenSSL. Each demo builds images on first run and starts the Playground (http://localhost:5173), a local relay (https://127.0.0.1:4433), and its supporting services.
- Run
docker compose ... upin terminal 1 (it stays in the foreground). Once ready, runmake chromein terminal 2 to launch Chrome trusting the relay's self-signed certificate (services/relay/keys/). - Linux: run
make chrome:linuxinstead and openhttp://localhost:5173/moq-wasm/.
docker compose -f compose.demo.yml up # terminal 1
make chrome # terminal 2- Open Meeting.
- Select Relay › Local › relay-a and join a room.
- Open a second tab in the same Chrome window and join the same room.
docker compose -f compose.demo.yml --profile live up # terminal 1
make chrome # terminal 2- Open Live Viewer.
- Enter
anon/live/testand press Watch.
Requires a Gemini API key from Google AI Studio:
GOOGLE_API_KEY=<key> docker compose -f compose.demo.yml --profile voice-agent up # terminal 1
MOQT_FAKE_MEDIA=0 make chrome # terminal 2- Select 一時トークン (Temporary token) in the top right.
- Open AI Voice Agent.
- Join and speak (
MOQT_FAKE_MEDIA=0uses your real microphone).
docker compose -f compose.demo.yml --profile monitoring up # terminal 1
make chrome BROWSER_EXAMPLE_PATH='/moq-wasm/examples/remote-monitoring/index.html?location=demo' # terminal 2On Linux, open http://localhost:5173/moq-wasm/examples/remote-monitoring/index.html?location=demo in the Chrome window started by make chrome:linux.
Press 接続 (Connect) to view three test-pattern cameras at location demo.
- OpenTelemetry + HyperDX: add
-f compose.observability.ymlto any demo, e.g.:Open Observability in the Playground for live relay topology and tracks, or HyperDX (docker compose -f compose.demo.yml -f compose.observability.yml --profile live up
http://localhost:8080) for traces, logs, and metrics. - Stop: run
docker compose -f compose.demo.yml downfor Meeting. For other demos, repeat the same-fand--profileflags withdown.
From nix develop (after npm ci), start each service in its own terminal:
make relay # https://127.0.0.1:4433 + VTS
make ingest-gateway # RTMP/SRT ingest
make ffmpeg-srt # test pattern over SRT
make browser # wasm build + http://localhost:5173
make chrome # Chrome with local relay cert (Linux: make chrome:linux)