← All projects
Project record1 mention
Originally shared on Hacker News

Remote Module Definition (RMD)

A specification and reference implementation for the Remote Module Definition (RMD) pattern, which handles micro-frontend layout orchestration and dynamic component loading (like includes/partials or even Web Components) natively in the browser using standard vanilla HTML and ECMAScript, with no Webpack/Vite or framework runtimes required. It loads decoupled UI components across separate origins at runtime (CORS required), and its dynamic client-side compilation makes DOM hydration non-deterministic for unwanted automated web scrapers.

Last shared
01 / The problem

What it addresses

Micro-frontend layout orchestration and dynamic component loading normally require bundlers (Webpack/Vite) or framework runtimes.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Remote Module Definition (RMD)

    A specification and reference implementation for the Remote Module Definition (RMD) pattern, which handles micro-frontend layout orchestration and dynamic component loading (like includes/partials or even Web Components) natively in the browser using standard vanilla HTML and ECMAScript, with no Webpack/Vite or framework runtimes required. It loads decoupled UI components across separate origins at runtime (CORS required), and its dynamic client-side compilation makes DOM hydration non-deterministic for unwanted automated web scrapers.

    Problem: Micro-frontend layout orchestration and dynamic component loading normally require bundlers (Webpack/Vite) or framework runtimes.

    Posted by @otocarlson · Original source ↗

    Source text · @otocarlson · · Source ↗

    I’ve been working on a specification and reference implementation called the Remote Module Definition (RMD) pattern.

    Source text · @otocarlson · · Source ↗

    The goal is to handle micro-frontend layout orchestration and dynamic component loading (like includes/partials or even Web Components) natively in the browser using standard vanilla HTML and ECMAScript — no Webpack/Vite or framework runtimes required.

    Source text · @otocarlson · · Source ↗

    It loads decoupled UI components across separate origins at runtime as well (CORS required).

    Source text · @otocarlson · · Source ↗

    An interesting side effect of this dynamic client-side compilation is that it makes DOM hydration non-deterministic for unwanted automated web scrapers.

    Source text · @otocarlson · · Source ↗

    The reference code (MIT) and specs (CC BY 4.0) will be on GitHub in the Sovereign Commons Distributed repo:

    Source text · @otocarlson · · Source ↗

    https://cscarlson.github.io/magazinejs/

    Source text · @otocarlson · · Source ↗

    https://github.com/nativewebfederation/sovereigncommonsdistributed

    Story title · @otocarlson · · Source ↗

    Show HN: Native HTML Partials and Native MFEs