single-spa vs @angular-architects/module-federation vs @module-federation/nextjs-mf vs import-map-overrides
Integrating and Debugging Microfrontends
single-spa@angular-architects/module-federation@module-federation/nextjs-mfimport-map-overridesSimilar Packages:

Integrating and Debugging Microfrontends

A microfrontend setup needs a way to compose applications, load shared code, and test changes across application boundaries. These packages address different parts of that work. Start by deciding whether you need Angular build integration, support for an existing Next.js integration, application lifecycle orchestration, or a way to test a local module in an existing environment.

Npm Package Weekly Downloads Trend

3 Years

Github Stars Ranking

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
single-spa607,16313,8852.12 MB662 years agoMIT
@angular-architects/module-federation164,862857197 kB4112 months agoMIT
@module-federation/nextjs-mf60,6072,684401 kB12616 days agoMIT
import-map-overrides15,707362230 kB15a year agoMIT

Decide what the shell needs to coordinate

Module Federation addresses sharing code across builds. The Angular plugin integrates that mechanism into an Angular project. The Next.js plugin is relevant when maintaining an existing Pages Router integration, with its documented router constraint.

Separate application lifecycle from module resolution

single-spa coordinates when applications become active and how they mount and unmount. Import maps decide which URL supplies a module. For a shell that already uses an import map, import-map-overrides can redirect a module to a local development server while the rest of the shell uses its configured modules. The override is useful for development and debugging. Deploy application changes through the project’s normal release process.

How to Choose: single-spa vs @angular-architects/module-federation vs @module-federation/nextjs-mf vs import-map-overrides

  • single-spa:

    Use single-spa when a shell must mount and unmount independently implemented applications as navigation changes. Pick a module-loading and deployment strategy alongside it.

  • @angular-architects/module-federation:

    Use the Angular Architects plugin when Angular applications need to expose or consume modules through Module Federation. Check the host and remote build configurations together, particularly which dependencies they share.

  • @module-federation/nextjs-mf:

    Treat this as a maintenance consideration for an existing Next.js Pages Router project that already uses the plugin. The project documents its deprecation and does not support App Router, so an App Router migration requires a different integration strategy.

  • import-map-overrides:

    Use this when the shell already resolves modules through an import map and you want to test one local module alongside deployed ones. Keep the environment’s base import map in place so other modules still resolve as configured.

README for single-spa

npm version NPM Downloads

single-spa

Join the chat on Slack

Donate to this project

Official single-spa hosting

baseplate-logo-standard

A javascript framework for front-end microservices

Build micro frontends that coexist and can (but don't need to) be written with their own framework. This allows you to:

Sponsors

DataCamp-Logo Toast-Logo asurion-logo

To add your company's logo to this section:

Documentation

You can find the single-spa documentation on the website.

Check out the Getting Started page for a quick overview.

Demo and examples

Please see the examples page on the website.

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing on the single-spa website.

Contributing

The main purpose of this repository is to continue to evolve single-spa, making it better and easier to use. Development of single-spa, and the single-spa ecosystem happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving single-spa.

Code of Conduct

Single-spa has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to single-spa.