How amadeusitgroup/microfrontends works
Project type and purpose
• This is a toolset for building micro-frontend applications.
• It consists of:
• A core JavaScript library (packages/core) that handles message‐based communication between host and micro-frontends.
• An Angular integration package (packages/angular) that provides Angular services/components to wire micro-frontends into an Angular host.
• End-to-end test cases (packages/core-e2e) that spin up host and child iframes to validate your messaging/handshake logic.
• A demo application (demos/app-angular) that shows how to wire everything together in an Angular shell.
File structure
• Top-level directories:
• packages/core – the core runtime library (emitter, endpoint, peer, message-channel, utils).
• packages/angular – an Angular wrapper that registers a MessagePeerService, provides Angular components, types, and public API.
• packages/core-e2e – Playwright- and HTML-based test scenarios simulating iframe handshake and connection switching.
• demos/app-angular – a sample Angular shell consuming both host and client micro-frontends via the core and Angular packages.
• scripts – build orchestration (prepare-packages.js).
• GitHub workflows, linting, commit hooks, changelog, contribution docs.
README insights
• The README confirms this repo publishes two NPM packages: the core library and the Angular integration.
• It points to individual package READMEs for usage details.