# Module Federation

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications

Repository: https://github.com/module-federation/core
Canonical: https://ross.abutalabs.com/products/module-federation
Homepage: https://module-federation.io/
Language: JavaScript
License: MIT
License Family: permissive
Topics: module-federation, nextjs, react, webpack, node, typescript
Last push: 2026-08-26T13:48:10+00:00
Link (homepage): https://module-federation.io/
Link (site_page): https://module-federation.io/integrations/index.html
Link (site_page): https://module-federation.io/integrations/build-tool/rsbuild.html
Link (site_page): https://module-federation.io/integrations/build-tool/rslib.html
Link (site_page): https://module-federation.io/integrations/build-tool/rstest.html

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 2139, "days_push": 7, "days_rel": 9, "gap_med": 6.0, "n_releases_24m": 95}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2624, forks 430 (observed 2026-08-28T04:07:05.204758+00:00)

## What it is
Module Federation is a JavaScript architecture and build-plugin ecosystem that lets independently built and deployed applications share code and load remote modules at runtime, enabling micro-frontend setups. This repository provides official examples demonstrating federation with Webpack, Rspack, Vite, Rsbuild, Next.js, Angular, and React Native.

## Use cases
- split a large frontend into independently deployed micro-frontends
- share React components between multiple web apps at runtime
- load remote modules dynamically without redeploying the host app
- share dependencies between federated applications to avoid duplicate bundles
- set up module federation with Vite, Rspack, or Webpack
- build a React Native app with federated modules via Metro
- split a monolith frontend across multiple teams

## When to choose
- you need runtime code sharing between separately deployed JavaScript applications
- you are adopting a micro-frontend architecture across teams
- you want official, maintained examples and plugins for Webpack, Rspack, Vite, Rsbuild, Next.js, or Angular

## When to avoid
- you have a single small frontend app with no need for cross-app code sharing
- your team cannot handle the operational complexity of independently deployed modules
- you rely on custom Metro configurations for React Native federation, which is still experimental

## Facets
- artifact type: framework
- maturity: active
- function: build-tool, plugin-system, frontend-framework, developer-tools
- domain: frontend, web-development, microservices
- platform: cross-platform
- tags: module-federation, micro-frontends, webpack, rspack, vite, code-sharing, runtime-module-loading, nextjs, react-native, javascript, nodejs, web-server

## Member repositories
- module-federation/core (main) score 95
- module-federation/module-federation-examples (examples) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:05.204758+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:47:33.787269+00:00, confidence not recorded.
  - readme: https://github.com/module-federation/core (fetched 2026-08-28T04:07:05.204758+00:00, sha 4ebbc1d79ee2)
  - homepage: https://module-federation.io/ (fetched 2026-08-29T08:45:04.463455+00:00, sha 344ed05b5534)
  - site_page: https://module-federation.io/integrations/index.html (fetched 2026-08-29T08:45:04.466493+00:00, sha 781ebc6b949b)
  - site_page: https://module-federation.io/integrations/build-tool/rsbuild.html (fetched 2026-08-29T08:45:04.468759+00:00, sha 8b73021fce69)
  - site_page: https://module-federation.io/integrations/build-tool/rslib.html (fetched 2026-08-29T08:45:04.471158+00:00, sha 0bef99a8a8f3)
  - site_page: https://module-federation.io/integrations/build-tool/rstest.html (fetched 2026-08-29T08:45:04.473336+00:00, sha 4d44fea05aab)
  - site_page: https://module-federation.io/integrations/build-tool/vite.html (fetched 2026-08-29T08:45:04.475742+00:00, sha bf6721326e3c)
  - site_page: https://module-federation.io/integrations/bundler/rspack.html (fetched 2026-08-29T08:45:04.477714+00:00, sha 1fee690b8d94)
  - site_page: https://module-federation.io/integrations/bundler/webpack.html (fetched 2026-08-29T08:45:04.479394+00:00, sha 04088093cc1c)
  - site_page: https://module-federation.io/integrations/bundler/metro.html (fetched 2026-08-29T08:45:04.481377+00:00, sha 1027b338ad63)
- Data as of 2026-08-30T08:39:29.467469+00:00.
