
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@re-shell/core
Advanced tools
The core framework for Re-Shell microfrontend applications. This package provides the essential functionality for loading, managing, and orchestrating microfrontends in a shell application.
npm install @re-shell/core
# or
yarn add @re-shell/core
# or
pnpm add @re-shell/core
import { loadMicrofrontend, eventBus } from '@re-shell/core';
// Load a microfrontend
await loadMicrofrontend({
id: 'my-microfrontend',
name: 'My Microfrontend',
url: '/microfrontends/my-mf.js',
containerId: 'mf-container',
framework: 'react'
});
// Listen for events
eventBus.on('user:selected', (data) => {
console.log('User selected:', data.payload);
});
// Emit events
eventBus.emit('app:ready', { timestamp: Date.now() });
import React from 'react';
import { ShellProvider, MicrofrontendContainer } from '@re-shell/core';
const App = () => {
const microfrontendConfig = {
id: 'dashboard',
name: 'Dashboard',
url: '/microfrontends/dashboard.js',
containerId: 'dashboard-container',
framework: 'react'
};
return (
<ShellProvider>
<div className="app">
<header>My Shell App</header>
<main>
<MicrofrontendContainer
config={microfrontendConfig}
options={{ enablePerformanceMonitoring: true }}
/>
</main>
</div>
</ShellProvider>
);
};
import {
loadMicrofrontend,
performanceMonitor,
devTools,
router
} from '@re-shell/core';
// Configure performance monitoring
performanceMonitor.updateConfig({
enabled: true,
logToConsole: true,
thresholds: {
loadTime: 2000, // 2 seconds
mountTime: 500, // 500ms
bundleSize: 1024 * 1024 // 1MB
}
});
// Configure development tools
devTools.updateConfig({
enabled: process.env.NODE_ENV === 'development',
logEvents: true,
monitorPerformance: true,
enableHMR: true
});
// Set up routing
router.addRoutes([
{
path: '/dashboard',
microfrontendId: 'dashboard',
exact: true
},
{
path: '/users/:id',
microfrontendId: 'user-detail',
guards: [authGuard]
}
]);
// Load with lifecycle hooks
await loadMicrofrontend(
{
id: 'dashboard',
name: 'Dashboard',
url: '/microfrontends/dashboard.js',
containerId: 'dashboard-container',
framework: 'react'
},
{
enablePerformanceMonitoring: true,
loadingStrategy: 'lazy'
},
{
beforeMount: async (config) => {
console.log('About to mount:', config.name);
},
afterMount: async (config) => {
console.log('Mounted:', config.name);
},
onError: (error, config) => {
console.error('Error loading:', config.name, error);
}
}
);
loadMicrofrontend(config, options?, hooks?)Load a single microfrontend with enhanced lifecycle management.
loadMicrofrontends(configs, options?, hooks?)Load multiple microfrontends concurrently.
unmountMicrofrontend(id, hooks?)Unmount a specific microfrontend.
reloadMicrofrontend(id, options?, hooks?)Reload a microfrontend (unmount then load).
eventBus.on<T>(event, handler)Subscribe to events with type safety.
eventBus.emit<T>(event, payload, options?)Emit events with enhanced data structure.
eventBus.once<T>(event, handler)Subscribe to an event once.
eventBus.off(subscriptionId)Unsubscribe using subscription ID.
performanceMonitor.updateConfig(config)Update performance monitoring configuration.
performanceMonitor.getMetrics(microfrontendId)Get performance metrics for a specific microfrontend.
performanceMonitor.getSummary()Get overall performance summary.
router.addRoute(route)Add a single route configuration.
router.navigate(path, options?)Navigate to a specific path.
router.getCurrentRoute()Get the current active route.
workspaceManager.registerWorkspace(config)Register a workspace configuration.
workspaceManager.analyzeWorkspaces()Analyze workspace dependencies and relationships.
workspaceManager.getBuildOrder()Get optimal build order for workspaces.
Access development tools via window.__RE_SHELL_DEV__ in development mode:
// Show debug panel
window.__RE_SHELL_DEV__.showDebugPanel();
// Get performance metrics
window.__RE_SHELL_DEV__.getPerformanceMetrics();
// Enable event logging
window.__RE_SHELL_DEV__.enableEventLogging();
// Get event history
window.__RE_SHELL_DEV__.getEventHistory();
Event Bus Changes:
// Old
eventBus.emit('event', { data: 'value' });
// New
eventBus.emit('event', { data: 'value' }, { source: 'my-app' });
Loading Function Signature:
// Old
loadMicrofrontend(config, options);
// New
loadMicrofrontend(config, options, hooks);
Performance Monitoring:
// Enable in options
loadMicrofrontend(config, { enablePerformanceMonitoring: true });
See the main Contributing Guide for details on how to contribute to this project.
MIT License - see LICENSE for details.
FAQs
Core package for ReShell microfrontend framework
We found that @re-shell/core 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.