Quick Start
The default demo starts a relay, publishes a test video, and opens the web client. Everything runs on your machine.
First, clone the repository:
git clone https://github.com/moq-dev/moq
cd moqWith Nix
Nix is the recommended setup because it uses the tool versions pinned by the repository. Install Nix with flakes enabled, then run:
nix develop --command justWith nix-direnv, entering the repository loads the development shell and the command becomes just.
Without Nix
Install these tools first:
Then install the workspace tools and start the demo:
just install
justSome optional targets need additional system libraries. GStreamer development packages are required for moq-gst; a C toolchain is required for libmoq; and the language bindings need their respective toolchains. The Nix development shell includes these dependencies.
Windows users should follow the Windows setup. Linux packages for running released binaries are covered in the Linux guide.
What starts
The default recipe runs three components:
- moq-relay routes broadcasts between publishers and subscribers.
- moq-cli publishes a test video through the relay.
- The web demo opens at localhost:5173.
The local relay uses a generated certificate and fingerprint verification. A public deployment needs a stable hostname, trusted TLS certificate, and an open UDP port. See production deployment.
Next steps
- Use the development guide for tests, debugging, and more demos.
- Try publishing with OBS or GStreamer.
- Explore the applications and libraries.