https://github.com/hyrious/blivec
Listen bilibili live danmaku / 获取 bilibili 直播弹幕
https://github.com/hyrious/blivec
bilibili bilibili-live
Last synced: 10 months ago
JSON representation
Listen bilibili live danmaku / 获取 bilibili 直播弹幕
- Host: GitHub
- URL: https://github.com/hyrious/blivec
- Owner: hyrious
- License: mit
- Created: 2022-05-02T09:17:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-29T04:09:14.000Z (11 months ago)
- Last Synced: 2025-06-29T04:09:44.483Z (11 months ago)
- Topics: bilibili, bilibili-live
- Language: TypeScript
- Homepage:
- Size: 476 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# > bilibili-live-cli
[](https://github.com/antfu/eslint-config)
Personal tool for viewing 弾幕 (danmaku) and other utils in bilibili live streaming.
## Why
It will cost too much CPU to open a browser when playing [osu!](https://osu.ppy.sh/users/hyrious), where the performance of CPU matters when the beatmap becomes more difficult and you need at least 240 FPS to play well.
The main goal of this tool is to provide a cheap way to interact with bilibili live streaming without hurting the game's performance. If you want a better API library, see [credits](#credits).
## Install
You don't have to install it if you have `npx`,
```bash
npx @hyrious/blivec ...args
```
Or you can choose to install it globally, which will give you a shortcut name `bl`,
```bash
npm i -g @hyrious/blivec
bl ...args
```
## Usage
> [!NOTE]
> Many commands require cookies to run correctly.
> Use incognito mode to get the cookie that won't expire easily.
```
bl # listen danmaku (requires cookie for
displaying user names)
--json # print all events in json
bl # send danmaku (requires cookie)
bl get # get stream url
--json # print them in json
bl feed # get feed list (requires cookie)
--json # print them in json
bl d [--interval=1] # dd mode
--interval= # set 0 to disable polling
--mpv # open in mpv instead
--on-close= # do something on window close
default # restart player (alias: --default)
ask # ask quality again (alias: --ask)
quit # quit DD mode (alias: --quit)
-- [...player_args] # pass args to ffplay or mpv
```
## Develop
PR & issues are welcome!
## Credits
- [blivedm](https://github.com/xfgryujk/blivedm)
- [bilibili-live-ws](https://github.com/simon300000/bilibili-live-ws)
- [Bilibili-Live-API](https://github.com/lovelyyoshino/Bilibili-Live-API)
- [bilibili-live-stream](https://github.com/ikexing-cn/bilibili-live-stream)
## License
MIT @ [hyrious](https://github.com/hyrious)