Made with ❤️ by devmnn
Focus0 is a next-generation web application that transforms YouTube into a laser-focused study tool, creating a distraction-free environment for watching educational content with built-in focus tracking and productivity features.
- Playback Speed Control: 8 speed options from 0.25x to 2x
- Smart Seeking: Jump forward/backward 10 seconds
- Caption Support: Toggle video captions on/off
- Improved Fullscreen: Enhanced fullscreen experience with proper enter/exit
- Clickable Progress Bar: Jump to any point in the video
- Auto-hiding Controls: Controls fade after 3 seconds of inactivity
- Space/K: Play/Pause video
- ← →: Seek backward/forward 10 seconds
- M: Toggle mute
- F: Toggle fullscreen
- C: Toggle captions
- 1-9: Jump to 10%-90% of video
- < >: Decrease/increase playback speed
- ?: Show keyboard shortcuts help
- Adaptive Sidebar: Sidebar stacks on mobile, side-by-side on desktop
- Smart Breakpoints: Uses xl: breakpoints for better laptop compatibility
- Clean, fullscreen YouTube player integration
- No recommendations, comments, or sidebar clutter
- Embedded player with custom controls
- Support for both individual videos and playlists
- Dynamic focus bar that tracks window activity
- Visual progress indicators and streak counting
- Automatic session pause when window loses focus
- Real-time focus time calculation
- Configurable work/break intervals (default: 25min work, 5min short break, 15min long break)
- Audio notifications for phase transitions
- Customizable settings with modal interface
- Automatic cycle management
- LocalStorage-backed session persistence
- Create, save, and resume study sessions
- Session sharing via unique URLs
- Quick access to saved sessions
- Node.js 18+
- npm or yarn package manager
- 
Clone the repository git clone <repository-url> cd lf0 
- 
Install dependencies npm install 
- 
Start the development server npm run dev 
- 
Open your browser Navigate to http://localhost:3000 
For real playlist content instead of placeholder videos, configure the YouTube Data API:
- 
Get a YouTube API Key - Visit Google Cloud Console
- Create a new project or select existing one
- Enable "YouTube Data API v3"
- Create credentials (API Key)
- Restrict the key to YouTube Data API v3 (recommended)
 
- 
Configure Environment Variables # Create .env.local file in project root cp .env.local.example .env.local # Add your API key NEXT_PUBLIC_YOUTUBE_API_KEY=your_youtube_api_key_here 
- 
Restart Development Server npm run dev 
Note: Without API configuration, playlists will show placeholder content. Individual videos work without API keys.
npm run build
npm startFor detailed deployment instructions including Vercel setup, environment variables, and troubleshooting, see our comprehensive Deployment Guide.
- Framework: Next.js 15 with App Router
- Language: TypeScript for type safety
- Styling: Tailwind CSS with custom dark theme
- Icons: Lucide React icon library
- YouTube Integration: react-youtube library
- State Management: React hooks with LocalStorage persistence
- Build Tools: ESLint, PostCSS
- Enter Session Name: Give your study session a descriptive name
- Add YouTube Content:
- Paste individual video URLs
- Add entire playlist URLs
- Mix and match videos and playlists
 
- Start Studying: Click "Start Session" to enter focus mode
- Focus Tracking: Keep the window focused to maintain your focus streak
- Pomodoro Timer: Use the built-in timer for structured study sessions
- Video Controls: Use mouse or keyboard shortcuts for seamless control
- Progress Monitoring: Track your study time and video completion
| Action | Shortcut | Alternative | 
|---|---|---|
| Play/Pause | Space | K | 
| Seek Backward | ← | |
| Seek Forward | → | |
| Toggle Mute | M | |
| Toggle Fullscreen | F | |
| Toggle Captions | C | |
| Jump to Percentage | 1-9 | (10%-90%) | 
| Decrease Speed | , | |
| Increase Speed | . | |
| Show Help | ? | 
Check out our comprehensive Feature Roadmap for upcoming enhancements including:
- 📊 Study analytics and progress tracking
- 📝 Integrated note-taking with timestamps
- 🤝 Collaborative study sessions
- 🎵 Enhanced ambient sound system
- 📱 Mobile app development
We welcome contributions! Please check our Feature Roadmap for ideas.
- Fork the repository
- Create a feature branch: git checkout -b feature-name
- Make your changes and test thoroughly
- Submit a pull request with detailed description
Made with ❤️ by devmnn