AI-powered code reviewer
npm install open-reviewerš Open Reviewer is a powerful CLI tool that scans your JavaScript/TypeScript codebase, evaluates it using AI, and generates an insightful review report with suggestions for improvements.
- ā
Scans your entire project for .js, .jsx, .ts, .tsx files.
- š¤ Integrates with AI for intelligent code analysis based on your prompt.
- š Generates a beautiful HTML report for better visualization.
- š Highlights code improvements, best practices, and potential issues.
- šØ Styled with a clean UI for better readability.
Run the following command in your project's root directory:
``sh`
npx open-reviewer review
Before running the tool, set up the required environment variables in your project where your planning to run the tool:
`sh`
GROQ_API_KEY="your-groq-api-key"
DEFAULT_PROMPT=""
GROQ_MODEL=""//optional
š Get your API Key from Groq.
ā ļø If the API key is missing, the tool will display a warning and exit.
After running the analysis, an HTML report will be generated in your project root as review_report.html. You can open it using Live Server:
1. Install the Live Server extension in VS Code.
2. Right-click review_report.html and select "Open with Live Server".
Alternatively, you can use npx to serve the file:
`sh``
npx live-server --open=review_report.html
---
š” Enhance your code reviews today with Open Reviewer! š