# bili-live

<p align="left">
    <a href="https://crates.io/crates/bili-live"><img src="https://img.shields.io/crates/v/bili-live"></a>
    <a href="https://github.com/HellOwhatAs/bili-live/"><img src="https://img.shields.io/github/languages/top/HellOwhatAs/bili-live"></a>
</p>

A TUI / GUI tool for starting and stopping live streams on bilibili.com, capable of providing the RTMP address and stream key for streaming software such as OBS.

## Install
### Precompiled Binarys
Precompiled binarys available at [releases](https://github.com/HellOwhatAs/bili-live/releases).

### Install with Cargo
```bash
# TUI
cargo install bili-live

# GUI
cargo install bili-live --features gui
```


## TUI (Default)
A robust, keyboard-driven interface powered by `ratatui`. Perfect for terminal enthusiasts and server environments.
<img width="100%" alt="tui image" src="https://github.com/user-attachments/assets/7f68167a-f773-4753-950d-d87d165e6c04" />

## GUI
A clean, cross-platform graphical interface powered by `egui` (enable via `--features gui`).
<img width="100%" alt="gui image" src="https://github.com/user-attachments/assets/0748509f-21af-47db-9171-4970d6375f9a" />

## Credits
* [bilibili_live_stream_code](https://github.com/ChaceQC/bilibili_live_stream_code)
* [bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect)
