Skip to content

RohithReddyGK/AI-Driven-Code-Reviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI-Driven Code Reviewer

AI-Driven Code Reviewer Logo

Live Demo React Vite TailwindCSS Flask Python Groq

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


✨ Features

  • 🧠 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

πŸ› οΈ Tech Stack

Frontend

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

Backend

Technology Purpose
Python 3.10+ Backend Language
Flask REST API Server
Flask-CORS Cross-Origin Requests
AI/LLM API Code Analysis Engine

βš™οΈ Installation & Setup

Prerequisites


1️⃣ Clone the Repository

git clone https://github.com/RohithReddyGK/AI-Driven-Code-Reviewer.git
cd AI-Driven-Code-Reviewer

2️⃣ Frontend Setup

# Install dependencies
npm install

# Start the development server
npm run dev

The frontend will be live at http://localhost:5173


3️⃣ Backend Setup

# 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.py

The backend API will be running at http://127.0.0.1:5000


4️⃣ Environment Variables

Create a .env file inside the backend/ folder:

AI_API_KEY=your_api_key_here

⚠️ Never commit your .env file. It is already in .gitignore.


πŸš€ Usage Guide

Code Editor

  1. Navigate to Analyze Code β†’ Code Editor
  2. Select your programming language from the dropdown
  3. Write or paste your code in the Monaco editor
  4. Click "Analyze Code" to get a full AI review
  5. View the Review Summary, Complexity Analysis, Optimized Version, and Suggestions
  6. Click "Apply" on any suggestion to instantly replace your code
  7. Use the History sidebar to revisit past analyses
  8. Export your analysis as a PDF report

Quick Analyze

  1. Navigate to Analyze Code β†’ Quick Analyze
  2. Paste your code in the text area
  3. Select the language
  4. Click "Quick Analyze" for an instant lightweight review

AI Chat Bubble

  • The floating πŸ€– button (bottom-right) opens a context-aware AI chat
  • It knows your current code and last analysis β€” ask it anything!

🌐 Supported Languages

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

πŸš€ Deployments

Service Platform URL
🎨 Frontend Vercel codereviewiq.vercel.app
βš™οΈ Backend Vercel ai-driven-code-review-backend.vercel.app

🀝 Contributing

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 Request

Please make sure your code follows the existing style and all pages remain mobile responsive.


πŸ‘¨β€πŸ’» Author

Rohith Reddy G K

GitHub

⭐ If you found this project useful, please consider giving it a star!

About

An intelligent platform that analyzes code, detects errors, improves code quality, and optimizes performance using advanced AI models.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors