FocusGuard is a local-first desktop productivity and focus management system designed to help users achieve deep focus through structured sessions, distraction blocking, and ML-powered insights.
- Focus Session Timer: Structured work intervals (Pomodoro style).
- Process Blocking: Blocks distracting applications during active sessions.
- Behavior Tracking: Monitors active window usage and idle time.
- Gamification: Earn points and maintain streaks based on focus quality.
- Local Analytics: Detailed productivity charts and focus scores.
- ML-Driven Insights: Local models to predict optimal focus times.
- Language: Python 3.11+
- UI Framework: PyQt5
- Database: SQLite3
- Analysis: scikit-learn, matplotlib, psutil
- Notifications: Plyer
Focus-OS/
├── focusguard/
│ ├── core/ # Business logic & services
│ ├── db/ # Data persistence (Repository pattern)
│ └── ui/ # PyQt5 views and controllers
├── main.py # Application entry point
├── config.py # Centralized configuration
└── requirements.txt
- Python 3.11 or higher
- Virtual environment (recommended)
- Clone the repository:
git clone <repository-url> cd Focus-Guide
- Create and activate a virtual environment:
python -m venv venv # Windows: venv\\Scripts\\activate # macOS/Linux: source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python main.py