Your personal Competitive Programming AI Assistant that helps you solve, understand, and optimize problems from platforms like LeetCode, Codeforces, and CodeChef — right in your browser.
The assistant integrates directly into your browser as a Chrome extension and connects to your deployed FastAPI backend (powered by the Google Gemini API).
You can:
- Ask for hints or explanations for coding problems
- Get code solutions in Python, C++, or Java
- Analyze time complexity and edge cases
- Chat with the AI directly while solving problems
git clone https://github.com/srinivas0721/CodingAssistant.git
- Open Chrome and go to:
chrome://extensions/
- Turn on Developer mode
- Click Load unpacked
- Select the
extension/
folder from this repository
✅ The extension is now installed!
- Go to LeetCode, Codeforces, or CodeChef
- You'll see a "💬 CP Assistant" button appear on the screen
- Click it and start chatting with your AI coding assistant!
Issue | Possible Fix |
---|---|
Extension not connecting | Check if your backend URL is correct and accessible |
"CORS" or network error | Ensure your backend allows cross-origin requests (CORS middleware in FastAPI) |
First request slow | Render's free tier sleeps after inactivity — wait ~30 seconds |
- You don't need to run the backend locally, since it's already deployed.
- Any time you update your backend code on GitHub, Render auto-redeploys.
- Your
GOOGLE_API_KEY
remains safely stored as an environment variable in Render.
- Backend: FastAPI (Python) + Google Gemini API
- Frontend: Chrome Extension (JavaScript + HTML + CSS)
- Deployment: Render Cloud
Srinivas Prabhu
🔗 GitHub: @srinivas0721