A powerful, AI-powered time tracking application that automatically monitors your computer usage and provides productivity analytics.
- Monitors active windows and applications in real-time
- Tracks website usage and browsing patterns
- Categorizes activities automatically (productivity, development, social media, etc.)
- Runs silently in the background with system tray integration
- Real-time statistics and productivity metrics
- Interactive charts showing time distribution by category
- Top applications and websites tracking
- Daily, weekly, and monthly activity views
- Adjustable tracking intervals
- Auto-start on system boot
- Privacy-focused local data storage
- Export and backup capabilities
The application features a modern, clean interface with:
- Gradient sidebar navigation
- Real-time activity monitoring
- Interactive charts and statistics
- Comprehensive settings management
- Node.js (v16 or higher)
- npm or yarn
- macOS, Windows, or Linux
-
Clone the repository
git clone <repository-url> cd ai-time-tracker
-
Install dependencies
npm install
-
Start the application
npm start
-
For development
npm run dev
# Build for current platform
npm run build
# Build for all platforms
npm run distFor AI-powered categorization, you'll need a TogetherAI API key:
- Get an API key from TogetherAI
- Open the application settings
- Enter your API key in the "TogetherAI API Key" field
- All data is stored locally in SQLite database
- No data is sent to external servers (except TogetherAI API calls)
- Database location:
~/.ai-time-tracker.db
-
Launch the application
- The app will appear in your system tray
- Click the tray icon to open the main window
-
Start tracking
- Click "Start Tracking" in the sidebar
- The app will begin monitoring your activity automatically
-
View your data
- Dashboard: Overview of your productivity metrics
- Activities: Detailed list of all tracked activities
- Settings: Configure tracking preferences
- Productivity: Work-related applications, email, documents
- Development: Coding tools, IDEs, technical work
- Communication: Chat apps, video calls, messaging
- Social Media: Social networking sites
- Entertainment: Games, videos, music
- News: Reading news and current events
- Shopping: Online shopping and e-commerce
- System: File management and system tools
The app calculates a productivity score (1-10) based on:
- Time spent in productive categories
- Balance between work and leisure activities
- Consistency in productive time usage
src/
βββ main.js # Main Electron process
βββ tracker/
β βββ activity-tracker.js # Activity monitoring logic
βββ database/
β βββ database-manager.js # SQLite database operations
βββ ai/
β βββ ai-analyzer.js # OpenAI integration
βββ renderer/
βββ index.html # Main UI
βββ styles.css # Styling
βββ renderer.js # UI logic
- Electron: Cross-platform desktop application framework
- SQLite: Local data storage
- Chart.js: Interactive data visualization
- TogetherAI API: AI-powered insights using Llama models
- AppleScript: Window and application tracking (macOS only)
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
- Only tracks active window titles and application names
- No keystrokes, passwords, or personal content is recorded
- All data is stored locally on your device
- macOS: No additional permissions required (uses AppleScript)
- Windows: Not supported (macOS only)
- Linux: Not supported (macOS only)
App not tracking activities
- Check if tracking is enabled in the sidebar
- Ensure the app has necessary permissions
- Restart the application
Charts not displaying
- Wait for some activity data to be collected
- Check browser console for JavaScript errors
- Refresh the dashboard
AI insights not working
- Verify TogetherAI API key is correctly entered
- Check internet connection
- Ensure AI insights are enabled in settings
macOS
- No additional permissions required
- Uses native AppleScript for window tracking
- No screen recording permissions needed
Windows
- Not supported in this version
Linux
- Not supported in this version
MIT License - see LICENSE file for details
For issues and questions:
- Check the troubleshooting section
- Review existing GitHub issues
- Create a new issue with detailed information
- Export data to CSV/JSON
- Custom activity categories
- Productivity goals and alerts
- Team collaboration features
- Mobile companion app
- Advanced AI analytics
- Integration with calendar apps
- Pomodoro timer integration
Note: This application is designed for personal productivity tracking. Please respect privacy and use responsibly.