• Stars
    star
    1,427
  • Rank 32,974 (Top 0.7 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 4 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

ModuleFederation

Documentation

module-federation/nextjs-mf

module-federation/node

module-federation/utilities

module-federation/typescript

module-federation/storybook-addon

module-federation/native-federation-typescript

module-federation/native-federation-tests

Generate an application

Run nx g @nx/next:app my-app to generate an application.

You can use any of the plugins above to generate applications as well.

When using Nx, you can create multiple applications and libraries in the same workspace.

Generate a library

Run nx g @nx/js:lib my-lib to generate a library.

You can also use any of the plugins above to generate libraries as well.

Libraries are shareable across libraries and applications. They can be imported from @module-federation/mylib.

Development server

Run nx serve my-app for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run nx build my-app to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run nx test my-app to execute the unit tests via Jest.

Run nx affected:test to execute the unit tests affected by a change.

Social links

We are excited to announce the new Discord community for Module Federation has been recently launched! This space will be used to discuss and share knowledge about the latest advancements in module federation and how to use it effectively. See you there!

More Repositories

1

module-federation-examples

Implementation examples of module federation , by the creators of module federation
JavaScript
5,497
star
2

aegis-host

This is the ÆGIS federated application host. Federated components are independently deployable, written by multiple teams in multiple languages, and loaded from multiple repos and network locations at runtime, yet capable of running together in a single process or as distributed components in the ÆGIS application fabric.
JavaScript
235
star
3

vite

Vite Plugin for Module Federation
TypeScript
174
star
4

medusa

A dashboard to tame and control federated apps
JavaScript
171
star
5

aegis

Module federation for the backend. Aegis core lib. Regain control of your microservices by consolidating them into one or more shared processes without loosing deployment or language independence. Eliminate the need for deployment automation. Let services deploy themselves.
JavaScript
145
star
6

typescript

Typescript Types Support For Module Federation
JavaScript
104
star
7

rollup-federation

Module Federation within the rollup bundler
JavaScript
81
star
8

practical-module-federation

JavaScript
75
star
9

automatic-vendor-federation

Utility to enable automatic vendor sharing within bundles using Module Federation
JavaScript
74
star
10

external-remotes-plugin

Dynamically set remote origins at runtime within hosts
JavaScript
52
star
11

enhanced

Enhanced API for Module Federation
JavaScript
46
star
12

fmr

Federated Module Reloading for DEV mode
JavaScript
44
star
13

utilities

Various Utilities for Module Federation
TypeScript
36
star
14

webpack-4

Webpack 4 Plugin For Module Federation
JavaScript
36
star
15

module-federation.github.io

Website for Module Federation Org
JavaScript
34
star
16

reunited

Module federation and unit tests
JavaScript
34
star
17

node

Software streaming to enable node.js support for browser-like chunk loading
27
star
18

nextjs-ssr

Next.js Federated SSR over Software Streaming
JavaScript
27
star
19

aegis-app

This template project provides the scaffolding to build a federated application on ÆGIS. It also contains an example of an Order, Customer and Inventory service streaming to / running in the same ÆGIS host server process; and demonstrates integration with, and orchestration of, an Address, Payment, Inventory, Shipping, Event (Kafka, WebSockets), and Persistence service (MongoDB) via Aegis federated ports.
JavaScript
26
star
20

federation-dashboard

Dashboard service to command, control, and visualize module federation based systems
JavaScript
19
star
21

concat-runtime

Joins runtimeChunk: "single" back to a ModuleFederationPlugin remote containers for independent functionality
JavaScript
13
star
22

apollo-gateway

Webpack Module Federation Apollo based gateway
JavaScript
5
star
23

common-3rd-parties

Common Third party scripts provided as federated modules
JavaScript
3
star
24

next-catchall

Federated Catch All for removing page reloads between next zones
JavaScript
3
star
25

FMR-issues

a place to file issues related to FMR plugin
2
star
26

.github

1
star
27

aegis-scaffold

This template repo provides the scaffolding to develop an ÆGIS federated application.
JavaScript
1
star