bongodevs/Kairo
关于
Standalone Discord audio sending node, written in Pure Rust. Drop-in Lavalink v4 compatible.
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Kairo
Kairo is a Rust-based audio node for Discord bots. It implements the Lavalink v4 REST and WebSocket protocol, so existing Lavalink-compatible clients can connect using the node’s address and password.
- Audio sources, filters, crossfade, lyrics, and optional Prometheus metrics
- Docker image:
ghcr.io/bongodevs/kairo - Latest release binaries for Linux, macOS, and Windows
Why this exists
Kairo started as a hobby project. We wanted more control over the audio node we use, so we decided to build our own.
We have a lot of respect for Lavalink and the people behind it. The protocol and ecosystem it built gave us a solid foundation to work from. Without Lavalink, Kairo probably wouldn't exist.
Kairo isn't here to replace Lavalink. It's simply our own take on the problem, built because we wanted to learn, experiment, and make something of our own.
Run with Docker Compose
This Compose setup uses the published GHCR image; it does not build Kairo from source.
git clone https://github.com/bongodevs/Kairo.git
cd Kairo
cp config.example.toml config.toml
Edit config.toml before starting the node. In particular, replace the sample password and enable the sources you want. Then run:
docker compose pull && docker compose up -d
Compose exposes port 2333, mounts config.toml read-only, and sets the soft and hard nofile limits to 65536. Keep this limit for a high-concurrency deployment. View container output with docker compose logs -f; optional file logging can use the mounted ./logs directory.
Run the published image
Download the example configuration, copy it, and update the password and source settings:
curl -fsSLO https://raw.githubusercontent.com/bongodevs/Kairo/main/config.example.toml
cp config.example.toml config.toml
Then start the image, mounting your configuration file:
docker run -d --name kairo --restart unless-stopped \
--ulimit nofile=65536:65536 \
-p 2333:2333 \
-v /absolute/path/config.toml:/app/config.toml:ro \
ghcr.io/bongodevs/kairo:latest
Connect a client
Point your Lavalink-compatible client to http://<host>:2333 and use the password from lavalink.server.password. For a quick check, request the node info endpoint:
curl -H 'Authorization: your-password' http://localhost:2333/v4/info
Configuration
config.example.toml documents every setting. Kairo reads the config path from the first command-line argument, then KAIRO_CONFIG, then config.toml. The PORT environment variable overrides server.port.
Most platform sources are disabled by default; the generic HTTP source is enabled. Spotify and other metadata-only sources need a playable provider configured under sources.mirror.providers. See the source catalog and provider notes for supported sources, limits, and credentials.
The optional yt-cipher service supports YouTube client paths that need signature resolution or PO tokens. keys-api can provide shared credentials for supported sources. Both are configured in config.toml and are only needed for those integrations.
Build from source
Building from source requires access to the private bongodevs/lyrics, bongodevs/player, and bongodevs/sources repositories referenced by Cargo.toml. Without access, Cargo cannot fetch those dependencies, so use the published Docker image or release binaries instead. If you have access and a stable Rust toolchain with native build tools installed:
cargo build --release --locked --bin kairo
cargo test --locked
The Prometheus endpoint is disabled by default; when enabled, it is served at /metrics unless configured otherwise.
License
Kairo is MIT licensed; see LICENSE. The Lavalink protocol notice is in NOTICES.md.
Star History
探索相关项目
加载中…