Focus is a Chrome extension that helps you stay on task by monitoring your browsing habits and gently reminding you when you're getting distracted.
| Extension | Notification |
|---|---|
![]() |
![]() |
- Focus Mode: When enabled, monitors your browsing and alerts you when you spend too much time on non-focus tabs
- Customizable Alert Timer: Set how long you can browse distracting sites before receiving a reminder
- Time Tracking: Automatically records time spent on productive sites in your focus list
- Statistics Dashboard: View detailed statistics about your productive browsing time
- Multiple Window Support: Works across all your Chrome windows
- Real-time Tab Detection: Immediately recognizes when you switch between tabs
- Smart Domain Recognition: Remembers sites in your focus list even if you close and reopen them
- Download or clone this repository
- Open Chrome and navigate to
chrome://extensions - Enable "Developer mode" using the toggle in the top-right corner
- Click "Load unpacked" and select the extension folder
- The Focus extension should now appear in your toolbar
- Click the Focus extension icon in your toolbar
- Under "Focus List", check the tabs you want to include as productive tabs
- Click "Save Focus List" to store your selections
- Toggle the "Focus Mode" switch to ON
- You'll now be monitored while browsing
- When you spend too much time on non-focus tabs, you'll receive a notification
- In the "Alert Settings" section, enter the number of seconds you want to allow for distraction
- Click "Save Settings" to apply your changes
- Default is 30 seconds
- Your productive time is automatically tracked
- The "Focus Time Stats" section shows time spent on each productive site
- You can see total time and when you last visited each site
- Focus List Creation: You select which tabs are productive (focus tabs)
- Monitoring: When Focus Mode is enabled, the extension tracks which tabs you're using
- Alerts: If you spend more than your set time on non-focus tabs, you receive a notification
- Time Tracking: Time spent on focus tabs is recorded for your statistics
- Smart Detection: The extension recognizes domains, not just specific URLs, so all pages on your focus sites are tracked
- Built with vanilla JavaScript, HTML, and CSS
- Uses Chrome Extension Manifest V3
- Leverages the following Chrome APIs:
- tabs
- storage
- notifications
- alarms
- windows
Focus respects your privacy:
- All data is stored locally on your device
- No browsing data is sent to external servers
- No analytics or tracking is implemented
This project is released under the MIT License.

