A premium web-based Virtual Operating System for deep focus and elite productivity.
Immersive ambient workspace with AI intelligence, draggable windows, real-time analytics, and cinematic backgrounds.
| Feature | Description |
|---|---|
| Window Manager | Custom JS-powered WM with drag, minimize, resize, and z-index layering |
| Boot Sequence | Animated startup with kernel initialization sequence |
| Multi-User Auth | Register/login system with localStorage persistence |
| Cinema Mode | Distraction-free fullscreen with one keypress |
| Particle Canvas | Ambient animated particle system in the background |
| Desktop Clock | Live clock & date widget, always visible |
| Right-Click Menu | Context menu for quick actions on the desktop |
| Screensaver | Auto-activates after 3 minutes of inactivity |
| Spotlight Search | Ctrl+K command palette β search apps, files, and commands |
| Feature | Description |
|---|---|
| Zen Coach | Real-time AI chat powered by Google Gemini 2.5 Flash |
| Productivity Analysis | AI analyzes your Kanban + Timer data for personalized advice |
| Live Weather | Geolocation + Gemini Search grounding for real-time weather |
| Retry Engine | Exponential backoff handles API rate limits gracefully |
| Feature | Description |
|---|---|
| Pomodoro Timer | SVG animated circular progress ring with color feedback |
| Kanban Board | Three-column task matrix (Todo β Doing β Done) with persistence |
| Habit Tracker | Daily habit tracking with π₯ streak counters |
| Stats Dashboard | Sessions, focus minutes, and completion rate analytics |
| Virtual File System | touch, nano, rm commands create real desktop file icons |
| Note Viewer | Files open as draggable windows with content editing |
| Feature | Description |
|---|---|
| 4 Scenes | Rain π§οΈ Β· Sea π Β· Forest π³ Β· Fire π₯ β video + audio sync |
| Volume Control | Smooth slider with mute toggle |
| Theme Picker | 7 accent presets + custom color picker |
| Category | Commands |
|---|---|
| System | help, whoami, neofetch, uptime, ls, date, clear, reboot, logout |
| Files | touch [name], nano [name] "content", rm [name] |
| Apps | open [app], close [app], focus [min], task -a [text] |
| Tools | calc [expr], dice [n], quote, stats, export, coinflip |
| Config | lang [tr/en/ru], scene [rain/sea/forest/fire], weather [city?] |
| Easter Egg | matrix β Interactive narrative simulation game |
| Shortcut | Action |
|---|---|
Ctrl + K |
Open Spotlight Search |
Space |
Start / Stop Focus Timer |
H |
Toggle Cinema Mode |
M |
Mute / Unmute Audio |
F |
Toggle Fullscreen |
Escape |
Close Spotlight / Context Menu |
Custom retryFetch with exponential backoff ensures the AI Coach stays responsive under API rate limits.
async function retryFetch(url, options, retries = 3) {
for (let i = 0; i < retries; i++) {
try {
const response = await fetch(url, options);
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return await response.json();
} catch (error) {
if (i === retries - 1) throw error;
const delay = Math.pow(2, i) * 1000; // 1s β 2s β 4s
await new Promise(resolve => setTimeout(resolve, delay));
}
}
}Zero-dependency WM with stacking context, drag physics, and resize handles.
WM: {
resize: (e, id) => {
const w = document.getElementById(id);
const startW = w.offsetWidth, startH = w.offsetHeight;
const move = (ev) => {
w.style.width = Math.max(280, startW + ev.clientX - e.clientX) + 'px';
w.style.height = Math.max(180, startH + ev.clientY - e.clientY) + 'px';
};
document.addEventListener('mousemove', move);
}
}The Pomodoro timer uses a dynamic SVG circle with color-coded feedback.
disp: () => {
const progress = state.val / state.init;
ring.style.strokeDashoffset = 464.96 * (1 - progress);
ring.style.stroke = progress > 0.5 ? 'var(--accent)' : progress > 0.2 ? '#f59e0b' : '#ef4444';
}Simulates a Unix-like FS in localStorage with duplicate prevention and a 10-file limit.
Canvas-based particle screensaver auto-activates after 3 minutes. Resets on any mouse/keyboard event.
- Node.js β₯ 18
- A Google Gemini API Key (get one here)
# Clone the repository
git clone https://github.com/berkelmali/ZenSpaceOS.git
cd ZenSpaceOS
# Install dependencies
npm install
# Create environment file
echo "API_KEY=your_gemini_api_key_here" > .env
# Start the server
npm startThen open http://localhost:3000 in your browser.
Note: Chrome or Edge recommended for full Web Audio API and Geolocation support.
| Variable | Description | Required |
|---|---|---|
API_KEY |
Google Gemini API Key | β Yes |
PORT |
Server port (default: 3000) | β Optional |
ZenSpaceOS/
βββ index.html # Entire frontend β OS, CSS, and JS (single-file architecture)
βββ server.js # Express proxy server (protects API key)
βββ assets/
β βββ audio/ # Ambient audio loops (rain, sea, forest, fire)
β βββ video/ # Ambient video backgrounds
βββ package.json
βββ .env # API key (not committed)
- β
Spotlight Search (
Ctrl+K) β app/command/file palette - β SVG Progress Ring β animated circular Pomodoro timer
- β Stats Dashboard β sessions, focus minutes, task completion analytics
- β Habit Tracker β daily habits with π₯ streak tracking
- β Desktop Clock β live clock widget in the corner
- β Right-Click Context Menu β quick actions on desktop
- β Window Resize β drag corners to resize any window
- β Screensaver β particle screensaver after 3min inactivity
- β Theme Picker β 7 accent colors + custom color support
- β
New Terminal Commands β
calc,dice,quote,stats,export,uptime - β
Improved
neofetchβ detailed system info with uptime and theme - β 90-min Deep Work timer preset added
- β Updated to Gemini 2.5 Flash model
- Core Window Manager, Pomodoro Timer, Kanban Board
- AI Coach (Gemini 1.5), Audio Studio, Terminal Emulator
- Multi-language support (EN / TR / RU)
- Matrix narrative easter egg
β οΈ PROPRIETARY LICENSE β ALL RIGHTS RESERVED
This software, its design, and associated source code are the exclusive property of Berk ElmalΔ±.
- No Commercial Use β You may not use this code for commercial purposes without explicit written permission.
- No Modification β You may not modify, distribute, or create derivative works.
- No Distribution β You may not host this code on any public repository or server without authorization.
For permission requests, contact the author directly.
Berk ElmalΔ± β Developed as a demonstration of advanced DOM manipulation, AI integration, and system architecture in Vanilla JavaScript.
"Build tools that feel like the future."