Competitive Programming Coach
An intelligent Chrome extension that acts as your personal Competitive Programming coach. It analyzes your performance on Codeforces, identifies your weak topics, and recommends problems to help you improve.
📥 Installation
Note: This extension uses a hosted backend server, so no extra setup is required.
- Download this repository (Code -> Download ZIP) and extract it.
- Open Google Chrome and go to
chrome://extensions/.
- Enable Developer mode (top right corner toggle).
- Click Load unpacked.
- Select the
extension folder from this repository.
- Pin the extension to your toolbar and start solving.
🚀 Usage
- Open the Extension: Click the CP Coach icon in your Chrome toolbar.
- Enter Your Handle:
- Auto-Detect: Open Codeforces.com in a new tab, and the extension will automatically detect your logged-in username.
- Manual: Alternatively, just type your Codeforces username into the input box.
- Get Better: View your weakness analysis and start solving recommended problems!
âš¡ Key Features
- Weakness Analysis: Automatically detects topics you struggle with based on your submission history.
- Smart Recommendations: Suggests problems tailored to your rating and weak areas.
- Daily Goals: Tracks your solved problems and keeps you consistent.
- Visual Feedback: Modern, dark-themed dashboard aimed at productivity.
🔌 For Developers and Contributors
This repository contains the full source code for the project:
extension/: The Chrome Extension (Frontend Logic).
frontend/: The Next.js Web Interface.
app/: The FastAPI Backend (Hosted on Render).
To contribute or run the backend locally:
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables in
.env:
DATABASE_URL=postgresql://...
GROQ_API_KEY=your_groq_api_key # Required for AI
- Run the server:
python -m app.main