Stay focused, block distractions, and boost your productivity with BlockIt!
- β±οΈ Focus Mode - Set custom timers (5-60 mins) to block distracting websites
- π Site Blocking - Automatically blocks YouTube, social media, and custom sites during focus
- π Statistics Tracking - Monitor your productivity with detailed stats:
- Total focus time
- Sessions completed
- Sites blocked
- Current & longest streaks
- π Leaderboard - Compete with friends and see who's most productive
- π₯ Friends System - Add friends, view their stats and activity in real-time
- οΏ½ Study Groups - Create or join study groups with group chat and collective stats tracking
- π¬ Community Chat - Global chat room to connect with other focused users
- π¨ Custom Themes - Personalize your blocked page with colors and avatars
- π Focus Heatmap - GitHub-style calendar showing your 90-day focus history
- π‘ Daily Quotes - Motivational quotes on blocked pages to keep you inspired
- YouTube Watch Tracking - See what your friends are watching
- Real-time Activity - Live updates of friends' online status
- Friend Requests - Privacy-focused friend system with accept/reject
- Focus Mode Protection - Chat disabled during focus to eliminate distractions
- Auto Sync - All stats sync across devices via cloud backend
- Session history
- Focus streaks
- Sites blocked counter
- Time-based analytics
- Activity feed
-
Download the Source Code
# Option A: Clone with Git git clone https://github.com/imAaryash/blockit-extension.git cd blockit-extension/focus-extension # Option B: Download ZIP # Go to https://github.com/imAaryash/blockit-extension # Click "Code" β "Download ZIP" # Extract the ZIP file
-
Load Extension in Chrome
- Open Google Chrome browser
- Type
chrome://extensions/in the address bar and press Enter - Enable "Developer mode" using the toggle switch in the top-right corner
- Click the "Load unpacked" button that appears
- Navigate to and select the
focus-extensionfolder (the one containingmanifest.json) - The extension will now appear in your extensions list β
-
Pin the Extension to Toolbar
- Click the Extensions icon (puzzle piece π§©) in Chrome's toolbar
- Find "Focus Mode" in the dropdown
- Click the pin icon (π) next to it to keep it visible
-
Verify Installation
- You should see the Focus Mode icon in your Chrome toolbar
- Click it to open the popup
- If you see the interface, installation was successful! π
Important Notes:
- The extension must remain in the folder you selected - don't delete or move it
- You'll see a "Developer mode" badge - this is normal for unpacked extensions
- The extension will remain installed until you remove it from
chrome://extensions/ - Chrome may show warnings for developer mode extensions - this is normal and safe
-
Register Account
- Click the extension icon
- Click "Create Account"
- Fill in:
- Username (unique, lowercase)
- Display Name (your visible name)
- Password (minimum 6 characters)
- Avatar (emoji, e.g., π¨βπ»)
- Click "Register"
-
Login
- Enter your username and password
- Click "Login"
- Your stats will sync automatically
-
Start Focus Session
- Click extension icon
- Choose duration (5-60 minutes)
- Click "Start Focus"
- Distracting sites are now blocked!
-
During Focus
- Timer counts down
- Blocked sites show custom page
- Progress tracked in real-time
- Chat is disabled to keep you focused
-
End Session
- Click "End Focus" to stop early
- Or wait for timer to complete
- Stats automatically updated
-
Send Friend Request
- Go to Dashboard β Social
- Click "Friends" tab
- Enter friend's username
- Click "Add Friend"
-
Accept Requests
- Click "Requests" tab
- See incoming requests
- Click "Accept" or "Reject"
-
View Friend Activity
- See who's online
- Check what they're watching
- View their focus stats
- Real-time activity updates
-
Access Chat
- Go to Social page
- Click "Community Chat" tab
- Chat disabled during focus mode
-
Chatting
- Type message and press Enter
- See online users list
- Real-time messaging
- Global community room
- Check Rankings
- Go to Dashboard β Social
- Click "Leaderboard" tab
- See top 50 users by focus time
- Your rank highlighted
- Avatar - Change your emoji avatar
- Blocked Sites - Customize which sites to block during focus
- Theme - Choose blocked page colors
- Timer Presets - Quick access to 5, 15, 30, 60 min sessions
- Click extension icon β Settings
- Or Dashboard β Options
- Total focus time
- Sessions completed
- Sites blocked
- Current streak
- Longest streak
- Recent friend activity
- YouTube watch history
- Focus sessions
- Real-time updates
- Friends list
- Online status
- Friend requests
- Leaderboard
- Community chat
- Create public or private groups
- Group chat with real-time messaging
- Collective stats tracking (total focus time, sessions)
- Mark groups as "Active" to auto-track your focus sessions
- View members with roles (admin/member)
- 50-member capacity per group
- Focus Heatmap - 90-day calendar view of your daily focus activity
- GitHub-style visualization with 5 intensity levels
- Hover tooltips showing exact times
- Color-coded: no focus β light green β dark green (120+ mins)
- Daily Quotes - Motivational quotes on blocked pages that change daily
- Stats Display - Today's focus, streak, and total time shown on blocked pages
Focus timer with custom blocked page
Complete stats overview and analytics
Friends, leaderboard, and community chat
Beautiful custom page shown during focus
- Secure Authentication - Passwords hashed with bcrypt (10 rounds)
- JWT Tokens - Secure session management
- Friend Requests - Privacy-first friend system
- No Tracking - We don't track your browsing (except blocked sites count)
- Open Source - Full code transparency
- Frontend: Vanilla JavaScript, HTML5, CSS3
- Backend: Node.js, Express.js
- Database: MongoDB Atlas
- Real-time: Socket.IO
- Hosting: Render (free tier)
- Authentication: JWT + bcrypt
Register:
1. Click extension icon
2. "Create Account" button
3. Fill username, display name, password, avatar
4. Click "Register"
Login:
1. Click extension icon
2. Enter username and password
3. Click "Login"
Logout:
1. Dashboard β Options
2. Click "Logout"
Delete Account:
1. Dashboard β Options
2. Scroll to bottom
3. Click "Delete Account"
4. Confirm deletion
Quick Start:
1. Click extension icon
2. Click preset time button (5/15/30/60 min)
3. Focus mode activated!
Custom Timer:
1. Click extension icon
2. Drag slider to desired minutes
3. Click "Start Focus"
Early End:
1. Click extension icon during focus
2. Click "End Focus"
3. Confirm to stop early
Add Friend:
Social β Friends β Enter username β Add Friend
Accept Request:
Social β Requests β Click "Accept" on request
Remove Friend:
Social β Friends β Click "Remove" on friend
View Profile:
Social β Friends β Click friend's name
Problem: Extension icon doesn't appear
- Solution: Refresh
chrome://extensions/and reload extension
Problem: Can't login/register
- Solution: Check internet connection, server might be waking up (wait 30 seconds)
Problem: Stats not syncing
- Solution: Logout and login again to force sync
Problem: Sites not blocking
- Solution: Reload the tab after starting focus mode
Problem: Timer not starting
- Solution: Check if another focus session is active
Problem: Can't end focus early
- Solution: Reload extension and try again
Problem: Friends not showing online
- Solution: Refresh the social page
Problem: Chat not working
- Solution: Check if focus mode is active (chat disabled during focus)
Problem: Friend requests not appearing
- Solution: Click "Requests" tab to load them
Problem: "Failed to connect to server"
- Solution:
- Server may be sleeping (free tier)
- Wait 30 seconds and try again
- Check https://focus-backend-g1zg.onrender.com/api/health
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
MIT License - feel free to use and modify!
Created by Aaryash
- GitHub: @imAaryash
Having issues?
- Open an Issue
- Check Troubleshooting section
- Contact: [Your Email/Discord]
- Custom site blocking rules
- Focus statistics export
- Mobile app companion
- Team/group challenges
- Pomodoro timer integration
- Browser notifications
- Dark mode
- More blocking categories
If you find BlockIt helpful, please:
- β Star this repository
- π Report bugs
- π‘ Suggest features
- π’ Share with friends
Made with β€οΈ for productive people
Stay focused, stay productive! π