How module-federation/federation-dashboard works
Main Components
a) Dashboard Frontend (Consumer Interface)
• As a web interface component
• Connection to the dashboard server
• Port 3000 specification
b) Dashboard Plugin (Core Component)
• As a central processing unit with these sub-components:
• FederationDashboardPlugin (main plugin)
• Graph Conversion System (convertToGraph.js)
• Graph Merging System (mergeGraphs.js)
• Medusa Delegate (medusa-delegate.js)
c) Data Collection System
• Dashboard data creator component
• JSON data storage
• Webhook endpoint (/update)
d) Federation Module Applications (External)
• Host applications
• Remote applications
• Module dependencies
Component Details
For the Plugin:
┌─ Dashboard Plugin ─────────────┐
• Configuration Handler │
• Graph Converter │
• Metadata Processor │
• Update Mechanism │
• ┘
For the Dashboard:
┌─ Dashboard Frontend ──────────┐
• Visualization Engine │
• Module Relationship View │
• Configuration Interface │
• ┘
Integration Points
Clear integration points for:
• Webpack configuration
• Module Federation setup
• Dashboard plugin installation
• Data update endpoints
Key Technical Elements
Technical aspects:
• JSON data structure flow
• Graph data transformation
• HTTP communication paths
• Plugin integration points