Skip to content

About

PoC for bringing multiple Rspress docs sites together with Module Federation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Module Federation + Rspress PoC

This repository is a proof-of-concept: a small, throwaway-style demo for trying out Module Federation with Rspress—not a production blueprint or supported product.

This workspace demonstrates @module-federation/rspress-unofficial-plugin as a small docs portal:

  • host: consumer portal
  • remote-a: mounted as guide
  • remote-b: mounted as config
  • remote-c: mounted as plugin

The point of the demo is not just to prove federation works, but to show the intended DX:

  • producers mostly write normal Rspress docs
  • the wrapper auto-exposes those docs
  • remotes emit doc_build/mf-routes.json
  • the host reads remote catalogs and generates thin @mf-docs wrapper pages
  • locale switching keeps the same route structure while loading the locale-matching remote module

Official references:

Demo Shape

flowchart LR
  A[guide remote] --> D[host]
  B[config remote] --> D
  C[plugin remote] --> D
  D --> E[merged docs portal]
  D --> F["@mf-docs wrappers"]
Loading

Commands

pnpm install
pnpm dev
pnpm build
pnpm preview

For the package-level explanation, start with packages/rspress-unofficial-plugin/README.md.

About

PoC for bringing multiple Rspress docs sites together with Module Federation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages