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

@softarc/native-federation

v4.10.1

Published

[![npm version](https://img.shields.io/npm/v/@softarc/native-federation)](https://www.npmjs.com/package/@softarc/native-federation) [![npm downloads](https://img.shields.io/npm/dm/@softarc/native-federation)](https://www.npmjs.com/package/@softarc/native-

Readme

@softarc/native-federation

npm version npm downloads license

The build-tool and framework agnostic core of Native Federation: the mental model of Module Federation, implemented on browser standards (ES modules and import maps) for Micro Frontends and plugin-based architectures.

📖 Documentation

[!NOTE] This is v4. Upgrading? See the migration guide. The v3 source lives in the module-federation-plugin repository.

Features

  • Any framework, any bundler — the core talks to your bundler through a small adapter contract.
  • Web standards — remotes are plain ES modules wired together by an import map, no custom loader necessary (polyfill support via es-module-shims).
  • Shared dependencies — load a library once across host and remotes, with semver-aware version negotiation.
  • Fast — shared dependencies are bundled once and cached across builds.

Which package do I need?

This package is the low-level builder. Most apps use it through an adapter:

| You are… | Use | | -------------------------------------- | ------------------------------------------------------------------------------------------------------- | | Building an Angular app | @angular-architects/native-federation | | Building with esbuild (React, vanilla) | @softarc/native-federation-esbuild | | Loading remotes into a host page | @softarc/native-federation-orchestrator | | Wiring a custom stack or new adapter | this package — build your own adapter |

Install

npm i @softarc/native-federation @softarc/native-federation-esbuild esbuild

The usage below builds with esbuild. Core does not install a bundler, so install the one your build script imports next to its adapter.

Usage

Describe what an application shares and exposes in federation.config.(m)js:

import { withNativeFederation, fromPackageJson } from '@softarc/native-federation/config';

export default withNativeFederation({
  name: 'mfe1',
  exposes: {
    './component': './mfe1/component',
  },
  shared: fromPackageJson({
    singleton: true,
    strictVersion: true,
    requiredVersion: 'auto',
  }),
});

Then wrap your own build with the three federationBuilder calls:

import * as esbuild from 'esbuild';
import { federationBuilder } from '@softarc/native-federation';
import { esBuildAdapter } from '@softarc/native-federation-esbuild';

await federationBuilder.init({
  options: {
    workspaceRoot: process.cwd(),
    outputPath: 'dist/mfe1',
    tsConfig: 'tsconfig.json',
    federationConfig: 'mfe1/federation.config.js',
  },
  adapter: esBuildAdapter,
});

// Run your bundler, keeping the shared dependencies external
await esbuild.build({ /* ... */ external: federationBuilder.externals });

// Bundle shared + exposed modules and write remoteEntry.json
await federationBuilder.build();

The resulting remoteEntry.json is loaded at runtime by the orchestrator.

For the full walkthrough, see Getting Started or the end-to-end tutorial.

Documentation

Using an AI coding assistant? Point it at llms.txt.

Contributing

Issues and pull requests are welcome — see CONTRIBUTING.md.

Credits

Big thanks to Zack Jackson for originally coming up with Module Federation and its mental model, and to Florian Rappl and the Angular Architects team for their feedback and contributions. Find the current team behind native-federation on our documentation website.

License

MIT