@rexnow/danmu-universal 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,87 @@
1
+ # 通用弹幕插件 (Danmu Universal)
2
+
3
+ [![NPM Version](https://img.shields.io/npm/v/@rexnow/danmu-universal)](https://www.npmjs.com/package/@rexnow/danmu-universal)
4
+ [![License](https://img.shields.io/npm/l/@rexnow/danmu-universal)](https://github.com/baranwang/rex-widget)
5
+
6
+ 一个通用的弹幕聚合插件,支持从多个主流视频平台获取弹幕数据,为 Rex 生态系统提供跨平台的弹幕服务
7
+
8
+ ## 支持的平台
9
+
10
+ - [x] 腾讯视频
11
+ - [x] 优酷视频
12
+ - [x] 爱奇艺
13
+ - [x] 哔哩哔哩
14
+ - [x] 人人视频
15
+ - [x] 芒果 TV
16
+
17
+
18
+ ## 安装使用
19
+
20
+ ### 一键安装
21
+
22
+ [![Rex Widget](https://img.shields.io/badge/dynamic/json?url=http%3A%2F%2Funpkg.com%2F%40rexnow%2Fdanmu-universal%2Fpackage.json&query=%24.version&prefix=%E9%80%9A%E7%94%A8%E5%BC%B9%E5%B9%95%20v&style=flat-square&label=Rex%20Widget&labelColor=black)](https://gocy.pages.dev/#forward://widget?url=https%3A%2F%2Funpkg.com%2F%40rexnow%2Fdanmu-universal)
23
+
24
+ ### 手动安装
25
+
26
+ 在 Rex Widget 的模块管理中导入以下URL:
27
+
28
+ #### 完整版
29
+
30
+ ```
31
+ https://unpkg.com/@rexnow/danmu-universal
32
+ ```
33
+
34
+ #### 精简版
35
+
36
+ ```
37
+ https://unpkg.com/@rexnow/danmu-universal/lite
38
+ ```
39
+
40
+ ## 开发
41
+
42
+ 项目自豪的使用 [rex-widget-libs](https://github.com/baranwang/rex-widget-libs) 开发工具链
43
+
44
+ 欢迎社区贡献,如果你想为项目做出贡献可按照以下流程:
45
+
46
+ ### 环境要求
47
+
48
+ - Node.js >= 24
49
+ - pnpm >= 9
50
+
51
+ ### 安装依赖
52
+
53
+ 仓库根目录
54
+
55
+ ```bash
56
+ pnpm install
57
+ ```
58
+
59
+ ### 开发模式
60
+
61
+ 项目目录
62
+
63
+ ```bash
64
+ pnpm dev
65
+ ```
66
+
67
+ ### 构建
68
+
69
+ ```bash
70
+ pnpm build
71
+ ```
72
+
73
+ ### 测试
74
+
75
+ 本地测试需要用到 TMDB 的 API,参考 `.env.example` 创建 `.env` 文件,令牌需要到 [TMDB](https://www.themoviedb.org/settings/api) 获取
76
+
77
+ ```bash
78
+ pnpm test
79
+ ```
80
+
81
+ ### 提交
82
+
83
+ 在仓库根目录执行 `pnpm changeset` 创建 changeset 文件,同时使用标准的 Conventional Commits 提交代码
84
+
85
+ ## 鸣谢
86
+
87
+ - [misaka_danmu_server](https://github.com/l429609201/misaka_danmu_server)