npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

artplayer-web-api

v26.8.8

Published

ArtPlayer danmaku video player with web admin panel - PoW firewall, rate limiting, multi-theme, subtitle support, multi-database storage

Readme

ArtPlayer Web API

ArtPlayer 弹幕视频播放器 + Web 管理后台

Node.js + Express + ArtPlayer 自托管弹幕视频播放系统,支持自研 Canvas 弹幕引擎、HLS/FLV 流媒体、API 限流与实时统计、PoW 防火墙、双主题系统、多字幕、文件管理、多数据库存储。

v26.8.8

📖 中文文档 · 📖 English Documentation · 🐳 Docker 部署

Quick Start

方式一:npm 安装(推荐)

npm install -g artplayer-web-api
artplayer-web-api                 # 全局命令
# 或无需安装直接运行
npx artplayer-web-api

方式二:Docker 镜像(Docker Hub / GHCR)

# Docker Hub
docker run -d --name artplayer-web-api -p 1919:1919 -v "$(pwd)/data:/app/data" yangyang8002/artplayer-web-api:latest

# GHCR(GitHub Container Registry)
docker run -d --name artplayer-web-api -p 1919:1919 -v "$(pwd)/data:/app/data" ghcr.io/yangyang8002/artplayer-web-api:latest

方式三:源码运行

git clone https://github.com/yangyang8002/Artplayer-Web-Api.git
cd Artplayer-Web-Api
npm install
npm start

| Page | URL | |---|---| | Player | http://localhost:1919/player/ | | Admin | http://localhost:1919/admin/ |

Default account: admin / admin123(首次登录后请立即修改密码)

中国用户加速

  • GitHub 加速(clone / 下载 / raw 通用):在原始 GitHub 链接前加 https://fast.fumor.top/

    git clone https://fast.fumor.top/https://github.com/yangyang8002/Artplayer-Web-Api.git
  • Docker Hub 镜像加速(南大源):将镜像前缀替换为 docker.nju.edu.cn/

    docker pull docker.nju.edu.cn/yangyang8002/artplayer-web-api:latest
  • GHCR 镜像加速(南大源):docker.nju.edu.cn/ghcr.io/ 前缀

    docker pull docker.nju.edu.cn/ghcr.io/yangyang8002/artplayer-web-api:latest

镜像已同时发布到 Docker Hub、GHCR 与 npm;国内拉取镜像建议使用上述南大源加速。

Features

  • 自研 Canvas 弹幕引擎:轨道调度、顶/底堆叠、密度/速度/透明度调节
  • DPlayer 兼容弹幕 API(/api/danmu/v3/
  • 服务端分配 8 位唯一视频 ID,自动继承旧散列 ID 历史弹幕
  • 多字幕自动检测(简/繁/日/英/韩…)与一键切换
  • API 独立开关 / RPS 限速 / 带宽控制,1 秒精度实时曲线(跨度 5 分钟 ~ 3 个月)
  • PoW 工作量证明防火墙、全局速率限制、登录限流
  • 播放器 + 后台双主题系统(各 10 套,支持自定义导入)
  • 管理后台:弹幕 / 视频 / 屏蔽词 / 文件 / 日志 / API 统计 / 数据库管理
  • 多数据库存储:JSON 文件(默认)/ SQLite / MySQL / MariaDB / PostgreSQL,任意互转、热切换自动迁移(弹幕、视频映射、屏蔽词、账号、IP 封禁白名单、登录记录、统计)

Documentation

License

MIT