
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
microapp-loader
Advanced tools
A React component library for loading and rendering micro applications dynamically. Perfect for micro-frontend architectures and modular application development.
npm install microapp-loader
import { MicroAppRender } from 'microapp-loader';
function App() {
return (
<div>
<h1>My Application</h1>
<MicroAppRender
manifestUrl="https://example.com/my-microapp/manifest.json"
className="micro-app-container"
/>
</div>
);
}
import { useMicroApp } from 'microapp-loader';
function CustomMicroAppRenderer({ manifestUrl }: { manifestUrl: string }) {
const {
partialContent,
cssContent,
loading,
error,
manifest,
executeJS
} = useMicroApp(manifestUrl);
if (loading) return <div>Loading micro app...</div>;
if (error) return <div>Error: {error}</div>;
return (
<div>
{cssContent && <style dangerouslySetInnerHTML={{ __html: cssContent }} />}
<div dangerouslySetInnerHTML={{ __html: partialContent }} />
<button onClick={executeJS}>Execute JavaScript</button>
</div>
);
}
Your micro application should provide a JSON manifest with the following structure:
{
"version": "1.0.0",
"name": "my-microapp",
"entry": "https://example.com/my-microapp/main.js",
"scripts": [
"https://example.com/my-microapp/additional-script.js"
],
"styles": [
"https://example.com/my-microapp/styles.css"
],
"partials": [
"https://example.com/my-microapp/template.html"
],
"containerClass": "my-microapp-container"
}
MicroAppRender Component| Prop | Type | Required | Description |
|---|---|---|---|
manifestUrl | string | ✅ | URL to the micro app manifest JSON file |
className | string | ❌ | CSS class name for the container |
useMicroApp HookReturns an object with the following properties:
| Property | Type | Description |
|---|---|---|
partialContent | string | HTML content from the micro app |
cssContent | string | CSS styles from the micro app |
jsContent | string | JavaScript code from the micro app |
loading | boolean | Loading state |
error | string | null | Error message if any |
manifest | MicroAppManifest | null | Parsed manifest data |
executeJS | () => void | Function to execute the JavaScript code |
This package includes full TypeScript support with exported types:
MicroAppManifestUseMicroAppReturnMicroAppRenderPropsThis package works seamlessly with Next.js applications. Simply import and use the components as you would any other React component.
ISC
FAQs
A React component library for loading and rendering micro applications
We found that microapp-loader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.