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 portalremote-a: mounted asguideremote-b: mounted asconfigremote-c: mounted asplugin
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-docswrapper pages - locale switching keeps the same route structure while loading the locale-matching remote module
Official references:
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"]
pnpm install
pnpm dev
pnpm build
pnpm previewFor the package-level explanation, start with packages/rspress-unofficial-plugin/README.md.