A lightweight full-stack application built with the MERN stack that allows developers to input code and receive real-time AI-generated reviews, error detection, and actionable improvement suggestions — powered by Google Gemini's latest LLM.
- ✨ Instant Code Reviews: Paste your code and get AI-generated suggestions in real time.
- 🧠 LLM-Powered Analysis: Uses Google Gemini 2.0 Flash for code review with a developer-focused system prompt.
- 🎨 Syntax Highlighting: Implemented with
react-simple-code-editor,PrismJS, andhighlight.js. - 💬 Markdown-Formatted Feedback: Gemini responses are rendered using
react-markdownwith syntax-aware highlighting. - ⚡ Clean, Minimal UI: Focused interface with just two panes – input and review.
User pastes or types code using a syntax-highlighted editor.
Google Gemini API returns markdown-formatted code review suggestions.
Frontend:
- React.js
- Axios
react-simple-code-editor- PrismJS
- Highlight.js
react-markdownrehype-highlight
Backend:
- Node.js
- Express.js
- Google Generative AI SDK (Gemini 2.0 Flash)
- User pastes code into the editor pane.
- On clicking Review, the code is sent to the backend via a POST request.
- The backend passes the code along with a detailed system prompt to the Gemini API.
- Gemini analyzes the code and returns feedback including:
- 🔍 Issues found
- ✅ Recommended fixes
- 💡 Suggested improvements
- The frontend renders the markdown response with syntax highlighting.


