Skip to content

AI Code Reviewer as a SaaS Build a Full-Stack AI Code Review SaaS that allows developers to upload their code, and an AI model (GPT-based) will analyze and roast it with funny, sarcastic, and critical feedback.

Notifications You must be signed in to change notification settings

crysolabs/Ai-code-reviewer-modelslab

 
 

Repository files navigation

AI Code Reviewer - Modelslab

Overview

AI-powered code review tool that helps developers analyze and improve their code quality with AI models.

Screenshots

screenshot crysolabs coderoast screenshot crysolabs coderoast

Features

  • AI-powered code review
  • Authentication with NextAuth
  • API key management
  • Team collaboration
  • Stripe payment integration
  • Webhooks for Stripe events

Installation

Clone the repository:

 git clone https://github.com/crysolabs/Ai-code-reviewer-modelslab.git
 cd Ai-code-reviewer-modelslab

Install dependencies:

npm install

Environment Variables

Create a .env file in the root directory and add the following variables:

# NextAuth
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-nextauth-secret

# Database
DATABASE_URL=your-mongodb-connection-string

# OAuth Providers
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret

# Stripe
STRIPE_SECRET_KEY=your-stripe-secret-key
STRIPE_WEBHOOK_SECRET=your-stripe-webhook-secret
NEXT_PUBLIC_STRIPE_PRO_PRICE_ID=your-stripe-pro-price-id
NEXT_PUBLIC_STRIPE_TEAM_PRICE_ID=your-stripe-team-price-id
NEXT_PUBLIC_APP_URL=http://localhost:3000

# MODELS_LAB
MODELS_LAB_API_KEY=your-modelslab-api-key

Running the Project

Start the development server:

npm run dev

Scripts

  • dev: Start the development server
  • build: Build the project
  • start: Start the production server
  • lint: Run ESLint

API Routes

  • api/auth - Authentication (NextAuth)
  • api/review - Code review endpoint
  • api/webhooks/stripe - Stripe webhook handler

Video Demonstration

YouTube Video

Live Demo

CodeRoast - Crysolabs

Repository

GitHub - Crysolabs

Official Website

Crysolabs

License

This project is licensed under the MIT License.

About

AI Code Reviewer as a SaaS Build a Full-Stack AI Code Review SaaS that allows developers to upload their code, and an AI model (GPT-based) will analyze and roast it with funny, sarcastic, and critical feedback.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.4%
  • CSS 1.6%