⚠️ Not production ready, experimental research code
This project is not affiliated with Cloudflare quiche
A Media over QUIC Transport (MoQT) implementation for quiche, drafts 07 to 19, over WebTransport and native QUIC.
Protocol
moq_wire_primitives:no_stdvarints, bounded strings, reader and writermoq_wire: encoding of MoQT messages, objects and streams, drafts 07 to 19moq_core: sans-IO session state machine behind a smallTransporttrait,no_stdmoq_loc: typed LOC properties (codec config, timestamps, ...)moq_object_cache: caches reassembling and storing objects by locationmoq_pacing: playback speed from buffer level
Transports and runtimes
quiche_moq:moq_coreon a quiche connection, examples inquiche_moq/examplesquiche_moq_webtransport_helper: QUIC, WebTransport and MoQ setup for mio endpointsquiche_webtransport: WebTransport over HTTP/3 (draft 16) on quichemoq_core_async: runtime-agnostic async API overmoq_coremoq_tokio: async client and server on tokio and tokio-quichehttp_capsule,short_buf,quiche_utils,quiche_h3_utils,quiche_endpoint_utils: small helpers
Applications
moq_cli: themoqnode: publish, subscribe, relay and route tracksmoq_web: browser player on WebTransport and WebCodecs, Rust and WASM
Testing
interop: moq-interop-runner image and the full interop matrix in the Nix sandboxexperiments: nixnet testbeds, e.g.nix run .#experiments.webcheck.sh: what CI checks, run innix develop
flowchart TD
cli[moq_cli] --> helper[quiche_moq_webtransport_helper]
helper --> qmoq[quiche_moq]
web[moq_web] --> async[moq_core_async]
tokio[moq_tokio] --> async
async --> core
qmoq -- "impl Transport" --> core[moq_core]
qmoq --> wt[quiche_webtransport]
tokio --> wt
wt --> quiche[quiche fork]
qmoq --> quiche
tokio --> tq[tokio-quiche]
web --> browser[browser WebTransport, WebCodecs]
core --> wire[moq_wire] --> prim[moq_wire_primitives]
cli & web & async -.-> cache[moq_object_cache]
cli & web -.-> loc[moq_loc] & pacing[moq_pacing]
classDef repo fill:#f48120,stroke:#b35d10,color:#fff
class cli,helper,qmoq,web,async,tokio,core,wt,wire,prim,cache,loc,pacing repo
Orange boxes are crates of this repository, the others external dependencies.
moq_core holds all protocol logic and does no I/O. Each platform implements its Transport: quiche_moq for
mio event loops (moq_cli), moq_core_async for async callers, with moq_tokio natively and moq_web in the
browser. Buffering and caching policy stay with the application.
- drafts 07 to 19, modelled on draft 19 and mapped to each older draft; a feature a draft lacks is refused there
- WebTransport (
https://) and native QUIC (moqt://, draft 15+) sessions - subscribe, publish, namespace announce and subscribe, SUBSCRIBE_TRACKS, track status and fetch
- request updates, range filters, delivery timeouts, priorities, streams and datagrams
- relaying with namespace re-announcement, multipath subscriptions, race and reconnect of upstreams
- browser player with live WebCodecs video and audio, adaptive playback pacing, stats panels
- typed LOC properties, fMP4 demuxing and remuxing
- qlog of control messages and objects
- runtime-tunable QUIC transport and padding stream
- fuzzed decoders and sessions, interop tested in moq-interop-runner
as
birneee-moq
Drafts before 15 negotiate the version in the SETUP messages, from draft 15 on ALPN or WT-Available-Protocols
pin exactly one. Draft 16 is the best tested version.
- fetch before draft 15
- datagrams before draft 14
- replacing range filters with a request update
- UNSUBSCRIBE_NAMESPACE
$ nix develop
$ RUST_LOG=info cargo run -p time-server
[INFO time_server] start server on 0.0.0.0:8080
$ RUST_LOG=info cargo run -p time-client
[INFO time_client] subscribe clock second
[INFO time_client] received "2025-10-17T11:37:17.265898446+02:00"MIT, see LICENSE.