Skip to content
portfolio/crucible
Sign in
MULTISTREAM RELAY

Crucible

A self-hosted multistream relay in Rust - one stream from OBS in, Twitch, Kick, YouTube and Rumble out.

Crucible is a self-hosted multistream relay. OBS streams once to a Crucible server on a Linux machine, and the server forwards that stream to Twitch, Kick, YouTube and Rumble, each destination on its own worker so one failing leaves the others live. Everything is set up from a plugin inside OBS - destinations, the merged chat of all four platforms, the stream's title, category and tags, and live stream health - so apart from the one-time install and the TLS certificate, nothing is edited on the server. It is in early development (v0.10).

1stream from OBS
4platforms out
0config files to edit
RustaxumTokiorustlsSQLiteMediaMTXFFmpegRTMPSOAuthWebSocketsC++Qt 6OBS Studiosystemd

One Worker per Destination

OBS sends one RTMPS stream to MediaMTX on the server, and a Rust control service supervises an FFmpeg worker for each of Twitch, Kick, YouTube and Rumble. The video is passed through, not re-encoded, and a destination that fails does not stall or restart the others.

Configured from Inside OBS

A plugin for OBS 32 on macOS and Windows adds a Crucible dock and a Tools window: pair with a one-time code, add destinations, and point OBS's stream at the relay with one click - the previous stream settings are kept and can be restored.

C++/Qt Plugin on a Rust Core

The plugin is a thin C++/Qt 6 layer over a Rust static library behind a C ABI. The core does the networking, keeps the device token in the macOS Keychain or the Windows Credential Manager, and never blocks or panics into OBS.

Combined Chat

One dock shows all four chats merged: Twitch over an EventSub WebSocket, Kick through signature-checked webhooks, and YouTube and Rumble by polling, paced to stay inside YouTube's daily API quota.

Viewers, Follows, Subs, Tips

Each platform's viewer count sits in the dock's status, and follows, subscriptions, gifted subs, tips and raids arrive as their own lines in the chat - filters never hide them.

Chat Filters

Optional filters drop messages that are mostly emoji or shorter than a set number of words before they reach the dock, while a viewer's first message, moderators and the streamer always get through.

Stream Title, Category, Tags

One tab sets the title on every platform, and a category and tags on each, through the Twitch, Kick and YouTube APIs with the accounts already signed in for chat.

Live Stream Health

The dock shows what arrives from OBS - bitrate, resolution, codec, unreadable frames - and, per destination, frame rate, bitrate, speed and how far it has fallen behind live, measured from FFmpeg's progress.

Secrets Stay on the Server

Stream keys, client secrets and sign-in tokens are stored encrypted in SQLite under a root-only master key and never shown again; the relay key OBS uses is kept only as a hash. The control API is HTTPS on rustls with ring, and renewed certificates are picked up without a restart.

One-Command Install

A curl-pipe installer checks the release against SHA256SUMS, installs a static musl binary for x86_64 or aarch64 with a pinned MediaMTX and FFmpeg, and sets up a systemd service. Releases are cut by a pipeline that tests a full systemd install with TLS first.