qiuranqaq/douyulive-danmu-merge — explained in plain English
Analysis updated 2026-05-18
Watch a Douyu live room's chat comments in a cleaner web page instead of the native site.
Deploy the chat viewer as a single file on Cloudflare Workers or Pages with no server setup.
Use the transparent, scrollbar-free display mode as an OBS browser source overlay while streaming.
Automatically merge repeated spam comments and pin the most popular ones to the top.
| qiuranqaq/douyulive-danmu-merge | abdulrdeveloper/chai-aur-react | anasnakawa/kalendae-skins | |
|---|---|---|---|
| Stars | 14 | 14 | 14 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | — | — | 2013-12-07 |
| Maintenance | — | — | Dormant |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 1/5 | 1/5 |
| Audience | vibe coder | vibe coder | developer |
Figures from each repo's GitHub metadata at analysis time.
Deploys as a single JavaScript file via the Cloudflare dashboard, Pages upload, or Wrangler CLI.
This project is a web-based helper for watching live chat comments, called danmu, from Douyu, a Chinese live streaming platform. It is built to deploy as a single file on Cloudflare Workers or Cloudflare Pages, so setting it up does not require running a traditional server. Once deployed, it gives a viewer a webpage that connects directly to a Douyu live room and shows the chat comments in a cleaner, more readable format, along with a display mode meant to be used as an overlay in OBS for people who are streaming. The browser connects straight to Douyu's own chat server over a WebSocket connection, so the Cloudflare Worker itself only serves the static webpage and does not relay or store any chat traffic, keeping it cheap to run. A key feature is automatic merging of repeated spam-style comments: when many viewers post the same or similar text in a short time window, the tool groups them into a single combined entry with a badge showing how popular that comment is, and comments repeated more than ten times get pinned to the top of the screen so they are not missed. The tool also includes optional text to speech playback of comments and gifts, a way to look up a commenter's past messages by clicking their name, and adjustable settings like background transparency, font size, and how many messages to keep on screen at once, which helps keep things smooth on slower devices. Configuration includes toggles for showing normal comments, gift and subscription events, and viewer join notifications, plus a filter for automated bot comments that carry no user identity information. A room can be opened automatically by adding its room number to the page's web address, which is convenient for setting up a fixed OBS browser source. The chat parsing logic builds on an earlier open source project called douyuEx. It is released under the MIT license, with a note asking that it only be used for normal viewing, chat analysis, and research rather than spam or actions that violate Douyu's own platform rules.
A single-file Cloudflare Worker that displays Douyu live chat comments in a cleaner view, merging repeated spam comments and supporting OBS overlays.
Mainly JavaScript. The stack also includes JavaScript, Cloudflare Workers, WebSocket.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice, not to be used for spam or platform rule violations.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly vibe coder.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.