{"library":"bilibili-live-danmaku","type":"library","category":null,"description":"A TypeScript-friendly WebSocket client for Bilibili live danmaku (bullet comments) and room events. Version 0.7.16 supports Node.js and browser environments with ESM and CJS builds. Provides LiveWS and KeepLiveWS classes for connecting to Bilibili live rooms, automatically handling heartbeats, reconnection, and message parsing. It decodes zlib (protover=2) and brotli (protover=3) payloads, emits typed events for commands like DANMU_MSG, SEND_GIFT, and HEARTBEAT_REPLY. Compared to alternatives like bilibili-live-ws, this library modernizes the API using standard WebSocket and EventTarget patterns, includes TypeScript definitions, and supports custom auth for open-live.bilibili.com. Released under MIT license with monthlyish updates.","language":"javascript","status":"active","version":"0.7.16","tags":["javascript","bilibili","api","websocket","live","ws","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install bilibili-live-danmaku","imports":["import { LiveWS } from 'bilibili-live-danmaku'","import { KeepLiveWS } from 'bilibili-live-danmaku'","import { getLiveConfig } from 'bilibili-live-danmaku'"]},{"cmd":"yarn add bilibili-live-danmaku","imports":[]},{"cmd":"pnpm add bilibili-live-danmaku","imports":[]}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","github":"https://github.com/Minteea/bilibili-live-danmaku","docs":null,"changelog":null,"pypi":null,"npm":"bilibili-live-danmaku","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}