{"id":29273405,"url":"https://github.com/hyrious/blivec","last_synced_at":"2025-07-05T02:33:03.636Z","repository":{"id":57682468,"uuid":"487783640","full_name":"hyrious/blivec","owner":"hyrious","description":"Listen bilibili live danmaku / 获取 bilibili 直播弹幕","archived":false,"fork":false,"pushed_at":"2025-06-29T04:09:14.000Z","size":487,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-29T04:09:44.483Z","etag":null,"topics":["bilibili","bilibili-live"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyrious.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-02T09:17:54.000Z","updated_at":"2025-06-29T04:09:17.000Z","dependencies_parsed_at":"2025-04-25T15:39:22.808Z","dependency_job_id":"9f657cdf-9e60-47cb-a0b1-57a6abbb3687","html_url":"https://github.com/hyrious/blivec","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":"0.019230769230769273","last_synced_commit":"c1dbef2b7a3624ce51cc62144bb94f4e4cd3d417"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/hyrious/blivec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fblivec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fblivec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fblivec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fblivec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyrious","download_url":"https://codeload.github.com/hyrious/blivec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fblivec/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263671749,"owners_count":23494029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili","bilibili-live"],"created_at":"2025-07-05T02:33:00.423Z","updated_at":"2025-07-05T02:33:03.629Z","avatar_url":"https://github.com/hyrious.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003csamp\u003e\u0026gt; \u003cins\u003eb\u003c/ins\u003eilibili-\u003cins\u003elive\u003c/ins\u003e-\u003cins\u003ec\u003c/ins\u003eli\u003c/samp\u003e\n\n[![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)\n\nPersonal tool for viewing \u003cruby\u003e弾幕 \u003crp\u003e(\u003c/rp\u003e\u003crt\u003edanmaku\u003c/rt\u003e\u003crp\u003e)\u003c/rp\u003e\u003c/ruby\u003e and other utils in bilibili live streaming.\n\n## Why\n\nIt 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.\n\nThe 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).\n\n## Install\n\nYou don't have to install it if you have `npx`,\n\n```bash\nnpx @hyrious/blivec ...args\n```\n\nOr you can choose to install it globally, which will give you a shortcut name `bl`,\n\n```bash\nnpm i -g @hyrious/blivec\nbl ...args\n```\n\n## Usage\n\n\u003e [!NOTE]\n\u003e Many commands require cookies to run correctly.\n\u003e Use incognito mode to get the cookie that won't expire easily.\n\n```\n  bl \u003croom_id\u003e                      # listen danmaku (requires cookie for\n                                      displaying user names)\n     --json                         # print all events in json\n\n  bl \u003croom_id\u003e \u003cmessage\u003e            # send danmaku (requires cookie)\n\n  bl get \u003croom_id\u003e                  # get stream url\n     --json                         # print them in json\n\n  bl feed                           # get feed list (requires cookie)\n     --json                         # print them in json\n\n  bl d \u003croom_id\u003e [--interval=1]     # dd mode\n     --interval=\u003cminutes\u003e           # set 0 to disable polling\n     --mpv                          # open in mpv instead\n     --on-close=\u003cbehavior\u003e          # do something on window close\n                default             # restart player    (alias: --default)\n                ask                 # ask quality again (alias: --ask)\n                quit                # quit DD mode      (alias: --quit)\n     -- [...player_args]            # pass args to ffplay or mpv\n```\n\n## Develop\n\nPR \u0026 issues are welcome!\n\n## Credits\n\n- [blivedm](https://github.com/xfgryujk/blivedm)\n- [bilibili-live-ws](https://github.com/simon300000/bilibili-live-ws)\n- [Bilibili-Live-API](https://github.com/lovelyyoshino/Bilibili-Live-API)\n- [bilibili-live-stream](https://github.com/ikexing-cn/bilibili-live-stream)\n\n## License\n\nMIT @ [hyrious](https://github.com/hyrious)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyrious%2Fblivec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyrious%2Fblivec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyrious%2Fblivec/lists"}