An intelligent platform that analyzes code, detects errors, improves code quality, and optimizes performance using advanced AI models. Built for developers who want instant, actionable feedback on their code β whether you're a beginner learning best practices or an experienced engineer optimizing for performance. Powered by Groq's ultra-fast LPU inference, reviews are delivered in seconds, not minutes. Analyze bugs & anti-patterns. Optimize with AI-generated alternatives. Visualize Time & Space complexity. Chat with a code-aware AI assistant
- π§ AI-Powered Code Review β Deep analysis using advanced AI models with structured review summaries
- βοΈ Monaco Code Editor β Full-featured browser editor (same engine as VS Code) with syntax highlighting for 6 languages
- β‘ Quick Analyze β Paste code and instantly get a complete AI review without the editor
- π Complexity Analysis β Time & Space complexity breakdown for current and optimized code with visual SVG charts
- π Optimized Code Suggestions β AI generates a more efficient version of your code with one-click "Apply" support
- π‘ Improvement Suggestions β Numbered, actionable fix cards with copy & apply buttons
- π Language Detection β Automatically detects mismatched languages and alerts you with a mismatch banner
- π€ AI Chat Bubble β Floating contextual chat assistant aware of your current code and analysis
- π Analysis History β Sidebar with timestamped history of all past analyses, restoreable with one click
- π PDF Export β Download a full formatted HTML/PDF report of any analysis
- π Dark Mode β Full dark/light theme toggle across all pages
- π± Fully Mobile Responsive β Optimized for all screen sizes with a tabbed Editor/Review panel switcher on mobile
- π Multi-Language Support β JavaScript, Python, Java, C++, C, Go
| Technology | Purpose |
|---|---|
| React 18 | UI Framework |
| Vite | Build Tool |
| Tailwind CSS | Styling |
| Framer Motion | Animations |
| Monaco Editor | Code Editor |
| Lottie Web | Lottie Animations |
| Lucide React | Icons |
| React Router | Routing |
| Technology | Purpose |
|---|---|
| Python 3.10+ | Backend Language |
| Flask | REST API Server |
| Flask-CORS | Cross-Origin Requests |
| AI/LLM API | Code Analysis Engine |
git clone https://github.com/RohithReddyGK/AI-Driven-Code-Reviewer.git
cd AI-Driven-Code-Reviewer# Install dependencies
npm install
# Start the development server
npm run devThe frontend will be live at http://localhost:5173
# Navigate to the backend folder
cd backend
# Create a virtual environment
python -m venv venv
# Activate it
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Start the Flask server
python app.pyThe backend API will be running at http://127.0.0.1:5000
Create a .env file inside the backend/ folder:
AI_API_KEY=your_api_key_here
β οΈ Never commit your.envfile. It is already in.gitignore.
- Navigate to Analyze Code β Code Editor
- Select your programming language from the dropdown
- Write or paste your code in the Monaco editor
- Click "Analyze Code" to get a full AI review
- View the Review Summary, Complexity Analysis, Optimized Version, and Suggestions
- Click "Apply" on any suggestion to instantly replace your code
- Use the History sidebar to revisit past analyses
- Export your analysis as a PDF report
- Navigate to Analyze Code β Quick Analyze
- Paste your code in the text area
- Select the language
- Click "Quick Analyze" for an instant lightweight review
- The floating π€ button (bottom-right) opens a context-aware AI chat
- It knows your current code and last analysis β ask it anything!
| Language | Extension | Detection |
|---|---|---|
| JavaScript | .js |
β Auto-detect |
| Python | .py |
β Auto-detect |
| Java | .java |
β Auto-detect |
| C++ | .cpp |
β Auto-detect |
| C | .c |
β Auto-detect |
| Go | .go |
β Auto-detect |
| Service | Platform | URL |
|---|---|---|
| π¨ Frontend | Vercel | codereviewiq.vercel.app |
| βοΈ Backend | Vercel | ai-driven-code-review-backend.vercel.app |
Contributions are welcome and appreciated! Here's how to get started:
# 1. Fork the repository
# 2. Create your feature branch
git checkout -b feature/AmazingFeature
# 3. Commit your changes
git commit -m "Add AmazingFeature"
# 4. Push to the branch
git push origin feature/AmazingFeature
# 5. Open a Pull RequestPlease make sure your code follows the existing style and all pages remain mobile responsive.
