@module-federation/vite weekly downloads statistics
By module-federation · npm · Vite plugins
Vite plugin for Module Federation
@module-federation/vite has 2,138,091 recorded weekly downloads on npm, an increase of 14.3% over the past 30 days, ranking #222 of 3,247 tracked listings.
About @module-federation/vite
Vite plugin for Module Federation
Vite and VoidZero recommend this plugin
<br /> <a href="https://github.com/sponsors/gioboa"> <img src="./docs/sponsors.png" alt="Sponsors" width="677" /> </a>Become a sponsor
Support this project on GitHub Sponsors
Reason why 🤔
Microservices nowadays is a well-known concept and maybe you are using it in your current company. Do you know that now you can apply similar ideas on the Frontend? With Module Federation you can load separately compiled and deployed code into a unique application. This plugin makes Module Federation work together with Vite.
Working implementations
Examples live in gioboa/module-federation-vite-examples:
| Example | Host | Remote | Framework |
|---|---|---|---|
| Alpine | alpine-host | alpine-remote | Alpine.js |
| Angular | angular-host | angular-remote | Angular |
| Astro | astro-host | astro-remote | Astro 7 |
| Ember | ember-host | ember-remote | Ember 7 |
| Lit | lit-host | lit-remote | Lit |
| Nuxt | nuxt-host | nuxt-remote | Nuxt 4 |
| Nx | host | remote | React + Nx |
| Preact | preact-host | preact-remote | Preact 10 |
| React | react-host | react-remote | React 19 |
| Solid | solid-host | solid-remote | Solid |
| Svelte | svelte-host | svelte-remote | Svelte 5 |
| TanStack | tanstack-host | tanstack-remote | TanStack Router + React 19 |
| Turborepo | host | remote | React + Turborepo |
| Vinext | vinext-host | vinext-remote | Vinext + Next 16 + React 19 |
| Vue | vue-host | vue-remote | Vue 3 |
Try this crazy example with all these bundlers together
<img src="./docs/multi-example.png"/> <p float="left"> <img src="./docs/vite.webp" width="150" /> <img src="./docs/webpack.webp" width="160" /> <img src="./docs/rspack.webp" width="200" /> </p>pnpm install
pnpm run build
pnpm run multi-example
Getting started 🚀
https://module-federation.io/integrations/build-tool/vite
With @module-federation/vite, the process becomes delightfully simple, you will only find the differences from a normal Vite configuration.
This example is with Vue.js</br> The @module-federation/vite configuration remains the same for different frameworks.
Migrating from OriginJS
Migrating from @originjs/vite-plugin-federation requires an explicit remote-entry format and runtime review, particularly for dynamic remotes, shared dependencies, and mixed bundlers. See the OriginJS migration guide for step-by-step migration and incremental deployment guidance.
Dedicated configuration file
You can keep Module Federation options in module-federation.config.ts.
import { createModuleFederationConfig } from "@module-federation/vite";
export default createModuleFederationConfig({
name: "remote",
filename: "remoteEntry.js",
exposes: {
"./remote-app": "./src/App.vue",
},
shared: ["vue"],
});
import { defineConfig } from "vite";
import { federation } from "@module-federation/vite";
import moduleFederationConfig from "./module-federation.config";
export default defineConfig({
plugins: [federation(moduleFederationConfig)],
});
The Remote Application configuration
file: remote/vite.config.ts
import { defineConfig } from 'vite';
import { federation } from '@module-federation/vite'; 👈…
Description from the npm listing.
- vite
- vite-plugin
- module federation
- microfrontend
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (170)Similar npm Vite plugins plugins
All 20 @module-federation/vite alternativesData 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/@module-federation/vite. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.