Skip to content
debangshu919Public

About

AI Powered Code Reviewer

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CodeRev

CodeRev is an intelligent, AI-powered code review assistant designed to help developers of all skill levels improve their code. It acts as both a rigorous technical auditor and a friendly mentor, providing deep insights, security checks, and educational explanations.

CodeRev Dashboard Mockup

✨ Features

  • 🤖 AI-Powered Analysis: Powered by Google's Gemini 2.5 Flash (via OpenAI SDK) for lightning-fast and accurate code evaluations.
  • 📊 Comprehensive Scoring System: Instantly grade your code on four critical dimensions:
    • Bug Risk: Identifies logical errors and stability issues.
    • Security: Detects hardcoded secrets, injection vulnerabilities, and unsafe patterns.
    • Code Quality: Evaluates readability, DRY principles, and naming conventions.
    • Maintainability: Checks for modularity and structural organization.
  • 🌗 Dual Explanation Modes:
    • Beginner Mode: Friendly, analogy-based explanations (e.g., explaining API security like "house keys").
    • Expert Mode: Precise, technical feedback for experienced engineers.
  • 📂 Flexible Input:
    • Paste Code: Direct analysis of snippets.
    • GitHub Repos: Clone and review the latest commit of any public repository automatically.
  • 🔒 Secure: Fully integrated authentication via Clerk.
  • 🎨 Modern UI: Built with Next.js, Tailwind CSS, and Shadcn UI for a premium, responsive experience.

🛠️ Tech Stack

🚀 Getting Started

Prerequisites

  • Node.js 18+
  • A Google Cloud API Key (for Gemini)
  • A Clerk Publishable Key & Secret Key

Installation

  1. Clone the repository:

    git clone https://github.com/debangshu919/coderev.git
    cd coderev
  2. Install dependencies:

    npm install
  3. Set up environment variables: Create a .env.local file in the root directory:

    NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
    CLERK_SECRET_KEY=sk_test_...
    GEMINI_API_KEY=your_google_gemini_key
  4. Run the development server:

    npm run dev
  5. Open http://localhost:3000 with your browser.

Scoring System

Visual feedback with color-coded severity:

  • Green (>80%): Great
  • Yellow (30-80%): Needs Attention
  • Red (<30%): Critical / High Risk

Beginner vs Expert Mode

Toggle between "Simple Explanations" and "Technical Details" instantly.

🤝 Contributing

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

📄 License

This project is licensed under the MIT License.

About

AI Powered Code Reviewer

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages