zOS Desktop

A beautiful, macOS-inspired desktop environment for the web. Built with React and TypeScript.

Learn More View on GitHub Fork Edit
๐ŸŽ zOS
Thu, Dec 25 3:30 AM
Calculator
42
๐Ÿงฎ
โฌ›
๐Ÿ“
๐Ÿ“„
๐Ÿ•
๐Ÿ“…
๐ŸŒค๏ธ
๐Ÿช

Features

๐ŸชŸ

Window Management

Draggable, resizable windows with familiar traffic light controls. Z-index management for proper layering.

๐ŸŽฏ

Dock

macOS-style dock with hover animations, running indicators, and app icons.

๐Ÿ“‹

Menu Bar

System menu bar with app menus, status icons, and clock display.

๐Ÿ”

Spotlight Search

Quick app launcher with keyboard shortcut (โŒ˜+Space) and search filtering.

๐Ÿ”’

Lock Screen

Beautiful lock screen with time display and user authentication.

โšก

Boot Sequence

Animated boot sequence with progress bar and logo display.

Usage

Installation

npm install @z-os/desktop @z-os/ui @z-os/apps @z-os/sdk

Basic Setup

import React from 'react';
import { createRoot } from 'react-dom/client';
import { ZDesktop, ZDock, ZMenuBar } from '@z-os/desktop';
import { BUNDLED_APPS } from '@z-os/apps';
import '@z-os/desktop/styles.css';

function App() {
  return (
    <ZDesktop
      apps={BUNDLED_APPS}
      wallpaper="gradient"
      showDock={true}
      showMenuBar={true}
    />
  );
}

createRoot(document.getElementById('root')!).render(<App />);

Custom Configuration

import { ZDesktop, BootSequence, LockScreen } from '@z-os/desktop';

function App() {
  const [booting, setBooting] = useState(true);
  const [locked, setLocked] = useState(false);

  if (booting) {
    return (
      <BootSequence
        onComplete={() => setBooting(false)}
        logo="๐ŸŽ"
        version="4.2.0"
        duration={3000}
      />
    );
  }

  if (locked) {
    return (
      <LockScreen
        username="User"
        onUnlock={() => setLocked(false)}
        time={new Date()}
      />
    );
  }

  return <ZDesktop apps={BUNDLED_APPS} />;
}

Keyboard Shortcuts

Shortcut Action
โŒ˜ + Space Open Spotlight Search
โŒ˜ + L Lock Screen
โŒ˜ + W Close Window
โŒ˜ + M Minimize Window
โŒ˜ + Q Quit App
Escape Close Spotlight / Dialog

Running the Demo

# Clone the repository
git clone https://github.com/z-os4/desktop.git
cd desktop

# Install dependencies
npm install

# Start development server
npm run dev

# Run tests
npm test

Related Packages