@edurocks-group/loader

中文文档
0.5.1发布于 2026/08/23AGPL-3.0-onlyTypeScriptES Module零依赖近 30 天下载 7861

YuriRTC browser client and service worker transport. The package name is retained for deployed-client compatibility.

原始使用文档

YuriRTC browser transport

This package is YuriRTC's browser client and service worker. Its npm name is a distribution coordinate and stays unchanged across releases so existing bucket pages and installed workers continue to update.

The published package contains only obfuscated browser bundles, a self-contained type declaration, and the ROT13 display font. Readable TypeScript lives in the YuriRTC source repository. Obfuscation is a distribution deterrent, not a security boundary.

New TypeScript consumers should use YuriRTCClient and YuriRTCConfig. LoaderClient and LoaderConfig remain compatibility aliases for existing integrations.

The loader implements YuriRTC wire protocol v3. It keeps one interactive channel open, opens three asset channels only while needed, uses 128 KiB frames, streams Fetch request bodies through transferable streams, and bounds both directions with consumption-driven credits. A loader that changes the wire version must be published only after a compatible content node is deployed.

When a restarted worker discovers several controlled tabs, the first completed attachment becomes the carrier and later responders remain live standbys. Wake discovery never crosses into pages still controlled by a predecessor worker, so an in-place upgrade cannot cancel that older worker's valid transfers.

The font in dist/assets/rot13.woff is derived from Google Sans and is licensed under the SIL Open Font License 1.1; its license text is shipped beside it as dist/assets/OFL.txt.

“Google” and “Google Sans” are trademarks of Google LLC. The font is exposed to the shell under the distinct CSS family name YuriRTCDisplay; this project is not endorsed by Google LLC.

版本与发布记录

@edurocks-group/loader 共发布 36 个版本,首次发布于 2026/08/01;过去 12 个月发布了 36 个版本。

版本发布日期距今
0.5.1latest2026/08/232 个月前
0.5.02026/08/212 个月前
0.4.72026/08/182 个月前
0.4.62026/08/182 个月前
0.4.52026/08/162 个月前
0.4.42026/08/162 个月前

关于 @edurocks-group/loader 的常见问题

@edurocks-group/loader 是什么?

YuriRTC browser client and service worker transport. The package name is retained for deployed-client compatibility.

如何安装 @edurocks-group/loader?

在项目目录运行 npm install @edurocks-group/loader,或使用 pnpm add / yarn add / bun add。

@edurocks-group/loader 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@edurocks-group/loader 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@edurocks-group/loader 可以商用吗?

@edurocks-group/loader 使用 AGPL-3.0-only 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@edurocks-group/loader 的下载量有多少?

根据 npm 官方下载统计,@edurocks-group/loader 在 2026/10/13 – 2026/11/11 这 30 天内被下载 7,861 次,日均约 262 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@edurocks-group/loader 还在维护吗?

最新版本 0.5.1 发布于 2026/08/23(2 个月前);至今共发布 36 个版本,其中过去 12 个月发布了 36 个;首次发布于 2026/08/01。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。