A comprehensive coding time tracking and analytics platform that helps developers monitor their productivity, track coding patterns, and optimize their workflow.
- Real-time tracking: Monitors coding sessions, file changes, and language usage
- Status bar integration: Shows current session time in VS Code status bar
- Token-based authentication: Secure API token management
- Automatic data sync: Sends coding statistics to the web dashboard
- Comprehensive analytics: View coding time, sessions, and productivity metrics
- Language insights: Track time spent on different programming languages
- Folder analysis: Monitor activity across different project folders
- Subscription tiers: Free and premium plans with different data retention periods
- Free Plan: Last 30 days data, basic analytics
- Basic Plan ($9.99/month): Last 3 months data, custom date ranges
- Pro Plan ($19.99/month): Full year data access, advanced analytics
- Enterprise Plan ($49.99/month): Unlimited data, custom integrations
ThePrimeTime/
โโโ Extension/ # VS Code Extension
โ โโโ src/
โ โ โโโ extension.ts # Main extension file
โ โ โโโ codingTracker.ts # Coding time tracking logic
โ โ โโโ statusBarManager.ts # Status bar management
โ โโโ package.json
โ โโโ tsconfig.json
โโโ Backend/ # Node.js API Server
โ โโโ controllers/
โ โ โโโ codingstats.controller.js
โ โ โโโ subscription.controller.js
โ โ โโโ ...
โ โโโ routes/
โ โ โโโ codingstats.route.js
โ โ โโโ subscription.route.js
โ โ โโโ ...
โ โโโ prisma/
โ โ โโโ schema.prisma # Database schema
โ โโโ index.js
โโโ Frontend/ # React Web Application
โ โโโ src/
โ โ โโโ pages/
โ โ โ โโโ Dashboard.tsx
โ โ โ โโโ Subscription.tsx
โ โ โ โโโ ...
โ โ โโโ components/
โ โโโ package.json
โโโ README.md
- Node.js (v16 or higher)
- PostgreSQL database
- VS Code (for extension development)
-
Navigate to Backend directory:
cd Backend -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile with:DATABASE_URL="postgresql://username:password@localhost:5432/primetime" JWT_SECRET="your-jwt-secret" FRONTEND_URL="http://localhost:5173"
-
Set up database:
npx prisma generate npx prisma db push
-
Start the server:
npm run dev
-
Navigate to Frontend directory:
cd Frontend -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Navigate to Extension directory:
cd Extension -
Install dependencies:
npm install
-
Compile the extension:
npm run compile
-
Package the extension:
npm install -g vsce vsce package
-
Install the VS Code Extension:
- Download the
.vsixfile - Install in VS Code:
Extensions > Install from VSIX
- Download the
-
Get your API Token:
- Sign up at the web dashboard
- Navigate to your profile to get your API token
-
Configure the Extension:
- Open VS Code Command Palette (
Ctrl+Shift+P) - Run "Set Prime Time Token"
- Enter your API token
- Open VS Code Command Palette (
-
Start Coding:
- The extension will automatically track your coding sessions
- View your analytics at the web dashboard
-
API Endpoints:
POST /api/v1/coding-stats/submit- Submit coding statisticsGET /api/v1/coding-stats/stats- Get user's coding statisticsGET /api/v1/subscription/plans- Get subscription plansPUT /api/v1/subscription/user- Update subscription
-
Database Schema:
- Users with subscription management
- Coding statistics with detailed tracking
- Projects and blogs for additional features
- Basic coding time tracking
- Language usage statistics
- File and folder activity
- Session count and duration
- Extended data retention (3 months to unlimited)
- Custom date range filtering
- Advanced analytics and reporting
- Export capabilities
- API access for integrations
- JWT-based authentication
- Secure API token management
- Data encryption in transit
- User privacy protection
- Set up PostgreSQL database
- Configure environment variables
- Deploy to your preferred platform (Heroku, AWS, etc.)
- Build the project:
npm run build - Deploy to Vercel, Netlify, or your preferred platform
- Package the extension:
vsce package - Publish to VS Code Marketplace or distribute manually
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue in the GitHub repository
- Check the FAQ section in the web dashboard
- Contact the development team
- Team analytics and collaboration features
- Integration with Git providers
- Mobile app for on-the-go analytics
- Advanced reporting and insights
- Custom integrations and webhooks
- Machine learning insights for productivity optimization