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-esbuild

v4.2.0

Published

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

Readme

@softarc/native-federation-esbuild

npm version npm downloads license

The esbuild adapter for 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. On Angular? Use the Angular adapter instead.

Features

  • Framework-agnostic — plugs the core builder into esbuild for React, Preact, Lit or plain TypeScript; no CLI wrapper or framework coupling.
  • Framework presets — per-framework esbuild settings (file replacements, loaders, resolveExtensions, CommonJS interop) as plugins. A React preset ships built-in.
  • CommonJS just works — when a preset asks for it, a CJS require() of another shared package becomes a real ESM import instead of a shim that throws in the browser; everything else uses esbuild's own interop.
  • Watch mode — a debounced, cancellable rebuild queue that only re-bundles what changed.

Quick start

Install the adapter next to its peer dependency, core:

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

Describe what the application shares and exposes in federation.config.mjs:

import { withNativeFederation, shareAll } from '@softarc/native-federation/config';
import { REACT_SKIP_LIST } from '@softarc/native-federation-esbuild/frameworks/react';

export default withNativeFederation({
  name: 'mfe1',
  exposes: { './component': './src/component.tsx' },
  shared: shareAll(
    { singleton: true, strictVersion: true, requiredVersion: 'auto' },
    { skipList: REACT_SKIP_LIST }
  ),
});

Then drive the build from a small script:

import { runEsBuildBuilder } from '@softarc/native-federation-esbuild';

const dev = process.argv.includes('--dev');

const federation = await runEsBuildBuilder('federation.config.mjs', {
  outputPath: 'dist',
  tsConfig: 'tsconfig.json',
  entryPoints: ['src/component.tsx'],
  dev,
  watch: dev,
});

if (!dev) await federation.close();

The resulting remoteEntry.json is loaded at runtime by the orchestrator. The Getting Started guide walks through a complete React remote and host page, and the playground has runnable examples.

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