Skip to content

Latest commit

 

History

56 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

macweb.dev preview — placeholder

macweb.dev

macOS, rebuilt for the modern web.

No virtualization. No installation. No Apple hardware required — just open a tab and boot into macOS.


Live Demo — Svelte 5 Live Demo — Classic / System 7 Live Demo — GitLab Archived React 19


Svelte 5 SvelteKit 2 TypeScript React 19 Vite 7 SCSS License: MIT


What's Changed

  • Three modes in one site. The Version Switcher now exposes:
    • React 19 — the archived implementation;
    • Svelte 5 — the active modern build;
    • Classic Mode — a nested System 7 build item under Svelte 5.
  • Classic Mode is a real separate version. It is not a CSS skin. It has its own minimal route, components, state, windows, Dock, menu bar, favicons, and four applications.
  • Dedicated Classic icons. Favicons and the web manifest live in static/favicons-classic/; the modern build still uses static/favicons/.
  • Refreshed System Settings. The first eight sections — Wi‑Fi, Bluetooth, Network, VPN, Notifications, Sound, Focus, and Screen Time — now share one macOS 26-style layout.
  • Local icon system. The external icon library was removed. Icons are centralized in local UiIcon.svelte and the uiIcons.ts registry.
  • Fewer dependencies. No new packages were added.
  • Preserved signatures. Exact ASCII art, ANSI-aware neofetch output, Music SCSS/logic, BootScreen behavior, smooth themes, and dynamic Dock clearance all remain intact.

Why macweb.dev?

macweb.dev is a browser-native recreation of the macOS desktop experience. Instead of static mockups, it reproduces the physics, window management, and system workflows that make macOS feel responsive and alive.

  • True Desktop Shell — z-ordered draggable and resizable windows, spring-style Dock magnification, live menu bar, custom cursors, and Light/Dark themes.
  • Modern Apps — Finder, Safari, Notes, Terminal, Music, System Settings, Calendar, and Calculator.
  • Classic Build — a minimal System 7-style desktop with Finder, Calculator, Notes, and Settings.
  • Runtime Switcher — compare the active Svelte 5 build, the Classic build, and the archived React 19 implementation from the same page.

Gallery

Modern desktop — placeholder

Desktop, Dock & Finder — windows, z-order, Dock magnification, and themes

System Settings — placeholder

System Settings — Wi‑Fi, Bluetooth, Network, VPN, and more

Terminal — placeholder

Terminal — help, neofetch, figlet, live git log

Version Switcher — placeholder

Version Switcher — React 19, Svelte 5, and nested Classic Mode

Classic desktop — placeholder

Classic / System 7 — a separate minimal desktop build

Classic apps — placeholder

Classic apps — Finder, Calculator, Notes, and Settings


Live Environments

All implementations are compiled into a single static bundle and can be opened through the in-app version switcher.

Implementation Status GitHub Pages GitLab Pages
Svelte 5 + SvelteKit Active gaminghackintosh.github.io/macweb.dev marivessence.gitlab.io/macweb.dev
Classic / System 7 Active gaminghackintosh.github.io/macweb.dev/svelte/classic marivessence.gitlab.io/macweb.dev/svelte/classic
React 19 Archived gaminghackintosh.github.io/macweb.dev/react marivessence.gitlab.io/macweb.dev/react

System Capabilities

Modern build

Module Highlights Status
Window Manager Drag, multi-edge resize, minimize, zoom, focus stack, z-index ✅
Dock & Menu Bar Spring magnification, live clock, system toggles, context menus ✅
Finder Virtual filesystem, tabs, Quick Look preview, context actions ✅
Safari Embedded browser shell 🟡
Notes Note list, editing, and local persistence ✅
Terminal help, ls, cat, neofetch, figlet, live GitHub git log ✅
Music Playback, tracklist, progress, volume, custom SCSS styling ✅
System Settings Wi‑Fi, Bluetooth, Network, VPN, Notifications, Sound, Focus, Screen Time, Display ✅
Calendar Calendar grid and events ✅
Calculator Arithmetic and keyboard input ✅
Themes Light / Dark with a soft transition and reduced-motion support ✅

Classic / System 7 build

Module Highlights Status
Classic shell Dedicated route, menu bar, pinstripe desktop, windows, Dock ✅
Finder Locations, list/icon views, file selection ✅
Calculator Working calculator with buttons and keyboard input ✅
Notes Notes with localStorage persistence ✅
Settings Desktop pattern and 12/24-hour clock ✅
Favicons Separate set from static/favicons-classic/ ✅

Architecture & Tech Stack

┌──────────────────────────────────────────────────────────────┐
│                     macweb.dev (Browser)                     │
├─────────────────────┬─────────────────────┬──────────────────┤
│  Svelte 5 (Main)    │  Classic / System 7 │  React 19 (Arc.) │
│  • Runes ($state)   │  • own route        │  • Hooks/Context │
│  • SvelteKit static │  • own components   │  • /react/ mount │
│  • TypeScript 5     │  • own four apps    │  • frozen build  │
├─────────────────────┴─────────────────────┴──────────────────┤
│        Shared SCSS system, wallpapers, icons & assets        │
└──────────────────────────────────────────────────────────────┘
  • State & Reactivity: Svelte 5 runes ($state, $derived, $effect) power the window manager, themes, wallpapers, context menus, and Classic desktop.
  • Styling: Modular SCSS with macOS tokens, vibrancy, and careful theme transitions.
  • Icons: Local UiIcon.svelte and uiIcons.ts; Network settings use PNG icons from src/lib/assets/icons/Settings_menuSections/Network/.
  • Build: @sveltejs/adapter-static with a 200.html fallback.
  • Development base path: /macweb.dev/svelte.

Implementation Notes

  • System-facing UI labels stay English; localized language options are limited to the Settings selector.
  • Wi‑Fi content was changed only in its header; the sidebar icon was a separate change.
  • Music glass surfaces do not use nested backdrop-filter; blur is disabled during drag/resize.
  • Window sizes are clamped against the real measured Dock height.
  • Full-size and zoomed windows respect dynamic Dock clearance.

Quick Start

git clone https://github.com/gaminghackintosh/macweb.dev.git
cd macweb.dev
git checkout svelte-new

npm install
npm run dev        # Svelte 5 app  → http://localhost:5173/macweb.dev/svelte/
npm run dev:react  # React archive → ../macweb.dev-react
npm run dev:all    # both dev servers

Classic build during local development:

http://localhost:5173/macweb.dev/svelte/classic/

Build & Typecheck

npm run check      # svelte-check + TypeScript validation
npm run build      # Static production build → build/
npm run preview    # Preview production bundle locally

Repository & CI/CD

Branch Role
main Project documentation, previews, and license
svelte-new Active development: Svelte 5, SvelteKit, TypeScript, Classic / System 7
react-source Archived React 19 source code
react Frozen production snapshot of the React build
gh-pages Combined static deployment artifact

Contributing

  1. Fork the repository and branch off svelte-new:
    git checkout -b feat/your-app svelte-new
  2. Build your application and register it in the app registry.
  3. Run npm run check and npm run build.
  4. Open a Pull Request.

Released under the MIT License.
Crafted by @gaminghackintosh