LeetInsight is a web application that generates beautiful, shareable LeetCode profile cards using real-time stats.
This repository contains the Backend Service that fetches user data from LeetCode via GraphQL, processes it, and returns it to the frontend with caching support.
- Express.js backend
- Fetches LeetCode stats via GraphQL
- In-memory caching for faster repeated requests
- Modular structure with clear separation of concerns
The system design diagram gives a full overview of how the entire backend flows — starting from the frontend request to the backend, interacting with the LeetCode API, using caching, and generating a profile card. It shows both internal and external interactions in one flow.
The LLD diagram illustrates the internal structure of the backend — showing how different modules like index.js, LeetcodeRoute, LeetcodeServices, and Cache interact with each other. It represents the actual code-level flow and function responsibilities.
The HLD diagram presents a bird's-eye view of the system — highlighting how the frontend, backend, LeetCode GraphQL API, caching layer, and card generation module are structured and interact to deliver the LeetCode profile card feature.
- Clone the repo
git clone https://github.com/AritraC1/LeetInsight-Backend.git
cd leetinsight-backend- Install dependencies
npm install- Run the server
npm start

