A VS Code extension that monitors your coding activity and provides insights into your coding habits, with an optional web dashboard for deeper analytics.
Features
Tracks daily coding hours
Monitors files edited and languages used
Provides a visual dashboard of your coding activity inside VS Code
Computes computational complexity and suggestions for highlighted code (via OpenAI API, credentials required)
Optional: Web dashboard (Next.js, Tailwind CSS) for detailed analytics on http://localhost:3002
Stores coding statistics locally
Installation
Clone this repository
Run npm install in the root directory to install extension dependencies
Press F5 to start debugging the extension in a new VS Code window
Tailwind CSS is already set up. You can use Tailwind utility classes in your React components. See globals.css, tailwind.config.js, and postcss.config.js in src/app for configuration.
Usage
The extension automatically starts tracking when you open files in VS Code
To view your coding analytics:
Click on the Lock-In AI icon in the activity bar
Or use the command palette (Ctrl+Shift+P or Cmd+Shift+P) and type "Show Lock-In AI Dashboard"
To analyze code complexity and get suggestions:
Highlight code in the editor; the dashboard will display complexity and suggestions (requires OpenAI API key for full functionality)
To view detailed analytics in your browser:
Click the "View Detailed Analytics" button in the dashboard (ensure the web dashboard is running on port 3002)
Data Privacy
All data is stored locally on your machine and is not shared with any external services, except when using the OpenAI API for code analysis (if credentials are provided).
Contributing
Feel free to submit issues and enhancement requests!