项目 / module-federation/module-federation-examples

module-federation/module-federation-examples

行业推荐
语言 JavaScript标签 modulefederationmodule-federationexamplesdemofederation-dashboardfederatednextjsstream-federated数据更新 2026-11-24 06:50:13 · 仓库 2026-11-23

一段话介绍

由 Module Federation 相关作者维护的实现示例集,用来演示 Webpack 5 中 Module Federation 的用法。文档见 [module-federation.io](https://module-federation.io/),更完整的相关合集见 [Universe](https://github.com/module-federation/universe)。示例清单见仓库中的 [Full Examples List](https://github.com/module-federation/module-federation-examples/blob/master/output.md)。说明见[仓库 README](https://github.com/module-federation/module-federation-examples)。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Implementation examples of module federation , by the creators of module federation
6,145累计星
1,807Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

智能题库与自动阅卷

适配系统:考试系统、题库系统 · 得分 1.3

提供组卷、作答与自动评分链路,可嵌入考试系统降低教师批改成本。

BI 可视化与自助分析

适配系统:BI/报表平台、自助分析平台 · 得分 1.2

提供图表渲染与自助取数能力,可作为业务看板与经营管理分析的展示层。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
安装或使用说明见 https://github.com/module-federation/universe。
特点或设计要点
仓库使用 pnpm 和 workspaces。若从 git 检出后在本地运行,需先安装 pnpm,在仓库根目录执行 `pnpm i`,再进入非专有示例目录执行 `pnpm start`(部分示例的命令可能是 `dev` 或 `serve`)。源文写明可联邦的内容不限于 JavaScript 或 React,凡 Webpack 能处理的图片、CSS、JSON、WASM 等也可使用该机制。README 还提到 [Zephyr Cloud](https://zephyr-cloud.io) 可作为构建过程中的部署选项。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-07-08 · 语言 JavaScript · 贡献者 —
javascript

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 4,927 字节。

# Module Federation Examples

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

## Module Federation Universe

- Module federation enhances collections: [Universe](https://github.com/module-federation/universe)
- Module Federation Docs: [Module Federation Docs](https://module-federation.io/)

## List of Examples

Click here to see the detailed list of examples in this repo [Full Examples List](./output.md)

## Check out our book

| <a href="https://module-federation.myshopify.com/products/practical-module-federation" target="_blank"><img src="./docs/MFCover.png" alt='Practical Module Federation Book' width="95%"/></a> | <a href="https://module-federation.myshopify.com/products/practical-module-federation" target="_blank">We will be actively updating this book over the next year as we learn more about best practices and what issues people are running into with Module Federation, as well as with every release of Webpack as it moves towards a release candidate and release. So with your one purchase you are buying a whole year of updates.</a> |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

## Consultations

| <a href="https://calendly.com/scripted-alchemy/1-hr-group-consult" target="_blank">1 Hour group consultation</a> | \$100        |
| ---------------------------------------------------------------------------------------------------------------- | ------------ |
| <a href="https://calendly.com/scripted-alchemy/30-meeting-1-1" target="_blank">30 Min 1:1 consultation</a>       | \$60         |
| <a href="https://cb.run/WIVv" target="_blank">15 Min 1:1 consultation</a>                                        | \$30         |
| Bespoke API modifications and hands on code                                                                      | $300-$500/hr |

## Deploy with Zephyr Cloud

<img alt="Zephyr Cloud Logo" src=".github/static/zephyr.svg" height="250px" width="400px">

[Zephyr Cloud](https://zephyr-cloud.io) 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](https://zephyr-cloud.io).

## Notes

The examples in this repository leverage [pnpm](https://pnpm.io/) 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!

<img width="0" height="0" alt="" src="https://www.google-analytics.com/g/collect?v=2&tid=G-DRPXW0EEVT&cid=ae045149-9d17-0367-bbb0-11c41d92b411&en=readme_view&ep.repository=module-federation-examples&ep.example=root&ep.readme_path=README.md&dl=https%3A%2F%2Fgithub.com%2Fmodule-federation%2Fmodule-federation-examples%2Ftree%2Fmaster%2F&dt=ModuleFederationExamples+README.md">
↑