{"id":13754742,"url":"https://github.com/wspl/DanmakuChi-Server-Node","last_synced_at":"2025-05-10T00:31:09.587Z","repository":{"id":83992940,"uuid":"44431852","full_name":"wspl/DanmakuChi-Server-Node","owner":"wspl","description":":icecream: Desktop danmaku handler server side.","archived":false,"fork":false,"pushed_at":"2015-10-29T14:13:45.000Z","size":535,"stargazers_count":86,"open_issues_count":0,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T18:50:18.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wspl.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}},"created_at":"2015-10-17T09:51:53.000Z","updated_at":"2025-01-03T16:15:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"b83fd966-094b-4b65-8b68-d3ead48eaf5f","html_url":"https://github.com/wspl/DanmakuChi-Server-Node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wspl%2FDanmakuChi-Server-Node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wspl%2FDanmakuChi-Server-Node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wspl%2FDanmakuChi-Server-Node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wspl%2FDanmakuChi-Server-Node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wspl","download_url":"https://codeload.github.com/wspl/DanmakuChi-Server-Node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253346377,"owners_count":21894263,"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":[],"created_at":"2024-08-03T10:00:33.647Z","updated_at":"2025-05-10T00:31:09.180Z","avatar_url":"https://github.com/wspl.png","language":"JavaScript","funding_links":[],"categories":["Servers"],"sub_categories":["Misc / Desktop"],"readme":"# DanmakuChi-Server-Node\n弹幕姬服务器端 Node (node.js) 版本\n\n![微信号示例](https://raw.githubusercontent.com/wspl/DanmakuChi-Server-Node/master/attachments/wechat.png)\n\n## 介绍\n　　弹幕姬是一款「微信x桌面」弹幕系统，开发者可以通过轻松的绑定，在微信公众号与桌面弹幕之间建立交互关系。任何人都可以通过微信公众号创建自己专属的弹幕频道，任何用户都可以通过微信向客户端发送弹幕。\n\n　　其中，服务器端（Server End）负责微信的交互，以及微信与客户端的中转对接。通常的，服务端需要一台开放 80 端口的公网服务器来运行。目前已经开发了 [Node 版本](https://github.com/wspl/DanmakuChi-Server-Node)。\n\n　　客户端（Client End）负责与服务端的交互，进行弹幕的展示。目前已经开发了 [C# 版本](https://github.com/wspl/DanmakuChi-Client-CSharp)。\n\n\n## 特性\n- [x] 支持微信服务号绑定\n- [x] 支持微信订阅号绑定\n- [x] 多弹幕频道\n- [x] 单频道x多终端\n- [x] 通过微信二维码加入频道\n- [ ] 关键词过滤\n- [ ] 弹幕颜色设置\n- [ ] 弹幕位置设置\n- [ ] ~~高级弹幕（雾）~~ /w\\\n- [ ] 针对已验证服务号的更多功能\n\n## 使用姿势\n\n###部署\n**安装**\n```\n$ nvm use 4.2.1\n$ git clone https://github.com/wspl/DanmakuChi-Server-Node.git\n$ cd DanmakuChi-Server-Node\n$ npm install\n```\n然后你可以修改 `./src/Config.js`，进行个性化设置。\n\n**运行**\n```\n$ npm start\n```\n或者你可以通过 pm2 来以守护进程模式运行\n\n（提示：千万不要使用 `-i` 参数来开启负载均衡，否则 WebSocket 通信协议将失效！）\n```\n$ pm2 start ./\n```\n\n### 生成频道二维码\n\n[C# 客户端](https://github.com/wspl/DanmakuChi-Client-CSharp) 自带二维码生成器\n\n如果需要生成个性的二维码，推荐使用[草料二维码生成器](http://cli.im/)来生成频道二维码。\n\n二维码文本格式：\n\n`http://weixin.qq.com/r/\u003cqrcodeToken\u003e?dmk_channel=\u003cchannel\u003e`\n\n例如，「上师大弹幕姬」微信号中有个频道叫做 `Demo`，则二维码文本为：\n\n`http://weixin.qq.com/r/MjoCGobEsdvOrcJ5928g?dmk_channel=Demo`\n\n同时，这个二维码同样可以用于关注微信号。\n\n## 技术栈\n该 Node 版本的服务端中，涉及到的技术栈如下：\n* ECMAScript 6+\n* [Node 4.2.1](https://nodejs.org/en/)\n* [Express 4](https://github.com/strongloop/express)\n* [Babel](https://github.com/babel/babel)\n* WebSocket\n\n## Contributor\n* [Plutonist(wspl)](https://github.com/wspl)\n\n## License\nGNU GPL V3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwspl%2FDanmakuChi-Server-Node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwspl%2FDanmakuChi-Server-Node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwspl%2FDanmakuChi-Server-Node/lists"}