NEX OS is a browser-based desktop operating system built on a layered React architecture where every subsystem — windowing, file storage, process management, and hardware telemetry — is a composable React context provider. The result is a fully reactive OS kernel running entirely in the browser: no server, no native binary, no Electron wrapper. React 19 manages the UI state machine, AssemblyScript and Rust compile to WebAssembly for CPU-intensive tasks, and Three.js renders the immersive 3D backgrounds.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/shadownrx/windows/llms.txt
Use this file to discover all available pages before exploring further.
Provider Composition Tree
At startup,App.tsx mounts a nested stack of context providers before any UI is rendered. Each provider owns a distinct domain of OS state, and together they form the layered kernel of the system.
FileSystemProvider and NexRuntimeProvider sit above WindowManagerProvider so that any window content can read from or write to the VFS and the runtime without creating circular dependencies.
OS Lifecycle States
NEX OS behaves like a real operating system with a linear boot and shutdown sequence. ThesystemState property from useSettings() drives which screen is rendered inside AppContent. The full state machine type is:
OFF → BOOTING
The user clicks the power button on
OffScreen. setSystemState('BOOTING') fires and BootScreen renders the animated BIOS POST sequence for 2.5 seconds.BOOTING → WINDOWS_BOOT
After the POST timer expires,
setOsType('windows') locks in the OS selection and WindowsBoot plays the Windows loading animation for 3.5 seconds.WINDOWS_BOOT → LOGIN
The login screen mounts. The user’s wallpaper is already available via
useSettings().LOGIN → DESKTOP
On successful login,
setSystemState('DESKTOP') renders Desktop. The startup sound plays and a welcome notification fires — both one-time actions guarded by a useRef flag.Data Flow
Every user interaction follows the same reactive cycle through the provider tree. No component reaches outside its own layer — data travels strictly through hooks.focusWindow(id) from useWindowManager() — WindowManager updates its state, and the Window component for that ID re-renders with the new zIndex and focused class, without any parent needing to coordinate.
Design Principles
NEX OS is built on four foundational principles that guide every architectural decision:| Principle | Implementation |
|---|---|
| Modularity | Every application is self-contained. Apps are registered in constants/apps.tsx and rendered inside the Window HOC without knowing anything about the windowing system. |
| Performance | CPU-intensive operations (Task Manager metrics, process telemetry) are offloaded to WebAssembly modules compiled from AssemblyScript (assembly/index.ts) and Rust (wasm-engine/src/lib.rs), achieving up to 100× speedup over pure JavaScript. |
| Reactivity | React context ensures all OS state is globally available without prop drilling. Components subscribe only to the slices they need, minimising unnecessary re-renders. React.memo is applied to the Window component to prevent cascading renders when z-index updates. |
| Scalability | New apps are added by creating a component in src/components/apps/ and adding one entry to the app registry — no changes to the OS core are required. The same pattern extends to themes, widgets, and virtual desktop layouts. |
The
UEFI state lets the user switch between the Windows 11 and NEX OS desktop environments at boot time. Both share the same underlying provider stack — only the top-level desktop component changes.Explore Further
Window Manager
Deep-dive into how WindowManagerContext manages window lifecycle, z-index layering, snap layouts, and virtual desktops.
Virtual File System
Learn how NEX OS implements an in-memory sandboxed VFS with full CRUD support using React context.
NEX Runtime
Explore the simulated npm/pnpm execution engine, .nex binary launching, and process telemetry subsystem.
WASM Overview
Understand how AssemblyScript and Rust compile to WebAssembly to power the performance-critical OS layers.