Project

Wormhole

A micro frontend lab inspired by the series Dark.

Open the demo ↗ (The demo opens in a new tab.)Source code ↗

Wormhole: the Dark Cast page, loaded from a remote micro-frontend, listing actors and characters.

Wormhole

Wormhole is a host application that loads separately built and deployed micro frontends at runtime through Module Federation. Its look is inspired by the Netflix series Dark: void black, fog grey, raincoat yellow, uppercase serif titles and the triquetra symbol.

How it works

  1. One host, six remotes

    The Wormhole host knows nothing about the micro frontends’ code: webpack declares six remotes (cast, weather, cityWeather and the three timelines) and fetches each from its entry file only when a route or component needs it.

  2. Shared dependencies

    Angular, the router, HttpClient and Transloco are shared singletons with strict versions: host and remotes use the same instance and nothing is bundled twice.

  3. Independent deploys

    Each remote is a standalone Angular application with its own port and build. You can ship one without rebuilding the host: that is the real payoff of micro frontends.

  4. Communication without coupling

    Remotes never import each other. The three timelines talk and announce themselves through the Lorentz event bus, a separately published library.

  5. Shared design tokens

    Colours, spacing and radii live in Sass maps and are exposed as --wormhole-* CSS variables, keeping host and remotes consistent without sharing stylesheets.

What’s inside

  1. Three timelines talking

    Three micro frontends (1953, 1986, 2019) chat with each other and announce their presence through the Lorentz event bus.

  2. Cast and weather

    Independent micro frontends: the cast of Dark (TVmaze API), weather and city weather built with signals.

  3. Carbon footprint

    Grid carbon intensity and a kWh to gCO₂ calculator using the Carbon Intensity API.

  4. Modern architecture

    Standalone components only, zoneless change detection, signals, Sass and no Angular Material.

  5. Cross-cutting infrastructure

    HTTP interceptors with a loader (NgRx and signals) and an error dialog, documented with Compodoc.

Read the library page: lorentz-event-bus →