- 🤖 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.
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- Components: Shadcn UI
- Auth: Clerk
- AI Model: Google Gemini (using OpenAI Node SDK)
- Git Integration:
simple-git - Deployed on: Vercel
- Node.js 18+
- A Google Cloud API Key (for Gemini)
- A Clerk Publishable Key & Secret Key
-
Clone the repository:
git clone https://github.com/debangshu919/coderev.git cd coderev -
Install dependencies:
npm install
-
Set up environment variables: Create a
.env.localfile in the root directory:NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_... CLERK_SECRET_KEY=sk_test_... GEMINI_API_KEY=your_google_gemini_key
-
Run the development server:
npm run dev
-
Open http://localhost:3000 with your browser.
Visual feedback with color-coded severity:
- Green (>80%): Great
- Yellow (30-80%): Needs Attention
- Red (<30%): Critical / High Risk
Toggle between "Simple Explanations" and "Technical Details" instantly.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
