Full-stack developer productivity platform — habit tracking, LeetCode integration, correlation engine, and analytics dashboard.
CodeHabit unifies habit logging, LeetCode performance analytics, coding quizzes, and a developer diary — with a correlation engine that statistically analyzes how daily habits impact coding output.
Key Features:
- Habit tracker with GitHub-style SVG heatmap
- LeetCode sync via GraphQL API — live stats, submissions, progress
- Correlation engine — habits vs. coding performance analysis
- Quiz system — 30 MCQs with scoring history
- Developer diary — daily entries with task tracking and timer
Next.js App Router (Server Components)
├── /api/habits → Habit CRUD + daily logging
├── /api/leetcode → GraphQL sync + stats
├── /api/analytics → Correlation engine
├── /api/quiz → Questions + scoring
├── /api/diary → Entries + tasks
└── Prisma ORM → PostgreSQL (Vercel)
+ LeetCode GraphQL API (external)
| Component | Technology |
|---|---|
| Framework | Next.js 15 (App Router, Server Components) |
| Language | TypeScript |
| Database | PostgreSQL (Vercel Postgres) + Prisma |
| Auth | JWT |
| UI | Tailwind CSS + shadcn/ui |
I designed the data model, planned the correlation algorithm, integrated the LeetCode GraphQL API, and scoped the analytics dashboard. Code generation was accelerated using AI tools; architecture, API design, and integration are mine.
git clone https://github.com/AdityaPandey-DEV/codeHabit.git && cd codeHabit
npm install
# Configure .env.local with PostgreSQL + JWT_SECRET
npx prisma db push && npm run devArchitected & built by Aditya Pandey — AI-augmented development