Angular Micro-frontend Dependency Policy

•
2
•

Enforces architectural boundaries and manages library sharing policies within Angular micro-frontend environments.

This skill provides a structured framework for managing shared libraries within Angular micro-frontend environments using Nx and Module Federation. It helps developers identify safe sharing candidates like UI components and utility contracts while strictly blocking the leakage of domain-specific state or private services. By enforcing the 'share contracts, not domain ownership' principle, it effectively mitigates risks associated with dependency drift, hidden runtime coupling, and unnecessary bundle growth, ensuring a scalable and maintainable federated architecture that adheres to modern enterprise standards.

Key Features

01Enforces 'Share contracts, not domain ownership' architectural principles
02Identifies safe shared candidates like UI kits, data-access contracts, and utilities
03Provides automated checklists for reviewing singleton service coupling and dependency drift
042 GitHub stars
05Optimizes Module Federation configurations to minimize bundle duplication
06Detects and prevents domain state leakage across micro-frontend boundaries

Use Cases

01Refactoring monolithic Angular apps into micro-frontends with clear library boundaries
02Configuring Module Federation shared dependencies in a multi-team Nx workspace
03Auditing existing micro-frontend setups for hidden runtime coupling and singleton leaks