Documentation Index
Fetch the complete documentation index at: https://mintlify.com/moqtail/moqtail/llms.txt
Use this file to discover all available pages before exploring further.
Moqtail Rust Library
Moqtail is a Draft 14-compliant Media-over-QUIC (MoQ) protocol library written in Rust. It provides fundamental building blocks for developing MOQT-compliant applications that enable efficient streaming of live and on-demand media content over QUIC connections.This library is under active development and the API is subject to change. Please use with caution in production environments.
What is MOQT?
MOQT (Media over QUIC Transport) is a protocol designed specifically for media delivery over QUIC connections. It combines the benefits of QUIC’s modern transport features with specialized capabilities for media streaming:- Low latency: Built on QUIC for minimal connection overhead
- Efficient streaming: Optimized for live and on-demand content delivery
- Reliable transport: Leverages QUIC’s connection-oriented design
- Modern protocol: Draft 14 compliance with ongoing standardization
Library Overview
The Moqtail library is organized into four main modules:Client
Client-side functionality for connecting and consuming MOQT streams
Relay
Server-side relay functionality for forwarding MOQT streams
Model
Core protocol data structures and message types
Transport
Low-level transport handlers for control and data streams
Key Features
Protocol Compliance
Moqtail implements the MOQT Draft 14 specification, including:- Full control message support (Setup, Subscribe, Publish, Fetch, etc.)
- Data stream handling with multiple forwarding preferences
- Namespace-based track organization
- Extension headers and parameters
Async-First Design
Built on Tokio, the library provides:Type Safety
Rust’s type system ensures correctness at compile time:Error Handling
Comprehensive error types for robust applications:Architecture
The library follows a layered architecture:Dependencies
Moqtail is built on a modern Rust ecosystem:- tokio: Async runtime for non-blocking I/O
- wtransport: WebTransport and QUIC implementation
- bytes: Efficient byte buffer handling
- serde: Serialization framework
- thiserror: Ergonomic error handling
Use Cases
Moqtail is suitable for building:- Live streaming platforms: Real-time video/audio delivery
- Conferencing systems: Multi-party media exchange
- Gaming applications: Low-latency media transport
- IoT streaming: Sensor data and media from edge devices
- CDN infrastructure: Origin and edge relay servers
Next Steps
Install the library
Add Moqtail to your Cargo.toml and set up your development environment.Installation Guide →
Explore the protocol model
Learn about MOQT messages, tracks, and data structures.Model Reference →
Build a client
Create a MOQT client to consume media streams.Client Guide →
Set up a relay
Deploy a relay server to forward MOQT streams.Relay Guide →
Community and Support
Moqtail is an open-source project licensed under Apache 2.0. Contributions, bug reports, and feedback are welcome.For the latest updates and documentation, visit the GitHub repository.