A modern, web-based productivity workspace combining a customizable Pomodoro timer, real-time synthesized ambient sounds (powered by the Web Audio API), embedded YouTube music player, and task management with daily streak tracking.
🌐 Live Demo: https://focus-space-podomoro.netlify.app/
- Overview
- Key Features
- Keyboard Shortcuts
- How It Works
- Tech Stack
- Privacy & Security
- Getting Started Locally
Staying focused in a noisy or distracting environment can be challenging. FocusSpace provides an all-in-one distraction-free workspace that pairs structured time-boxing (Pomodoro Technique) with real-time audio soundscapes and task tracking.
Unlike traditional noise apps, FocusSpace synthesizes ambient audio (rain, waves, brown noise) locally in real time using the browser's Web Audio API—eliminating the need to stream or download heavy audio files.
- 🎯 Customizable Pomodoro Timer: Seamless switching between Focus, Short Break, and Long Break modes with auto-cycling options.
- 🌧️ Real-Time Synthesized Ambient Sounds: Generates high-quality ambient audio (Rain, Ocean Waves, Cafe ambiance, Deep Brown Noise) on-the-fly using the Web Audio API without fetching external sound files.
- 🎵 Integrated YouTube Music Player: Play embedded background music or select pre-curated chill playlists (Lofi Radio, Chillhop, Chill Jazz).
- 📝 Task & Active Task Tracker: Add tasks, set estimated Pomodoro intervals, and attach active tasks directly to your timer.
- 🔥 Daily Stats & Streak Counter: Track completed Pomodoro sessions and build consistent daily productivity habits.
- 🧘 Zen / Focus Mode: Hide all interface clutter with a single click or keyboard shortcut (
F) for full immersion. - 🔒 Privacy-First Architecture: 100% client-side application. All tasks, settings, and history stay safely on your device in
localStorage.
| Shortcut | Action |
|---|---|
| Space | Start / Pause Timer |
| F | Toggle Zen / Focus Mode |
| Esc | Exit Zen Mode / Close Modals & Dialogs |
- Set Up Your Task: Add a task to the checklist and assign an estimated number of Pomodoros.
- Choose Your Soundscape: Mix real-time synthesized ambient sounds or load your favorite YouTube focus playlist.
- Start the Timer: Press
Spaceto initiate your focus session. - Enter Zen Mode: Press
Fto clear away UI distractions. - Take Breaks & Track Progress: Follow the automated break cycles and build your daily focus streak!
- UI & Styling: HTML5, Tailwind CSS, Lucide Icons
- Application Logic: Vanilla JavaScript (ES6+)
- Audio Engine: Web Audio API (Synthesized background audio & chime notifications)
- Integrations: YouTube IFrame Player API
- Storage: Web Storage API (
localStorage) - Hosting: Netlify
- Zero Data Collection: Your tasks, timers, and productivity stats are never uploaded to any backend server.
- No Heavy Downloads: Ambient audio sounds are generated algorithmically inside your browser, saving bandwidth and keeping performance ultra-lightweight.
Follow these steps to run the project locally:
git clone [https://github.com/karinaara/focus-space.git](https://github.com/karinaara/focus-space.git)
cd focus-space