Skip to content
Solo build2025

Micro Frontend

One shell, nine React apps deployed on their own and loaded at runtime with Module Federation

Last updated
Feb 2025
Primary language
JavaScript
https://micro-frontend-host-khaki.vercel.app/
Micro Frontend preview

Overview

A container application that orchestrates nine independent micro-frontends with Webpack Module Federation. Each child app (animals, artwork, books, cuisines, movies, news, photos, pokemon, quotes) is built, deployed and versioned on its own Vercel project. The host shell loads remotes at runtime, shares React, ReactDOM and Tailwind as singletons, and only fetches the app you open. CRACO drives the Module Federation plugin config.

Role
Solo build
Year
2025
Stack
React 19Module FederationWebpackCRACOTailwind CSSAnt Design

Architecture

remoteEntry.jsBrowserpays for the shell firstHost shellloads remotes on openShared singletonsReact · ReactDOM · TailwindNine remotes, own repo + Vercel project eachanimalsartworkbookscuisinesmoviesnewsphotospokemonquotes
Micro Frontend: one shell, nine independently deployed remotes

The problem

Module Federation is easy to demo and hard to run: version skew between shell and remotes, duplicated React copies, and remotes that break the shell when they go down.

Decisions

  1. 01

    Singletons for the runtime

    React, ReactDOM and Tailwind are shared as singletons so every remote renders in the same tree and the shell never ships two Reacts.

  2. 02

    One deploy per app

    Each remote lives in its own repository and Vercel project, so a child can ship on its own schedule without a shell release.

  3. 03

    Load on open, not on boot

    Remotes are resolved when their tab is opened, so the first paint only pays for the shell.

Outcome

Shell and all nine remotes live on Vercel, each with its own source and deployment.

Status

Complete demo; public repositories.

Screenshots

Micro Frontend runtime console: a remotes panel with each of the nine apps, its deployed commit and load time, an event bus line logging a favourite, and the Animals remote rendering a breed atlas in a framed viewport
Micro Frontend runtime console: a remotes panel with each of the nine apps, its deployed commit and load time, an event bus line logging a favourite, and the Animals remote rendering a breed atlas in a framed viewport

What it does

  • Nine independent micro-frontends loaded at runtime; only the app you open is fetched
  • Shared singletons for React, ReactDOM and Tailwind across shell and remotes
  • Each child deployed and versioned independently on its own Vercel project
  • CRACO-based config override on a production-ready build

Built with

React 19Module FederationWebpackCRACOTailwind CSSAnt Design

Language mix

  • JavaScript68.2%
  • HTML21.4%
  • CSS10.4%

Sourced from the repository on GitHub.