Getting Started
Overview
hyperfrontend is a hybrid micro-frontend pattern that enables building composable web applications. This guide will walk you through installation and creating your first feature.
First, ensure you have an Nx workspace set up.
Then add the hyperfrontend features plugin:
| |
This will automatically install the @hyperfrontend/window-messages package and configure your workspace.
Creating a Feature
Initialize an existing application as a hyperfrontend feature:
| |
The generator will prompt you for:
- Which project to target
- Where to store the feature configuration and contracts
Consuming a Feature
Add a feature to a host application:
| |
The generator will prompt you for:
- The feature name
- Which host project to add it to
The plugin automatically sets up the consumption pattern that works naturally with your chosen framework.
Testing Your Feature
Run the playground host to see how your feature loads:
| |
This launches a development environment where you can debug and interact with your feature in isolation.
What You’ll Learn
- How to initialize a project as a hyperfrontend feature
- How to consume features in host applications
- How to test and debug your features