How module-federation/module-federation-examples works
This repository is a catalog of Module Federation examples, not one application. Its principal demonstrated workflow is a user selecting a remote component in a host, which loads it at runtime and renders it with loading and failure handling. Other examples explore synchronous remote imports, cross-framework and component sharing, routing, and server-side rendering. The graph highlights these product branches and a few concrete internal stages. Evidence is limited to the README and sampled source/index references; unsampled example wiring is not inferred.
Main entry points: src/App.tsx Synchronous host · src/App.tsx Dynamic host · index-page.jsx Federated home · App.jsx Component host
Components 19
Dynamic remotes
- Dynamic host
advanced-api/dynamic-remotes/app1/src/App.tsx - Runtime plugins
advanced-api/dynamic-remotes/runtime-plugins.js - Remote apps
advanced-api/dynamic-remotes/app2/src/App.js - Synchronous host
advanced-api/dynamic-remotes-synchronous-imports/app1/src/App.tsx - Remote config
advanced-api/dynamic-remotes-synchronous-imports/moduleConfig.js - Remote widget
advanced-api/dynamic-remotes-synchronous-imports/app1/src/Widget.js - Remote error handling
advanced-api/dynamic-remotes-synchronous-imports/app1/src/components/ErrorBoundary.tsx
Federation patterns
- Component host
complete-react-case/component-app/App.jsx - Shared dialog
complete-react-case/component-app/src/Dialog.jsx - Shared button
complete-react-case/component-app/src/Button.jsx
Application demos
- Demo routes
comprehensive-demo-react16/app-01/src/Routes.jsx - Federated home
comprehensive-demo-react16/app-01/src/pages/index-page.jsx - Markdown view
comprehensive-demo-react16/app-01/src/Markdown.jsx - Page layout
comprehensive-demo-react16/app-01/src/Page.jsx - Svelte example
comprehensive-demo-react16/app-01/src/pages/svelte-page.jsx
Server rendering
- Angular SSR host
angular-universal-ssr/host-app/server.js - Angular client app
angular-universal-ssr/client-app/src/app/app.module.ts - Apollo federated app
apollo-client/app1/src/server/render.tsx
Other components
- User
Connections 12
- User → Dynamic host: selects remote
advanced-api/dynamic-remotes/app1/src/App.tsx - Dynamic host → Runtime plugins: configures plugins
advanced-api/dynamic-remotes/app1/src/App.tsx - Dynamic host → Remote apps: loads remote
- Synchronous host → Remote config: reads config
advanced-api/dynamic-remotes-synchronous-imports/app1/src/App.tsx - Synchronous host → Remote widget: renders widget
advanced-api/dynamic-remotes-synchronous-imports/app1/src/App.tsx - Synchronous host → Remote error handling: wraps remote
advanced-api/dynamic-remotes-synchronous-imports/app1/src/App.tsx - Component host → Shared dialog: renders dialog
complete-react-case/component-app/App.jsx - Component host → Shared button: renders button
complete-react-case/component-app/App.jsx - Demo routes → Federated home: routes to
comprehensive-demo-react16/app-01/src/Routes.jsx - Federated home → Markdown view: renders markdown
comprehensive-demo-react16/app-01/src/pages/index-page.jsx - Federated home → Page layout: uses layout
comprehensive-demo-react16/app-01/src/pages/index-page.jsx - Demo routes → Svelte example: routes to
comprehensive-demo-react16/app-01/src/Routes.jsx