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

@fan-scripts/fe-runtime

v1.0.15

Published

LowCode runtime frontend (Module Federation remote) for host integration

Readme

@fan-scripts/fe-runtime

低代码 运行时 前端(Module Federation Remote),供主应用通过 remoteEntry.js 加载。

本地开发

pnpm --filter @fan-scripts/fe-runtime run dev

发布到 npm(含静态资源,供 jsDelivr / unpkg)

  1. 对齐版本号:编辑本目录 package.jsonversion(与 jsDelivr 路径中的版本一致)。

  2. 从 monorepo 根目录发布(推荐,脚本会带上正确的 FE_RUNTIME_REMOTE_PUBLIC_PATH 再执行 pnpm publish):

    pnpm publish:fe-runtime

    或直接:

    pnpm publish --filter @fan-scripts/fe-runtime --access public

    上述任一方式在真正发包前都会触发本包 prepublishOnly → 执行 scripts/npm-prepublish.mjs:按 name@version 自动生成

    https://cdn.jsdelivr.net/npm/<name>@<version>/dist/

    在子进程环境里强制设置 FE_RUNTIME_REMOTE_PUBLIC_PATH 后跑 pnpm run build,因此 不必 再手工 export(若环境里已有旧版本 URL,脚本会告警并仍以当前 package.json 为准)。

  3. 主应用 remoteEntry 示例:

    https://cdn.jsdelivr.net/npm/@fan-scripts/fe-runtime@<版本>/dist/remoteEntry.js

说明:在 npmjs 上公开发布需 --access public(已在 publishConfig 中声明时可省略重复参数,以你使用的 pnpm/npm 版本为准)。若仅内网 Verdaccio,按私服文档登录即可。

环境变量

| 变量 | 用途 | |------|------| | FE_RUNTIME_REMOTE_PUBLIC_PATH | 生产 / 发布构建 时写入 Rsbuild output.assetPrefix,必须与 CDN 或 jsDelivr 上的 dist/ 公网 URL 前缀一致;本地开发可不设。 |

设计文档

见仓库 docs/implementation/2026-05-11-fe-runtime-container-mf/docs/implementation/2026-05-13-fe-runtime-remote-npm-cdn-demo/plan.mddocs/implementation/2026-05-14-fe-runtime-qiankun/integration-guide.md(含 qiankun 子应用入口与主应用注册示例)。

qiankun 子应用(与 MF 双轨)

  • 构建后使用 dist/qiankun.html 作为 qiankun 的 entry;本地联调示例://localhost:10001/qiankun.html
  • 生命周期源码目录:src/qiankun/
  • UMD 全局名:fan_scripts_fe_runtime(由 package.jsonname 规范化,详见 integration-guide §8)。
  • 单独打开 http://localhost:10001/qiankun.html:无 qiankun 宿主时,入口会在 #root 上自动执行一次 mount 便于冒烟;宿主嵌入时会带 __POWERED_BY_QIANKUN__,不会重复挂载。