npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

module-federation-angular-adapter

v0.2200.2

Published

An Angular adapter for **Module Federation v2**, built on [`@module-federation/runtime`](https://www.npmjs.com/package/@module-federation/runtime) and [`@module-federation/esbuild`](https://www.npmjs.com/package/@module-federation/esbuild).

Downloads

539

Readme

module-federation-angular-adapter

An Angular adapter for Module Federation v2, built on @module-federation/runtime and @module-federation/esbuild.

It lets an Angular app consume and produce Module Federation v2 remotes that interoperate with stock webpack / rspack MF hosts — while reusing Angular's esbuild-based ApplicationBuilder and the same es-module-shims foundation as Native Federation.

[!WARNING] Pre-release. The adapter is code-complete and statically verified (type-checks, lints, unit tests pass), but its end-to-end behaviour is not yet proven in a real Angular app/browser. See Constraints & known issues. Not yet recommended for production.

Features

  • Module Federation v2 interop — emits mf-manifest.json + an ESM remoteEntry.js; consumes/produces remotes across Angular, webpack, and rspack.
  • Familiar configwithModuleFederation / share / shareAll, the same shape Native Federation / the Module Federation plugin use.
  • Angular-native build — delegates the app shell to Angular's fast esbuild ApplicationBuilder; runs the federation container as a side build.
  • Single-instance sharing@angular/*, rxjs, zone.js shared as strict singletons via the MF shared scope.

Quick start

ng add module-federation-angular-adapter

Configure federation.config.mjs:

import {
  withModuleFederation,
  shareAll,
} from "module-federation-angular-adapter/config";

export default withModuleFederation({
  name: "mfe1",
  // remotes only:
  exposes: { "./Component": "./src/app/app.component.ts" },
  shared: {
    ...shareAll({
      singleton: true,
      strictVersion: true,
      requiredVersion: "auto",
    }),
    "@angular/core": {
      singleton: true,
      strictVersion: true,
      requiredVersion: "auto",
      includeSecondaries: true,
    },
  },
  skip: ["rxjs/ajax", "rxjs/fetch"],
});

Load a remote in the host:

import { initFederation } from "module-federation-angular-adapter";

const { loadRemoteModule } = initFederation({
  mfe1: "http://localhost:4201/mf-manifest.json",
});

const m = await loadRemoteModule("mfe1", "./Component");

Full walkthrough: docs/usage.md.

How it differs from Native Federation

Same adapter shape and es-module-shims loader; the orchestrator and the artifact contract change.

| | Native Federation | This adapter | | ---------------- | ----------------------------------------- | --------------------------------------------- | | Runtime | @softarc/native-federation-orchestrator | @module-federation/runtime | | Build core | @softarc/native-federation | @module-federation/esbuild | | Manifest | remoteEntry.json | remoteEntry.js + mf-manifest.json (MF v2) | | initFederation | returns a Promise | synchronous | | Interop | NF hosts only | stock webpack / rspack MF v2 hosts |

The trade: you gain the wider Module Federation v2 ecosystem; you depend on the (currently early 0.0.x) @module-federation/esbuild. See Architecture for the full picture.

Documentation

Credits

Built on the work of the Module Federation and Native Federation communities — Zack Jackson (Module Federation), the @module-federation team (runtime + esbuild), Manfred Steyer and the Angular Architects team (Native Federation, whose adapter this ports from), and the Angular CLI team for the esbuild ApplicationBuilder.

License

MIT