Skip to content

Repository files navigation

CodeHabit Analytics

Full-stack developer productivity platform — habit tracking, LeetCode integration, correlation engine, and analytics dashboard.

Next.js TypeScript PostgreSQL Prisma


What It Does

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

Architecture

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)

Tech Stack

Component Technology
Framework Next.js 15 (App Router, Server Components)
Language TypeScript
Database PostgreSQL (Vercel Postgres) + Prisma
Auth JWT
UI Tailwind CSS + shadcn/ui

My Role

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.

Quick Start

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 dev

Architected & built by Aditya Pandey — AI-augmented development

About

CodeHabit Analytics is a full-stack platform for developers to analyze their daily habits and coding performance on LeetCode, featuring a unified dashboard, correlation engine, and deep LeetCode integration, built with Next.js and Tailwind CSS.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages