Skip to content

KaveenKrithik/CodeSolverProV1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Code Solver Pro πŸš€

A powerful Chrome extension that uses AI to solve coding problems on competitive programming platforms like HackerRank, LeetCode, Codeforces, GeeksforGeeks, and more.

✨ Features

  • 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

πŸ› οΈ Installation

Method 1: Install from GitHub (Recommended)

  1. Clone the repository:

    git clone https://github.com/KaveenKrithik/CodeSolverProV1.git
    cd CodeSolverProV1
  2. 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 CodeSolverProV1 folder
    • The extension will appear in your extensions list
    • Start using immediately! πŸš€
  3. Optional: Configure Your Own API Keys:

    • Copy config.local.js.template to config.local.js
    • Edit config.local.js and add your API keys (optional)
    • This allows you to use your own API keys instead of the default service

Method 2: Manual Setup

  1. Download the extension files
  2. Load the extension in Chrome as described above
  3. Optional: Configure your API keys (see Configuration section below)

βš™οΈ Configuration

API Key Setup

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.

Option 1: Use Default Service (No Setup Required) πŸš€

The extension works immediately with the built-in service API key. No configuration needed!

Option 2: Use Your Own API Keys (Optional)

If you want to use your own API keys, you can configure them in two ways:

Using Config File (Recommended)
  1. Copy config.local.js.template to config.local.js
  2. Edit config.local.js with 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
    };
Using Extension Settings
  1. Open the extension popup
  2. Click the settings button (βš™οΈ)
  3. Enter your API keys in the settings panel
  4. Click "Save Settings"

Supported AI Providers

  • Groq (Recommended): Fast and efficient
  • OpenAI: GPT models
  • Claude: Anthropic's AI
  • Ollama: Local AI models

πŸš€ Usage

  1. Navigate to a coding platform (HackerRank, LeetCode, etc.)
  2. Open the extension by clicking the extension icon
  3. Click "Analyze Question" to extract the problem
  4. Select programming language from the dropdown
  5. Click "Generate AI Solution" to get the solution
  6. Click "Paste Code" to automatically paste into the compiler
  7. Run and test your solution

🎯 Supported Platforms

  • 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

πŸ”§ Features

Smart Problem Analysis

  • Extracts problem title, description, and constraints
  • Identifies test cases and examples
  • Detects mandatory test cases and complexity requirements
  • Analyzes existing code structure

AI-Powered Code Generation

  • Uses advanced AI models for optimal solutions
  • Considers time and space complexity
  • Handles edge cases and boundary conditions
  • Generates clean, readable code

Direct Code Integration

  • Automatically clears existing template code
  • Pastes solutions directly into compilers
  • Supports multiple editor types
  • Force-paste capabilities for stubborn editors

Beautiful UI

  • Futuristic dark theme
  • Apple-inspired design
  • Smooth animations and transitions
  • Responsive design for all screen sizes

πŸ›‘οΈ Security

  • 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

πŸ“ Project Structure

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

πŸ”§ Development

Prerequisites

  • Chrome browser
  • Git (for cloning)
  • Text editor

Setup Development Environment

  1. Clone the repository
  2. Configure your API keys
  3. Load the extension in Chrome
  4. Make your changes
  5. Reload the extension to test

Testing

  1. Navigate to a coding platform
  2. Open the extension
  3. Test problem analysis and solution generation
  4. Verify code pasting functionality

πŸ“ License

This project is for educational purposes. Please use responsibly and in accordance with the terms of service of the platforms you use it on.

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

⚠️ Disclaimer

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.

πŸ†˜ Support

If you encounter any issues:

  1. Check that your API keys are correctly configured
  2. Ensure you have an active internet connection
  3. Try refreshing the page and reloading the extension
  4. Check the browser console for error messages

πŸ”„ Updates

The extension is actively maintained and updated with new features and improvements. Check the repository for the latest updates.


Happy Coding! πŸŽ‰

About

A powerful Chrome extension that uses AI to solve coding problems on competitive programming platforms like HackerRank, LeetCode, Codeforces, GeeksforGeeks, and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors