{"id":13431262,"url":"https://github.com/xfgryujk/blivechat","last_synced_at":"2026-02-08T16:07:15.643Z","repository":{"id":38432754,"uuid":"187993487","full_name":"xfgryujk/blivechat","owner":"xfgryujk","description":"用于OBS的仿YouTube风格的bilibili直播评论栏","archived":false,"fork":false,"pushed_at":"2026-02-01T09:56:04.000Z","size":9198,"stargazers_count":2581,"open_issues_count":2,"forks_count":266,"subscribers_count":17,"default_branch":"dev","last_synced_at":"2026-02-01T19:15:27.136Z","etag":null,"topics":["bilibili","bilibili-live","obs-studio"],"latest_commit_sha":null,"homepage":"https://blive.chat","language":"JavaScript","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/xfgryujk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-05-22T08:13:21.000Z","updated_at":"2026-02-01T14:15:44.000Z","dependencies_parsed_at":"2023-10-14T14:25:15.901Z","dependency_job_id":"215706b9-06e0-41ee-a589-be753a821da9","html_url":"https://github.com/xfgryujk/blivechat","commit_stats":{"total_commits":434,"total_committers":11,"mean_commits":39.45454545454545,"dds":0.07834101382488479,"last_synced_commit":"45db27d3c7c200762335d66b30ce6409d551b4a8"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/xfgryujk/blivechat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgryujk%2Fblivechat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgryujk%2Fblivechat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgryujk%2Fblivechat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgryujk%2Fblivechat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xfgryujk","download_url":"https://codeload.github.com/xfgryujk/blivechat/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgryujk%2Fblivechat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29236193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","obs-studio"],"created_at":"2024-07-31T02:01:01.765Z","updated_at":"2026-02-08T16:07:15.627Z","avatar_url":"https://github.com/xfgryujk.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","直播相关工具"],"sub_categories":["直播脚本"],"readme":"# blivechat\n\n用于OBS的仿YouTube风格的bilibili直播评论栏\n\n![OBS截图](./screenshots/obs.png)\n\n![Chrome截图](./screenshots/chrome.png)\n\n![样式生成器截图](./screenshots/stylegen.png)\n\n## 特性\n\n* 兼容YouTube直播评论栏的样式\n* 高亮舰队、房管、主播的用户名\n* 自带两种样式生成器，经典YouTube风格和仿微信风格\n* 支持屏蔽弹幕、合并礼物等设置\n* 支持前端直连B站服务器或者通过后端转发\n* 支持自动翻译弹幕、醒目留言到日语，可以在后台配置翻译目标语言\n* 支持标注打赏用户名的读音，可选拼音或日文假名\n* 支持配置自定义表情，不需要开通B站官方表情\n* 支持[自定义HTML模板](https://github.com/xfgryujk/blivechat/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89HTML%E6%A8%A1%E6%9D%BF)\n* 支持[插件开发](https://github.com/xfgryujk/blivechat/wiki/%E6%8F%92%E4%BB%B6%E7%B3%BB%E7%BB%9F)\n\n## 使用方法\n\n以下几种方式任选一种即可。**正式使用之前记得看[注意事项](https://github.com/xfgryujk/blivechat/wiki/%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9%E5%92%8C%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)**\n\n推荐的方式：如果你需要使用插件、翻译等高级特性，则在本地使用；否则推荐直接通过公共服务器在线使用。因为本地使用时不会自动升级版本，有时候出了问题不能及时解决；但在线使用时会禁用部分高级特性，如果你有需要，只能本地使用了\n\n### 一、在线使用\n\n1. 这些是作者维护的公共服务器，根据情况随便选一个，直接用浏览器打开\n\n    * [blive.chat](https://blive.chat/)：自动节点，一般等于cn.blive.chat，如果不可用了会进行切换，但切换需要一段时间\n    * [cn.blive.chat](https://cn.blive.chat/)：墙内专用节点，不容易被墙，但如果受到攻击会变得不可用\n    * [cloudflare.blive.chat](https://cloudflare.blive.chat/)：Cloudflare美国节点，不容易被攻击，但容易被墙\n    * [vercel.blive.chat](https://vercel.blive.chat/)：Vercel美国节点，不容易被攻击，但容易被墙\n\n2. 输入主播在开始直播时获得的身份码，复制房间URL\n3. 用样式生成器生成样式，复制CSS\n4. 在OBS中添加浏览器源，输入URL和自定义CSS\n\n### 二、本地使用\n\n1. 下载[本地分发版](https://github.com/xfgryujk/blivechat/releases)（仅提供x64 Windows版）。也可以在[B站商店](https://play-live.bilibili.com/details/1694397161340)下载\n2. 双击`blivechat.exe`（或者`start.exe`）运行服务器\n3. 用浏览器打开[http://localhost:12450](http://localhost:12450)，剩下的步骤和在线使用时是一样的\n\n### 三、从源码运行\n\n此方式适用于自建服务器或者在Windows以外的平台运行\n\n0. 由于使用了git子模块，clone时需要加上`--recursive`参数：\n\n    ```sh\n    git clone --recursive https://github.com/xfgryujk/blivechat.git\n    ```\n\n    如果已经clone，拉子模块的方法：\n\n    ```sh\n    git submodule update --init --recursive\n    ```\n\n1. 编译前端（需要安装Node.js）：\n\n    ```sh\n    cd frontend\n    npm i\n    npm run build\n    ```\n\n2. 安装服务器依赖（需要Python 3.12以上版本）：\n\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n3. 运行服务器：\n\n    ```sh\n    python main.py\n    ```\n\n    或者可以指定host和端口号：\n\n    ```sh\n    python main.py --host 127.0.0.1 --port 12450\n    ```\n\n4. 用浏览器打开[http://localhost:12450](http://localhost:12450)，以下略\n\n### 四、Docker\n\n此方式适用于自建服务器。示例的运行参数只是最基本的，可以根据需要修改\n\n1.  ```sh\n    docker run --name blivechat -d -p 12450:12450 \\\n      --mount source=blivechat-data,target=/mnt/data \\\n      xfgryujk/blivechat:latest\n    ```\n\n2. 用浏览器打开[http://localhost:12450](http://localhost:12450)，以下略\n\n## 服务器配置\n\n服务器配置文件在`data/config.ini`，可以配置数据库和允许自动翻译等，编辑后要重启生效\n\n**自建服务器时注意要删除loader_url配置**，否则加载不了房间页面\n\n## 常用链接\n\n* [文档](https://github.com/xfgryujk/blivechat/wiki)\n* [交流社区](https://github.com/xfgryujk/blivechat/discussions)\n* [B站商店](https://play-live.bilibili.com/details/1694397161340)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxfgryujk%2Fblivechat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxfgryujk%2Fblivechat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxfgryujk%2Fblivechat/lists"}