
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
reactdesk-core
Advanced tools
A powerful React-based desktop environment library for creating Windows 11-like desktop interfaces with window management, taskbar, themes, and more
Create stunning Windows 11 and macOS-like desktop interfaces with ease
| 🪟 Window Management | Draggable, resizable, minimizable, maximizable windows with smooth animations |
| 🎨 Theme Support | Built-in Windows 11 and macOS themes with dark/light mode |
| 📱 Responsive Design | Adapts seamlessly to different screen sizes and orientations |
| 🎯 Window Snapping | 7 different snap layouts for efficient window organization |
| 🖼️ Taskbar & Dock | Fully functional taskbar with window previews and app pinning |
| ⚡ Performance | Optimized rendering with React 18 features and code splitting |
| 🔧 Customizable | Extensive configuration options for appearance and behavior |
| 📦 TypeScript | Full TypeScript support with comprehensive type definitions |
npm install @reactdesk/core
# or
yarn add @reactdesk/core
# or
pnpm add @reactdesk/core
import React from 'react';
import { ReactDesk } from '@reactdesk/core';
import type { ReactDeskConfig } from '@reactdesk/core';
const config: ReactDeskConfig = {
themeName: 'win11',
applications: [
{
name: 'My App',
icon: '📁',
windowContent: () => <div>Hello World!</div>,
windowConfig: {
title: 'My Application',
defaultSize: { width: 600, height: 400 }
}
}
]
};
function App() {
return <ReactDesk {...config} />;
}
export default App;
interface ThemeConfig {
themeName?: 'win11' | 'macos'; // Desktop theme
themeLayout?: 'win11' | 'macos'; // Layout style
colorScheme?: 'light' | 'dark'; // Color scheme
wallpaper?: string | React.ReactNode; // Background
}
interface WindowConfig {
title?: string; // Window title
icon?: string | React.ReactNode; // Window icon
defaultSize?: { width: number; height: number };
initialRelativePosition?: { top?: number; left?: number; };
allowResizing?: boolean; // Enable resizing
hideTitlebar?: boolean; // Hide titlebar
backgroundColor?: string; // Window background
maximized?: boolean; // Start maximized
minimized?: boolean; // Start minimized
}
interface Application {
name: string; // App name
icon?: string | React.ReactNode; // App icon
windowContent: React.FC; // Window content
windowConfig?: WindowConfig; // Window settings
taskbarPin?: boolean; // Pin to taskbar
runOnStart?: boolean; // Auto-start
singleton?: boolean; // Single instance
}
<ReactDesk
wallpaper="linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
// or use an image
wallpaper="https://example.com/wallpaper.jpg"
// or a React component
wallpaper={<AnimatedBackground />}
/>
const config: ReactDeskConfig = {
initialState: {
windows: [
{
Component: FileExplorer,
title: 'File Explorer',
defaultSize: { width: 800, height: 600 },
initialRelativePosition: { top: 50, left: 50 }
},
{
Component: Terminal,
title: 'Terminal',
defaultSize: { width: 600, height: 400 },
initialRelativePosition: { top: 100, left: 100 }
}
]
}
};
import { useWindows, useProcesses, useSession } from '@reactdesk/core';
function MyComponent() {
const { createWindow, closeWindow, maximize } = useWindows();
const { createProcess } = useProcesses();
const { foregroundId } = useSession();
const openNewWindow = () => {
const windowId = createWindow({
Component: MyWindowContent,
title: 'New Window',
defaultSize: { width: 600, height: 400 }
});
};
return <button onClick={openNewWindow}>Open Window</button>;
}
ReactDesk uses a modular architecture with context providers for state management:
ReactDesk
├── SignalProvider # Event system
├── ViewportProvider # Screen management
├── SessionProvider # Session state
├── ProcessProvider # Process management
├── WindowsProvider # Window management
├── SyscallProvider # System operations
├── ConfigProvider # Configuration
├── ElementsProvider # DOM references
└── MenuProvider # Menu state
# Clone the repository
git clone https://github.com/yourusername/reactdesk.git
cd reactdesk
# Install dependencies
yarn install
# Start development server
yarn dev
# Build for production
yarn build
# Run tests
yarn test
reactdesk/
├── lib/ # Library source code
│ ├── components/ # React components
│ ├── contexts/ # Context providers
│ ├── hooks/ # Custom hooks
│ ├── styles/ # Themes and styles
│ ├── types/ # TypeScript types
│ └── utils/ # Utility functions
├── src/ # Demo application
├── example/ # Example implementations
├── dist/ # Build output
└── scripts/ # Build and utility scripts
We welcome contributions! Please see our Contributing Guide for details.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A powerful React-based desktop environment library for creating Windows 11-like desktop interfaces with window management, taskbar, themes, and more
We found that reactdesk-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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.