Skip to content
PluginStats

@fulgurjs/federation weekly downloads statistics

By fulgurjs · npm · Vite plugins

Vite Module Federation for Vue and React: remote modules, shared dependencies and app bridges.

View on npm Stale · Oct 18, 2026

@fulgurjs/federation has 3,161 recorded weekly downloads on npm, ranking #1253 of 2,391 tracked listings.

Weekly downloads
3,161
Official API · Oct 18, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1253
Among tracked npm listings

About @fulgurjs/federation

@fulgurjs/federation

让一个 Vite 应用使用另一个应用提供的组件、页面、函数或完整子应用。

例如:主系统加载独立部署的审批页面,Vue 页面中嵌入 React 子应用,多个应用共享同一套依赖版本。提供方与使用方可以分仓库开发、独立构建部署。支持 Vue 3 与 React 18/19,Vite 5.1–8。

English | 完整文档中心(中文 docs/zh · English docs/en)

第一次接入完整应用,从一条完整接入流程开始;统一装配与预检参考已有应用接入。

已有工程可先用 fulgurjs init --plan 预览接线,审查后再用 --write;复杂业务装配会明确列出人工待办。统一 /vue、/react 入口支持按使用裁剪,不需要改用内部路径。

快速开始

新建工程(推荐):用 CLI 从完整模板创建可独立运行的联邦工程:

npx @fulgurjs/federation create vue-vue --dir my-federation
cd my-federation
pnpm dev

已有工程接入:安装后在 vite.config.ts 注册插件,应用代码按框架从统一入口导入:

npm add @fulgurjs/federation
// vite.config.ts —— 构建配置用包根
import federation from '@fulgurjs/federation'

export default {
  plugins: [
    // Keep the existing framework plugins.
    federation({
      name: 'host',
      remotes: { 'remote-a': { dev: 'http://localhost:5174', prod: '/remote-a' } },
      shared: { vue: { singleton: true } },
    }),
  ],
}
// Vue 应用代码统一入口 @fulgurjs/federation/vue
import { loadRemote, remoteComponent } from '@fulgurjs/federation/vue'
const RemoteButton = remoteComponent('remote-a/Button')
const math = await loadRemote('remote-a/math')
// React 应用代码统一入口 @fulgurjs/federation/react
import { remoteComponent, useLoadRemote, RemoteErrorBoundary } from '@fulgurjs/federation/react'
// 框架无关的浏览器模块 @fulgurjs/federation/runtime(零 Vue/React 依赖)
import { loadRemote, loadShare } from '@fulgurjs/federation/runtime'

上面配置是已有 Vue 消费方的接线示意,保留原 Vite/Vue 插件和业务配置;remote-a 必须真实暴露 ./Button、./math,并在开发地址启动或生产路径部署。地址按实际 base 替换。React 消费方使用自己的框架 shared 配置与 /react API;跨框架 UI 使用完整应用桥接,不把另一框架组件直接交给 remoteComponent。需要整套可运行工程时直接使用上方 create。

导入入口

使用位置入口
Vite 配置、FederationOptions 类型@fulgurjs/federation
Vue 应用代码(组件/页面/桥接/路由同步)@fulgurjs/federation/vue
React 应用代码(组件/页面/桥接/路由同步)@fulgurjs/federation/react
框架无关浏览器模块@fulgurjs/federation/runtime

记忆口诀:应用跑什么框架,就从哪个框架入口导入;两者都要用的纯 TS 模块从 /runtime;Vite 配置从包根。

能力地图

  • 组件与模块:remoteComponent(Vue/React)、useLoadRemote、RemoteErrorBoundary、loadRemote —— 失败显式错误态可重试,不静默兜底。
  • 逐页接入:definePages + createHostPages(宿主页面路由表 → 远程页面),CLI check-pages 启动期契约核对。
  • 完整子应用桥接:defineApplication(独立/嵌入共用装配;自定义契约可用 defineBridgeApp)+ createVueBridgeApp / createReactBridgeApp(宿主);挂载/卸载、会话代次、卸载失败封锁。
  • URL 同步:createVueBridgeNavigation / createReactBridgeNavigation(宿主)+ Vue 工厂返回 { app, router } / createReactBridgeRouter(子应用);深链刷新、守卫取消、query/hash 保留。
  • 共享依赖:singleton / requiredVersion / strictVersion / shareScope / eager,同步与异步裁决,React 18/19 多版本隔离。
  • 远程类型:提供方随构建产出可分发声明(SFC 真实 props/泛型/重载),宿主 dev 自动同步——普通 import 与 loadRemote/remoteComponent/桥接工厂共用一套类型,拼错入口编译期报错;CLI types 供 CI 在 typecheck 前同步校验。
  • CLI:create / init / explain / types / check-pages / doctor / port。

文档

需求入口
系统架构 / 执行顺序系统架构图
新建工程 / 已有项目接入快速开始
Vue/React 组件与普通模块组件与模块
完整子应用 / 跨框架嵌套子应用桥接
路由同步 / 刷新深链URL 同步
全部配置项与默认值配置参考
全部 API 签名与语义API 参考
CLI 命令与退出码CLI 参考
错误码(现象/原因/修法)错误码总表
按症状排错 / 兼容范围排错
模板与示例运行示例总览

示例

五个完整模板(vue-vue / react-react / vue-host-react-remote / react-host-vue-remote / showcase)与功能 Demo 统一维护在 examples/,均可整目录复制后独立安装运行。

贡献与安全

License

MIT

Description from the npm listing.

  • vite
  • module-federation
  • federation
  • micro-frontend
  • vite-plugin
  • webpack-federation

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@fulgurjs/federation weekly downloads on npm, last 90 days: 3,161 weekly downloads as of Oct 18, 2026.@fulgurjs/federationWeekly downloads on npm · Last 90 days3,161downloads / week2.8K2.9K3K3.1K3.2K3.3K3.4K3.5KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 18, 2026pluginstats.com
@fulgurjs/federation weekly downloads on npm, last 90 days: 3,161 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

@fulgurjs/federation weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.@fulgurjs/federationWeekly downloads growth on npm3,161downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@fulgurjs/federation weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@fulgurjs/federation npm ranking history: currently #1253 (by weekly downloads).@fulgurjs/federationnpm ranking · by weekly downloads · Last 90 days#1253current rank#1251#1252#1253#1254#1255Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 21, 2026 – Oct 21, 2026 · 1 observations · Updated Oct 18, 2026pluginstats.com
@fulgurjs/federation npm ranking history: currently #1253 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,196 shown · page 64, #4 (overall #1,264)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins257 listings · 13 pages · page 12, #14 (overall #234)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (1)
Recent weekly downloads observations for @fulgurjs/federation
Date (UTC)Weekly downloadsChange vs. previous
3,161—

Similar npm Vite plugins plugins

All 20 @fulgurjs/federation alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@fulgurjs/federation. First seen Oct 21, 2026; last successful collection Oct 21, 2026. See the methodology.