micro-app from JD Retail embeds child front ends in a host page with JS sandboxing, style isolation, prefetch, and data channels. Any framework can host or run as a child when cross-origin access is configured.
Overview
micro-app applies component-style thinking to micro frontends: a custom element wraps remote bundles so base applications load sub-applications without switching frameworks. The host installs the library, registers the web component, and points it at sub-app URLs.
Built-in pieces include a JS sandbox, style and element isolation, preloading, URL completion, plugins, and inter-app messaging. Sub-apps must allow cross-origin access, typically via dev-server headers or production reverse proxy rules.
Compatibility hinges on CustomElements and Proxy support; polyfills cover missing CustomElements on some browsers but Proxy gaps block unsupported engines. Desktop targets exclude Internet Explorer; mobile coverage includes iOS 10+ and Android 5+.
vite, SSR with Next.js or Nuxt, and webpack dev setups are documented. MIT license.
Key features
- Custom element micro-frontend host
- JS sandbox and style isolation
- Framework-agnostic integration
- Prefetch and plugin system
- Inter-app data communication
- vite and SSR guides
- Element isolation guards
Use cases
- Splitting large web consoles
- Embedding legacy sub-apps
- Incremental frontend migration