mf-module-info

Fetch Module Federation metadata and analyze exposed, remote, and shared dependencies.

2.6k|423|Updated Oct 24, 2020
One-click install
npx skills add https://github.com/module-federation/core --skill mf-module-info
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mf-module-info
Source: https://github.com/module-federation/core/tree/main/skills/mf-module-info
Command: npx skills add https://github.com/module-federation/core --skill mf-module-info

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires https, http, and includes scripts (resource) components.

What problem does it solve?

This Skill helps developers understand the configuration and exposed modules of remote Module Federation applications, simplifying integration and debugging.

Core Features & Use Cases

  • Metadata Retrieval: Fetches publicPath, remoteEntry URL, and type declaration locations (@mf-types.zip).
  • Dependency Analysis: Lists the remotes, exposes, and shared modules defined by a remote.
  • Mode Flexibility: Works both within a consumer project (resolving remotes from mfConfig) and in standalone mode (providing the remoteEntry URL directly).
  • Use Case: When integrating a new micro-frontend, use this Skill to quickly verify its exposed modules and entry points without digging through its configuration files.

Quick Start

Get the module information for the 'cart' remote, assuming it's configured in your project's mfConfig.

Frequently Asked Questions about mf-module-info

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inspect remote Module Federation modules and their exposed dependencies?

To inspect remote Module Federation modules, fetch the module's manifest to retrieve its public path, remote entry URL, type declarations, and lists of exposed, remote, and shared dependencies. This analysis simplifies integration and debugging without digging through configuration files.

What metadata can I retrieve from a remote Module Federation module?

You can retrieve metadata including the module's public path, the remote entry URL, and type declaration locations such as @mf-types.zip. The analysis also lists exposed, remote, and shared dependencies defined by the remote application.

Can I analyze a micro-frontend module without configuring it in my consumer project?

Yes, you can analyze a micro-frontend module in standalone mode by providing the explicit remote entry URL directly. Alternatively, it resolves remotes from your project's mfConfig when used within a consumer project.

How do I list shared dependencies for a remote micro-frontend?

You can list shared dependencies by analyzing the module's manifest. The Skill parses the remote Module Federation configuration to extract and display all shared, exposed, and remote modules defined by that application.

Does this dependency analysis tool work with both http and https remote entry URLs?

Yes, the dependency analysis tool supports fetching metadata over both http and https protocols. It retrieves the remote entry URL and manifest data regardless of which protocol the micro-frontend module is served over.

What is the best way to verify exposed modules when integrating a new micro-frontend?

The best way to verify exposed modules is to fetch the remote module's manifest using its entry URL or mfConfig. This lists all exposed modules and entry points directly, preventing manual configuration file searches during integration.