Wujie embeds micro-frontends with native CSS and JavaScript isolation by combining a Web Component container with an iframe sandbox.
Overview
Wujie is a micro-frontend framework aimed at teams that need to compose multiple front-end apps in one page without heavy retrofit work. It pairs a Web Component wrapper with an iframe sandbox so styles and scripts stay isolated while addressing common pain points around performance, flicker, communication, and Vite or ESM support.
Adoption stays light: the host app needs minimal wiring and child apps often need little or no change. Preloading and pre-execution target fast first paint. Shadow DOM handles CSS boundaries; the iframe supplies a separate window, document, and history for JavaScript.
Capabilities include keep-alive subapplications, nested micro-apps, several active children with route sync, shared dependencies, EventBus and props-based communication, lifecycle hooks, plugins, and first-class Vite and ESM workflows. Packages are published for vanilla JavaScript, Vue, and React hosts.
The approach originated in Tencent's Wuji low-code platform, where legacy and low-code pages embed each other in production systems.
Key features
- Web Component plus iframe isolation
- Minimal host and sub-app setup
- Preload for faster first screen
- Sub-app keep-alive mode
- Multi-app activation with route sync
- Cross-app dependency sharing
- EventBus and props communication
- Vue and React integration packages
Use cases
- Composing legacy and new UIs
- Micro-frontend migration
- Embedding third-party SPAs
- Low-code and portal shells