# huangxd-/danmu_api

一个人人都能部署的基于 js 的弹幕 API 服务器，支持爱优腾芒哔咪人韩巴狐乐西埋帆红弹幕直接获取，兼容弹弹play的搜索、详情查询和弹幕获取接口规范，并提供日志记录，支持vercel/netlify/edgeone/cloudflare/docker/hf等部署方式，不用提前下载弹幕，没有nas或小鸡也能一键部署。

Repository: https://github.com/huangxd-/danmu_api
Canonical: https://ross.abutalabs.com/products/danmu_api
Homepage: https://bks.indevs.in
Language: JavaScript
License: AGPL-3.0
License Family: copyleft
Topics: anime, api, danmu, danmuku, server, dandanplay
Last push: 2026-08-25T15:02:47+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 25
- inputs: {"age_days": 358, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3036, forks 2902 (observed 2026-08-28T04:07:39.116689+00:00)

## What it is
A JavaScript-based danmaku (bullet comment) API server that aggregates danmu from major Chinese and international video platforms (Bilibili, iQiyi, Tencent Video, Youku, Mango TV, Bahamut, and more). It is compatible with the dandanplay API specification for search, detail, and comment fetching, and can be deployed to Vercel, Netlify, EdgeOne, Cloudflare, Docker, Hugging Face, or run locally.

## Use cases
- serve danmaku comments to media players like Emby or FongMi
- search anime episodes by keyword and fetch bullet comments
- auto-match video filenames like 'Show.S01E01' to the right episode's danmu
- self-host a dandanplay-compatible danmu API without a NAS
- aggregate danmu from multiple streaming sites into one endpoint
- deploy a danmu server on Vercel, Cloudflare Workers, or Docker
- get danmu by video URL directly for third-party player integration

## When to choose
- you want a self-hosted, dandanplay-compatible danmu API with many deployment options
- you use Emby, FongMi, or other players that accept a custom danmu server URL
- you need automatic episode matching from file names including multi-season handling
- you want caching (memory/file/Redis) and admin configuration out of the box

## When to avoid
- you need official or licensed danmu data with guaranteed availability
- you require a language other than JavaScript/Node.js runtime
- you cannot access the upstream video platforms from your network
- you need a fully managed SaaS rather than a self-deployed service

## Facets
- artifact type: service
- maturity: active
- function: api-framework, http-server, search-engine, caching, logging, middleware
- domain: media, apis, self-hosted, web-development
- platform: self-hosted, cloud, serverless, cross-platform
- tags: danmaku, danmu, dandanplay-compatible, anime, video-streaming, emby, fongmi, vercel, cloudflare-workers, netlify, edgeone, hugging-face-spaces, agpl, automation, nodejs, docker, web-server, android

## Member repositories
- huangxd-/danmu_api (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:39.116689+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:29:36.591366+00:00, confidence not recorded.
  - readme: https://github.com/huangxd-/danmu_api (fetched 2026-08-28T04:07:39.116689+00:00, sha f8e26f933fa8)
  - homepage: https://bks.indevs.in (fetched 2026-08-29T09:44:55.439526+00:00, sha e12d31435f97)
  - site_page: https://bks.indevs.in/faq (fetched 2026-08-29T09:44:55.442330+00:00, sha a1a75d27f709)
- Data as of 2026-08-30T08:39:29.467469+00:00.
