Skip to content

Amanpatel30/AI-code-Reviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

💻 AI Code Reviewer

GitHub stars GitHub forks GitHub issues License: MIT

AI Code Reviewer Logo

🧠 Enhance your code quality with AI-powered code reviews, suggestions, and automated improvements.

⭐ Features

  • 🔬 Code Analysis: Get detailed insights into your code quality, potential bugs, and improvement areas
  • 🔄 Multi-AI Integration: Choose between Google Gemini, Deepseek AI, and more for your code reviews
  • 📊 Diagram Generation: Generate diagrams and visual representations of your code
  • 🎨 Syntax Highlighting: Beautiful code display with Prism.js
  • 📱 Responsive Design: Works smoothly on both desktop and mobile devices
  • Real-time Processing: Instant AI analysis as you type or upload code

🔧 Tech Stack

Frontend

  • ⚛️ React 19 with Vite
  • 🎨 TailwindCSS for styling
  • 📝 React Markdown & Prism.js for code display
  • 🌐 Axios for API communication

Backend

  • 🖥️ Node.js with Express 5
  • 🤖 Google Gemini AI
  • 🔮 Deepseek AI
  • 🖼️ Hugging Face for image generation
  • 🔐 dotenv for environment variable management

📋 Prerequisites

  • 📦 Node.js 18+
  • 📦 npm or yarn
  • 🔑 API keys for:
    • Google Gemini AI
    • Deepseek AI
    • Hugging Face (optional, for image generation)

🚀 Installation

Clone the repository

git clone https://github.com/yourusername/AI-code-Reviewer.git
cd AI-code-Reviewer

Backend Setup

cd Backend
npm install

# Create a .env file with your API keys
echo "GEMINI_API_KEY=your_gemini_api_key
DEEPSEEK_API_KEY=your_deepseek_api_key
HUGGINGFACE_API_KEY=your_huggingface_api_key" > .env

# Start the backend server
npm start

Frontend Setup

cd Frontend
npm install
npm run dev

The app will be running at http://localhost:5173

🖼️ Screenshots

AI Code Reviewer Dashboard

Code Review Example

📝 Usage

  1. 📄 Paste your code into the editor or upload a file
  2. 🤖 Select your preferred AI engine (Gemini, Deepseek)
  3. 🔍 Click "Review Code" to get AI-powered suggestions
  4. 📊 Explore the detailed analysis and recommendations
  5. 📈 Generate visual representations with the "Generate Diagram" feature

⚙️ Workflow

graph TD
    A[Input Code] --> B[Select AI Engine]
    B --> C[Request Analysis]
    C --> D[Backend Processing]
    D --> E[AI API Call]
    E --> F[Process Response]
    F --> G[Display Results]
    G --> H[User Reviews Suggestions]
Loading

👥 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

👏 Acknowledgements


Made with ❤️ by Your Name

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published