Anish
← Back to Projects
Full-StackJump to LLD ↓

CodeHub: CP Analytics Dashboard

MERN analytics platform aggregating Codeforces, CodeChef, and LeetCode via a polymorphic OOP fetching layer, LangChain roadmaps, and Cloudflare Workers.

ReactNode.jsMongoDBCloudflare WorkersLangChain

Overview

The Problem

Competitive programmers track ratings and weak topics across multiple platforms, each with incompatible APIs and data formats.

The Solution

Designed a unified dashboard with an extensible OOP data-fetching layer, AI-generated practice roadmaps, and serverless contest reminders.

Key Engineering Highlights

  • Standardized external API ingestion using an abstract base class with platform-specific subclasses.
  • Integrated LangChain to analyze contest history and generate targeted practice roadmaps.
  • Offloaded scheduled contest reminder cron jobs to Cloudflare Workers to minimize backend compute costs.
Architecture

Low-Level Design (LLD)

Polymorphic platform adapter architecture for unifying heterogeneous CP APIs.

Diagram slot ready — export your Excalidraw/UML SVG to public/diagrams/codehub-lld.svg and uncomment diagramUrl.

Abstract Base Class

Defines a uniform contract (fetchProfile, fetchContests, normalizeData) implemented by Codeforces, CodeChef, and LeetCode adapters.

AI Roadmap Pipeline

Aggregates tag-wise submission accuracy and feeds structured prompts into LangChain to output prioritized topic recommendations.

Serverless Cron Offloading

Cloudflare Workers trigger periodic checks against upcoming contest schedules without keeping the main Node server busy.