Skip to main content
Mouhssine Lakhili

Interactive experiment

OS/404

A fictional operating system that runs in your browser.

OS/404 starts like a real system: a boot sequence, then a desktop with a dock, a command palette and a window manager. Its six apps share one virtual file system, and everything you create stays in this browser.

Built with: React 19, TypeScript, Pointer Events, Canvas API, localStorage

It opens full screen. To leave, use the power button in the top bar or your browser's Back button.

What's inside

  • File System

    Browse folders, search and sort, create, rename and delete files, then open text files in Notepad.

  • Terminal

    A simulated shell with history and tab completion: ls, cd, cat, mkdir, neofetch and a few hidden commands.

  • Notepad

    Tabs, renaming and autosave. Your documents are real files of the virtual file system.

  • System Monitor

    CPU, memory and disk charts that look alive. The values are simulated, never read from your device.

  • Pixel Studio

    A 32×32 canvas with pencil, eraser, fill and color picker, undo and redo, and PNG export.

  • Settings

    Wallpapers, accent colors, clock format and reduced motion, plus a clean reset.

Controls and shortcuts

Everything works with a mouse, a keyboard or a touch screen. On a phone, apps open full screen.

ShortcutAction
Ctrl / ⌘KOpen the command palette
EscClose the palette, a menu or a dialog
Ctrl / ⌘SSave the current document in Notepad
Ctrl / ⌘ZUndo in Pixel Studio
Ctrl / ⌘ShiftZRedo in Pixel Studio
TabComplete a command or a file name in Terminal
Double-click a title barMaximize or restore a window

How it's built

OS/404 is written in React and TypeScript, without any extra dependency. A small store built on useSyncExternalStore drives the window manager, so moving a window only re-renders that window.

File System, Terminal and Notepad share the same virtual file system. Data is saved in versioned localStorage entries, and missing or malformed data falls back to safe defaults instead of breaking the desktop.

  • Windows are moved with pointer events and always stay within reach.
  • Pixel Studio draws on a canvas and exports the artwork itself as a PNG file.
  • The system is only downloaded when you boot it, so this page stays light.
  • On a phone, apps open full screen and the dock becomes an app switcher.

Your files stay in this browser

Documents, files, drawings and settings are stored in this browser's localStorage, under keys that start with os404:. They are never sent to a server, and you can erase everything from the Settings app.

The System Monitor values are simulated: OS/404 does not read your device's hardware.

Visitor statistics

To know whether these pages find readers, their traffic is measured with Vercel Web Analytics, the analytics tool of the site's host. Each page view sends Vercel the page address and, if you followed a link from another site, that site's address; from my checks, no cookie is set. Vercel derives an approximate location, the device type, the operating system and the browser, for overall traffic statistics only. There is no Google Analytics here, and nothing you do in OS/404 is sent: no file, document, drawing or setting. To stop being counted, use “Cookie settings” at the bottom of every page.

Does this project speak to you?

I'm available for a permanent role and for freelance missions. Let's talk about your team or your project.

All mini projects