# harlanc/xiu

A simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀

Repository: https://github.com/harlanc/xiu
Canonical: https://ross.abutalabs.com/products/xiu
Homepage: https://rustxiu.com
Language: Rust
License: MIT
License Family: permissive
Topics: rtmp, rust, hls, rtmp-server, xiu, media-server, live, tokio, rtsp, m3u8, ts, h264, aac, cluster, audio, video, http-flv, rtsp-server, whep, whip
Last push: 2026-03-07T22:54:44+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 71, release rhythm 8, longevity 100
- inputs: {"age_days": 2208, "days_push": 179, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2319, forks 239 (observed 2026-08-28T04:06:37.041180+00:00)

## What it is
Xiu is a high-performance live streaming media server written in pure Rust, supporting RTMP (with clustering), RTSP, WebRTC (WHIP/WHEP), HTTP-FLV, and HLS protocols out of the box. Built on Tokio for async concurrency, it offers protocol conversion, token authentication, HTTP APIs/callbacks, and HLS recording.

## Use cases
- self-host a live streaming server
- convert RTMP streams to HLS or HTTP-FLV
- ingest WebRTC streams via WHIP and play them via WHEP
- run a clustered RTMP media server
- record live streams to HLS (m3u8 + ts) files
- serve low-latency WebRTC live video
- publish H.264/H.265/AAC streams over RTSP

## When to choose
- you need a lightweight, memory-safe alternative to nginx-rtmp or SRS
- you want multi-protocol support (RTMP/RTSP/WebRTC/HLS/HTTP-FLV) in a single binary
- you prefer Rust for performance and security
- you need protocol conversion between ingest and playback formats
- you want simple CLI or config-file deployment with Docker support

## When to avoid
- you need VOD or transcoding features rather than live relay
- you require extensive plugin ecosystems or GUI management consoles
- you need battle-tested enterprise support at massive scale
- you depend on protocols like SRT or RTMP with advanced features not yet supported

## Facets
- artifact type: service
- maturity: active
- function: http-server, streaming, websocket, auth, middleware
- domain: media, self-hosted, backend
- platform: windows, rust, cli, self-hosted
- tags: rtmp, rtsp, webrtc, whip, whep, http-flv, hls, live-streaming, media-server, tokio, h264, aac, gop-cache, cluster, video, audio, linux, macos, docker

## Member repositories
- harlanc/xiu (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:37.041180+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:38:51.200586+00:00, confidence not recorded.
  - readme: https://github.com/harlanc/xiu (fetched 2026-08-28T04:06:37.041180+00:00, sha e4613922021a)
  - homepage: https://rustxiu.com (fetched 2026-08-29T10:19:07.793494+00:00, sha 11729c6c6e72)
  - site_page: https://www.rustxiu.com/docs (fetched 2026-08-29T10:19:07.802848+00:00, sha 42761d996a36)
  - site_page: https://www.rustxiu.com/docs/getting-started/quickstart (fetched 2026-08-29T10:19:07.804990+00:00, sha 21d8236416b8)
  - registry_crates: https://crates.io/api/v1/crates/xiu (fetched 2026-08-29T10:19:07.806713+00:00, sha 8d0c3ed85f7c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
