A powerful Chrome extension that uses AI to solve coding problems on competitive programming platforms like HackerRank, LeetCode, Codeforces, GeeksforGeeks, and more.
- Universal Platform Support: Works on any coding platform
- AI-Powered Solutions: Uses Groq API for intelligent code generation
- Smart Problem Analysis: Extracts problem details, test cases, and constraints
- Direct Code Pasting: Automatically pastes solutions into compilers
- Mandatory Test Case Integration: Includes exact mandatory test case code
- Futuristic Dark UI: Beautiful, Apple-inspired interface
- Multiple AI Providers: Support for OpenAI, Claude, Groq, and Ollama
-
Clone the repository:
git clone https://github.com/KaveenKrithik/CodeSolverProV1.git cd CodeSolverProV1 -
Load Extension in Chrome (No API key setup required!):
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked" and select the
CodeSolverProV1folder - The extension will appear in your extensions list
- Start using immediately! π
- Open Chrome and go to
-
Optional: Configure Your Own API Keys:
- Copy
config.local.js.templatetoconfig.local.js - Edit
config.local.jsand add your API keys (optional) - This allows you to use your own API keys instead of the default service
- Copy
- Download the extension files
- Load the extension in Chrome as described above
- Optional: Configure your API keys (see Configuration section below)
The extension comes with a default service API key that works out of the box! You can also use your own API keys for personal use.
The extension works immediately with the built-in service API key. No configuration needed!
If you want to use your own API keys, you can configure them in two ways:
- Copy
config.local.js.templatetoconfig.local.js - Edit
config.local.jswith your API keys:const CONFIG = { GROQ_API_KEY: 'gsk_your_groq_api_key_here', // Your own key OPENAI_API_KEY: 'sk_your_openai_api_key_here', // Optional CLAUDE_API_KEY: 'sk-ant_your_claude_api_key_here', // Optional };
- Open the extension popup
- Click the settings button (βοΈ)
- Enter your API keys in the settings panel
- Click "Save Settings"
- Groq (Recommended): Fast and efficient
- OpenAI: GPT models
- Claude: Anthropic's AI
- Ollama: Local AI models
- Navigate to a coding platform (HackerRank, LeetCode, etc.)
- Open the extension by clicking the extension icon
- Click "Analyze Question" to extract the problem
- Select programming language from the dropdown
- Click "Generate AI Solution" to get the solution
- Click "Paste Code" to automatically paste into the compiler
- Run and test your solution
- HackerRank - All problem types
- LeetCode - All difficulty levels
- Codeforces - Contests and practice
- GeeksforGeeks - Practice problems
- AtCoder - Japanese competitive programming
- CodeChef - Indian competitive programming
- SPOJ - Sphere Online Judge
- Any Platform - Universal mode for custom platforms
- Extracts problem title, description, and constraints
- Identifies test cases and examples
- Detects mandatory test cases and complexity requirements
- Analyzes existing code structure
- Uses advanced AI models for optimal solutions
- Considers time and space complexity
- Handles edge cases and boundary conditions
- Generates clean, readable code
- Automatically clears existing template code
- Pastes solutions directly into compilers
- Supports multiple editor types
- Force-paste capabilities for stubborn editors
- Futuristic dark theme
- Apple-inspired design
- Smooth animations and transitions
- Responsive design for all screen sizes
- Default Service API: Works out of the box with built-in service
- Optional Personal Keys: Users can use their own API keys
- Secure Storage: Uses Chrome's secure storage API
- Local Configuration: Personal API keys never leave your device
- Privacy First: No data collection or tracking
- Service API Protection: Default API key is securely embedded
CodeSolverProV1/
βββ manifest.json # Extension configuration
βββ popup.html # Extension UI
βββ popup.css # Styling
βββ popup.js # Main extension logic
βββ content.js # Content script for page interaction
βββ content.css # Content script styling
βββ background.js # Background service worker
βββ config.js # Default configuration
βββ config.local.js.template # Template for local config
βββ README.md # This file
- Chrome browser
- Git (for cloning)
- Text editor
- Clone the repository
- Configure your API keys
- Load the extension in Chrome
- Make your changes
- Reload the extension to test
- Navigate to a coding platform
- Open the extension
- Test problem analysis and solution generation
- Verify code pasting functionality
This project is for educational purposes. Please use responsibly and in accordance with the terms of service of the platforms you use it on.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This extension is for educational purposes only. Please use it responsibly and in accordance with the terms of service of the platforms you use it on. Always respect the rules and guidelines of competitive programming platforms.
If you encounter any issues:
- Check that your API keys are correctly configured
- Ensure you have an active internet connection
- Try refreshing the page and reloading the extension
- Check the browser console for error messages
The extension is actively maintained and updated with new features and improvements. Check the repository for the latest updates.
Happy Coding! π