Module Federation Examples is a collection of implementation examples for Webpack 5's Module Federation feature, created by the originators of module federation.
Module Federation enables developers to share code across independently built and deployed applications, solving the problem of code duplication and tight coupling in micro frontend architectures. The examples demonstrate how to use Webpack 5's native module federation capabilities to create federated applications where multiple applications can consume and expose modules at runtime.
Developers evaluating this repository should understand it serves as a reference implementation collection rather than a framework or tool to adopt directly. It suits teams already committed to module federation who need concrete patterns for implementation across different scenarios and frameworks. The examples use pnpm and workspaces for local development, and developers can run individual examples after installing dependencies and removing proprietary example directories.
The project maintains a comprehensive set of working examples across different frameworks and use cases. The repository includes detailed documentation of all examples in a structured list, and the maintainers actively update guidance materials including a published book on module federation best practices. The project provides direct consultation services and integrates with deployment infrastructure designed specifically for federated applications.