What it does
HyperFrontend sandboxes any web app, however old. Each feature runs in its own iframe, in a separate browsing context. The feature application runs from its own origin. A feature shell bootstraps the micro-frontend and establishes the communication channel. The host application loads features dynamically and manages their lifecycle. Features can be composed into the host at build time or at runtime. Features communicate through the @hyperfrontend/nexus library. A message broker routes typed messages between contexts with validation. To start, install the toolkit from npm with the command npm install @hyperfrontend/features.
Capabilities
- The message broker supports optional encryption for sensitive data.
- The toolkit has zero runtime dependencies and uses the MIT License.
- The npm packages include @hyperfrontend/features, @hyperfrontend/versioning, @hyperfrontend/project-scope, @hyperfrontend/builder, @hyperfrontend/nexus, @hyperfrontend/logging and @hyperfrontend/cryptography.
- The architecture example shows a feature at https://checkout.team-b.dev running inside a host application at https://app.example.com.
- Live demos run real feature apps on their own origins, composed into the demo page and running in the browser.
When to use it
- Engineering teams need to coordinate across different timezones, separate sprints and conflicting priorities, and each team should ship on its own schedule.
- An existing web app needs to be modernized without a rewrite.
