An AI-powered code review tool built with Claude API. Paste your code, get instant structured feedback on bugs, security issues, and improvements β in seconds.
Developers spend hours on manual code reviews. This tool uses Claude AI to instantly analyse your code and return structured feedback β so you can focus on building, not reviewing.
You paste code β Claude analyses it β You get a structured review in under 5 seconds.
- Bug Detection β Identifies logic errors, null pointer risks, and common pitfalls
- Security Analysis β Flags injection vulnerabilities, exposed secrets, and unsafe patterns
- Code Quality β Suggests improvements for readability, naming, and structure
- Best Practices β Checks against language-specific conventions
- Multi-language Support β Works with JavaScript, Java, Python, TypeScript, and more
- User pastes code into the web interface
- Frontend sends code to Express backend via POST /api/review
- Backend constructs a structured prompt and sends to Claude API
- Claude analyses the code and returns categorised feedback
- Frontend renders issues organised by category
| Layer | Technology |
|---|---|
| Backend | Node.js + Express |
| AI | Anthropic Claude API |
| Frontend | HTML, CSS, Vanilla JS |
| API Style | REST |
- Node.js v18+
- Anthropic API key β get one at console.anthropic.com
Clone the repository and install dependencies:
git clone https://github.com/manasa-shivananda/ai-code-reviewer.git
cd ai-code-reviewer
npm install
Create a .env file and add your API key:
ANTHROPIC_API_KEY=your_api_key_here
PORT=3000
node src/index.js
Open http://localhost:3000 in your browser.
- Claude API integration β prompt engineering for structured, consistent output
- System prompt design β crafting prompts that return reliable, parseable responses
- REST API design β clean separation between AI logic and server layer
- Error handling for AI responses β managing token limits, timeouts, and malformed outputs
- Structured JSON output with line-level issue mapping
- Support for file upload (.js, .java, .py)
- Side-by-side diff view with suggested fixes
- GitHub PR integration via webhook
Built by Manasa Shivananda β Full-Stack Developer specialising in AI-powered tooling.
AI Portfolio Series:
- β Project 1: AI Code Reviewer (this project)
- π Project 2: AI Document Q&A Tool β in progress
MIT License
