Skip to content

olabisi09/ai-code-reviewer

Repository files navigation

AI Code Review Assistant

🚀 Overview

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.

✨ Features

  • 🔑 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)

🛠 Tech Stack

  • 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

📦 Installation

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

🚀 Deployment

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

🧪 Testing

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.

About

AI-powered code review with Hugging Face's StarCoder AI model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published