AI Code Review Assistant is a web application that helps developers review their code using AI-powered analysis. Users can paste code snippets, receive AI-generated feedback on best practices, performance optimizations, and security issues, and save their reviews for future reference.
- 🔑 User Authentication (Supabase with OAuth support)
- 📝 AI-Powered Code Review (Best practices, performance, and security feedback)
- 📂 Save & Manage Code Snippets (Organize, search, and revisit past reviews)
- Frontend: Next.js, TypeScript, ShadcnUI
- State Management: React Context API / React Query
- Database & Auth: Supabase
- AI Model: StarCoder AI model on Hugging Face (or alternative free AI service)
- Hosting: Vercel
Clone the repository:
git clone https://github.com/yourusername/ai-code-reviewer.git
cd ai-code-reviewer
Install dependencies:
npm install
Set up environment variables in a .env.local
file:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
HUGGINGFACE_API_KEY=your_huggingface_api_key
Run the development server:
npm run dev
The project is designed to be deployed on Vercel.
- Push changes to GitHub
- Connect the repository to Vercel
- Set up environment variables in Vercel settings
- Deploy with one click
Run unit tests with Jest and React Testing Library:
npm run test
💡 Contributions are welcome! Feel free to open an issue or submit a pull request.