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

@entando/mfe-sdk

v0.4.0

Published

Helpers for building Entando micro-frontends.

Downloads

102

Readme

Entando MFE SDK

Helpers for building Entando micro-frontends.

Runtime Mercury Injection

The runtime may pass a Mercury-compatible object on the mount SDK:

await mod.mount({
  domElement,
  sdk: {
    ...sdk,
    mercury,
  },
});

When sdk.mercury is present, emit() and on() use Mercury on the shared mfe.event channel and keep the existing SDK event names inside the message payload. When it is absent, the SDK keeps the current ESM CustomEvent and iframe postMessage behavior.

This only gives iframe MFEs direct Mercury communication if the runtime can actually provide the iframe with a usable object or broker-backed Mercury client. A sandboxed srcdoc iframe cannot receive the parent's live JavaScript object by reference.

Vite Manifest Plugin

Use the Vite plugin to publish Widget Registry metadata at /.well-known/entando-mfe.json.

Explicit mode pins the public runtime files:

import { defineConfig } from "vite";
import { entandoMfeManifestPlugin } from "@entando/mfe-sdk/vite";

export default defineConfig({
  plugins: [
    entandoMfeManifestPlugin({
      name: "Orders Widget",
      version: "1.2.3",
      owner: "Commerce",
      entry: "/esm/bundle.js",
      styles: ["/esm/style.css"],
      outDir: "dist",
    }),
  ],
});

Inferred mode lets the SDK read Vite/Rollup build output and write the emitted JS/CSS filenames:

import { defineConfig } from "vite";
import { entandoMfeManifestPlugin } from "@entando/mfe-sdk/vite";

export default defineConfig({
  plugins: [
    entandoMfeManifestPlugin({
      name: "Orders Widget",
      version: "1.2.3",
      owner: "Commerce",
      outDir: "dist",
    }),
  ],
  build: {
    outDir: "dist/esm",
  },
});

If Vite emits dist/esm/assets/main-AbC123.js and dist/esm/assets/style-DeF456.css, the SDK writes:

{
  "entry": "/esm/assets/main-AbC123.js",
  "styles": ["/esm/assets/style-DeF456.css"]
}

Explicit entry / styles always win over inference.

CLI

For non-Vite build systems, write the manifest in a post-build step:

entando-mfe-manifest --name "Orders Widget" --version 1.2.3 --owner Commerce --entry /esm/bundle.js --styles /esm/style.css --out-dir dist

The CLI can also scan a built output directory:

entando-mfe-manifest --name "Orders Widget" --owner Commerce --out-dir dist --scan-dir dist/esm --infer --public-path /esm

Webpack Manifest Plugin

Webpack builds can infer paths from entrypoint files:

import MiniCssExtractPlugin from "mini-css-extract-plugin";
import { EntandoMfeManifestWebpackPlugin } from "@entando/mfe-sdk/webpack";

export default {
  entry: { main: "./src/main.js" },
  experiments: { outputModule: true },
  output: {
    path: new URL("./dist", import.meta.url).pathname,
    filename: "esm/assets/[name]-[contenthash:8].js",
    library: { type: "module" },
    module: true,
  },
  plugins: [
    new MiniCssExtractPlugin({
      filename: "esm/assets/[name]-[contenthash:8].css",
    }),
    new EntandoMfeManifestWebpackPlugin({
      name: "Orders Widget",
      outDir: "dist",
    }),
  ],
};

The plugin uses Webpack's compilation entrypoint files to write /.well-known/entando-mfe.json.