module-federation/module-federation-examples

Implementation examples of module federation , by the creators of module federation

JavaScript

6,142

3,023 commits

updated Jul 8, 2026

See the code

README

Module Federation Examples

This repository is to showcase examples of how Webpack 5's new Module Federation can be used.

Module Federation Universe

List of Examples

Click here to see the detailed list of examples in this repo Full Examples List

Check out our book

Consultations

1 Hour group consultation$100
30 Min 1:1 consultation$60
15 Min 1:1 consultation$30
Bespoke API modifications and hands on code$300-$500/hr

Deploy with Zephyr Cloud

Zephyr Cloud Logo

Zephyr Cloud is a cloud deployment provider that integrates directly into your build with zero config.

  • Automatically deploys your federated applications during the build process - simply save your code and get a URL in seconds.
  • Works with Webpack, Vite, Rspack, and more.
  • Deploy using BYOC to any cloud provider.
  • Manages complex multi-artifact deployments across different release cadences, handles micro frontend dependency management automatically, and provides version rollback and roll-forward capabilities.

Start for free today at zephyr-cloud.io.

Notes

The examples in this repository leverage pnpm and workspaces. To run from a git checkout locally, remove all of the proprietary example directories, ensure you have pnpm installed and run install pnpm i at the repo root. You can then run pnpm start from any of the non-proprietary examples. Some examples may use a different command such as "dev" or "serve".

Module federation will work with any type of file that you're able to import, that Webpack understands how to process. It is not a JS only, or React only feature. Images, CSS, JSON, WASM, and anything else can be federated.

Companies using Module Federation

  • Netflix
  • Auth0
  • Best Buy
  • SAP
  • AWS
  • SemRush
  • Ford Motor Company
  • JPMorgan Chase
  • Microsoft
  • Lululemon
  • Housing.com
  • VMware
  • Talkdesk
  • Cricket Wireless
  • Reddit
  • Bytedance
  • Rivian (in the cars themselves)
  • Realtor.com
  • FICO
  • Digital Ocean
  • Alibaba
  • Tencent
  • Wayfair
  • RingCentral
  • Indeed
  • Telia
  • Beamery
  • Amazon
  • Sony
  • Paypal
  • OVO Energy
  • MGM
  • Lowes
  • Home Depot
  • Epic Games
  • ExpediaGroup
  • Verizon
  • MindTickle
  • Experian
  • Herodevs
  • CloudFlare
  • Cisco
  • Business Insider
  • Box.com
  • AfterPay
  • OLX
  • Shopify
  • adidas
  • Zomato
  • SHIELD
  • PayNet (Payments Network Malaysia)
  • and many more I cant remember

Contribution to this repo

You decided to contribute to this project? Great, thanks a lot for pushing it!

demo
examples
federated
federation
federation-dashboard
module
module-federation
nextjs
stream-federated

module-federation/module-federation-examples

Implementation examples of module federation , by the creators of module federation

JavaScript

6,142

3,023 commits

updated Jul 8, 2026

See the code

README

Module Federation Examples

This repository is to showcase examples of how Webpack 5's new Module Federation can be used.

Module Federation Universe

List of Examples

Click here to see the detailed list of examples in this repo Full Examples List

Check out our book

Consultations

1 Hour group consultation$100
30 Min 1:1 consultation$60
15 Min 1:1 consultation$30
Bespoke API modifications and hands on code$300-$500/hr

Deploy with Zephyr Cloud

Zephyr Cloud Logo

Zephyr Cloud is a cloud deployment provider that integrates directly into your build with zero config.

  • Automatically deploys your federated applications during the build process - simply save your code and get a URL in seconds.
  • Works with Webpack, Vite, Rspack, and more.
  • Deploy using BYOC to any cloud provider.
  • Manages complex multi-artifact deployments across different release cadences, handles micro frontend dependency management automatically, and provides version rollback and roll-forward capabilities.

Start for free today at zephyr-cloud.io.

Notes

The examples in this repository leverage pnpm and workspaces. To run from a git checkout locally, remove all of the proprietary example directories, ensure you have pnpm installed and run install pnpm i at the repo root. You can then run pnpm start from any of the non-proprietary examples. Some examples may use a different command such as "dev" or "serve".

Module federation will work with any type of file that you're able to import, that Webpack understands how to process. It is not a JS only, or React only feature. Images, CSS, JSON, WASM, and anything else can be federated.

Companies using Module Federation

  • Netflix
  • Auth0
  • Best Buy
  • SAP
  • AWS
  • SemRush
  • Ford Motor Company
  • JPMorgan Chase
  • Microsoft
  • Lululemon
  • Housing.com
  • VMware
  • Talkdesk
  • Cricket Wireless
  • Reddit
  • Bytedance
  • Rivian (in the cars themselves)
  • Realtor.com
  • FICO
  • Digital Ocean
  • Alibaba
  • Tencent
  • Wayfair
  • RingCentral
  • Indeed
  • Telia
  • Beamery
  • Amazon
  • Sony
  • Paypal
  • OVO Energy
  • MGM
  • Lowes
  • Home Depot
  • Epic Games
  • ExpediaGroup
  • Verizon
  • MindTickle
  • Experian
  • Herodevs
  • CloudFlare
  • Cisco
  • Business Insider
  • Box.com
  • AfterPay
  • OLX
  • Shopify
  • adidas
  • Zomato
  • SHIELD
  • PayNet (Payments Network Malaysia)
  • and many more I cant remember

Contribution to this repo

You decided to contribute to this project? Great, thanks a lot for pushing it!

demo
examples
federated
federation
federation-dashboard
module
module-federation
nextjs
stream-federated

Project health

Overall

4.5/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Significant stargazers

(top 24 of 36)

James George

1,294 followers · starred Jun 2020

Dmitry Semigradsky

191 followers · starred Jun 2020

Anton Reshetov

335 followers · starred Oct 2022

Travis Van Nimwegen

426 followers · starred Jul 2024