Live Demo: ai-code-reviewer-lyart-xi.vercel.app
An AI-powered code review tool that analyzes your code and delivers instant, structured feedback — bugs, security vulnerabilities, performance issues, and a fully refactored version — all in seconds.
- Quality Score — animated 0–100 ring score with letter grade
- Bug Detection — pinpoints issues with exact line numbers
- Security Analysis — flags SQL injection, XSS, and other OWASP vulnerabilities
- Performance Suggestions — highlights inefficient patterns and proposes fixes
- AI Refactor — delivers a fully rewritten, improved version of your code
- 13 Languages — JavaScript, TypeScript, Python, Java, C++, Go, Rust, PHP, Ruby, Swift, Kotlin, CSS, SQL
- Monaco Editor — VS Code-style editor with syntax highlighting
- Copy as Markdown — export the full review report in one click
- Keyboard Shortcut —
Ctrl+Enterto trigger a review instantly
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router) |
| Language | TypeScript |
| Styling | Tailwind CSS 4 |
| Editor | Monaco Editor (@monaco-editor/react) |
| AI / LLM | Groq API — Llama 3.3 70B Versatile |
| Icons | Lucide React |
- Node.js 18+
- A Groq API key (free tier available)
git clone https://github.com/yourusername/ai-code-reviewer.git
cd ai-code-reviewer
npm installCreate a .env.local file in the project root:
GROQ_API_KEY=your_groq_api_key_herenpm run devOpen http://localhost:3000.
- Paste any code snippet into the Monaco editor
- Select the language from the dropdown (or use a built-in example)
- Click Review Code or press
Ctrl+Enter - The review panel renders your quality score, detected issues, and a refactored version side-by-side
- Copy the full report as Markdown with one click
├── app/
│ ├── api/review/route.ts # Groq API integration
│ └── page.tsx # Main layout
├── components/
│ ├── CodeEditor.tsx # Monaco editor wrapper
│ ├── ReviewPanel.tsx # Results display
│ ├── ScoreRing.tsx # Animated quality score ring
│ └── IssueCard.tsx # Bug / security / performance cards
MIT