Skip to content

Akshayy-singh/nightshift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NightShift 🦉

Competitive Programming Analytics & Mentorship Platform for B.Tech Students

NightShift is a productivity-focused analytics platform that helps students improve their competitive programming performance using intelligent insights, analytics, and structured recommendations.

Not an online judge. Not a practice platform. A smart analytics layer on top of what you already do.


Live Demo

Coming soon after deployment


Screenshots

Add screenshots here after deployment


Features

Dashboard

  • Unified view across Codeforces, LeetCode, and CodeChef
  • Real-time rating and statistics
  • Rating history graph
  • Top problem tags breakdown

Weak Topic Analyzer

  • Analyzes your Codeforces submission history
  • Identifies topics with low accuracy
  • Generates intelligent insights like:

    "You struggle with greedy problems. Only 34% accuracy across 23 attempts."

Smart Recommendations

  • Problems recommended based on your weak topics
  • Matched to your current rating range
  • Pulled from unsolved problems in your history

Revision Scheduler

  • Imports problems you got wrong on Codeforces
  • Spaced repetition algorithm schedules reviews
  • Mark problems as done to push them forward in time

Productivity Analytics

  • Solving streak tracker
  • Monthly problems solved chart
  • Peak coding hour detection
  • Overall acceptance rate

CodeChef Integration

  • Full CodeChef profile scraping via custom FastAPI backend
  • Rating, stars, and problems solved

Tech Stack

Frontend

  • React + TypeScript
  • TailwindCSS
  • Recharts
  • Framer Motion
  • Supabase JS Client

Backend

  • FastAPI (Python)
  • BeautifulSoup4 (CodeChef scraping)
  • httpx
  • Uvicorn

Database & Auth

  • Supabase (PostgreSQL + Auth)
  • Row Level Security

Deployment

  • Frontend → Vercel
  • Backend → Render

Architecture

nightshift/ ├── frontend/ # React + TypeScript app │ └── src/ │ ├── components/ # Reusable UI components │ ├── pages/ # Route-level pages │ ├── lib/ # API clients and utilities │ ├── hooks/ # Custom React hooks │ └── types/ # TypeScript interfaces └── backend/ # FastAPI server └── app/ ├── routes/ # API endpoints └── services/ # Business logic


Local Setup

Prerequisites

  • Node.js 18+
  • Python 3.11+
  • Supabase account (free)

Frontend

cd frontend
npm install
cp .env.local.example .env.local
# Add your Supabase URL and anon key
npm run dev

Backend

cd backend
python -m venv venv
venv\Scripts\activate  # Windows
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000

Environment Variables

Frontend .env.local: VITE_SUPABASE_URL=your_supabase_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key

Backend .env: SUPABASE_URL=your_supabase_url SUPABASE_SERVICE_KEY=your_service_role_key FRONTEND_URL=http://localhost:5173

Database

Run the SQL schema in Supabase SQL Editor:

  • File: supabase/schema.sql (coming soon)

Roadmap

  • Burnout detection system
  • Mobile app (React Native)
  • AtCoder integration
  • HackerRank integration
  • Team/college leaderboards
  • AI-powered personalized study plans

Author

Akshay Singh


License

MIT License — feel free to use this project for learning and portfolio purposes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors