ai-code-checker
v2.0.5
Published
AI-powered CLI tool to review code using GPT-3.5
Maintainers
Readme
🤖 AI Code Reviewer
A smart, modern CLI tool that reviews your full-stack code with the power of OpenRouter AI. It supports JavaScript, Python, TypeScript, SQL, HTML/CSS, C/C++, Java, PHP, Ruby, and more. Instantly get suggestions, inline improvements, markdown reports, and styled PDF exports.
🚀 Features
✅ Full-stack AI Code Review
🧠 Supports multiple models via OpenRouter (Mistral, GPT, Claude)
📂 Review a single file or an entire folder recursively
📊 Inline, Markdown, and Beautiful PDF Reports
🛠️
--fixmode to apply auto-fixes✍️ Interactive dev notes mode
🔍 Framework Detection (React, Express, Vue, Flask, etc.)
🎨 PDF styling with:
- Logo Header
- 🖍️ Color-coded security issues
- 📄 Auto-paginated
- 🧾 Footer watermark
📦 Installation
npm install -g ai-code-checkerOr run directly:
npx ai-code-checker ./src --inline --pdf🔧 Usage
npx ai-code-checker <file|folder> [--inline] [--summary] [--markdown] [--fix] [--pdf] [--interactive]🌟 Examples
npx ai-code-checker sample.js --inline
npx ai-code-checker ./src --summary --markdown --pdf
npx ai-code-checker app.js --fix --interactive🛠 CLI Options
| Flag | Description |
| --------------- | ---------------------------------------------------------- |
| --inline | Inline suggestions with line numbers |
| --summary | Summary output instead of detailed breakdown |
| --markdown | Save review report as ai-code-review-report.md |
| --pdf | Save review report as a styled ai-code-review-report.pdf |
| --fix | Auto-apply patch suggestions returned by AI |
| --interactive | Ask for custom comments/tags during review per file |
✨ Output Formats
🖥️ Terminal Output
- Color-coded, sectioned, clean layout
📄 Markdown Output (--markdown)
- Saves a clean
.mdfile with headings and scores
📝 PDF Output (--pdf)
- Header: Logo title
- Footer: Watermark
- 🟥 Security issues in red
- 🟦 Informational notes in black
- Code rendered in monospaced font
🤖 Powered By
- OpenRouter.ai
- Models:
mistralai/mistral-7b-instruct,openai/gpt-3.5-turbo, and more.
🛡️ Security
This tool never stores or logs your code. All reviews are sent directly to OpenRouter’s API securely.
📜 License
MIT © Santhoshkumar Karthikeyan
🙌 Contributing
Pull requests welcome! Open issues for bugs, suggestions, or improvements.
🔗 Links
❤️ Built for Developers, by Developers
Feel confident in your code before deploying. Empower your dev team with AI-driven code reviews.
Happy Coding! 🧑💻
