Skip to content

An advanced AI-driven code analysis tool built with Next.js, leveraging OpenAI's API to review and debug code efficiently.

License

Notifications You must be signed in to change notification settings

NextGenCodersGSG/CodePilot

Repository files navigation

🚀 CodePilot

CodePilot is an AI-powered code review and debugging assistant that helps developers write cleaner, faster, and more secure code. Whether you're a beginner looking for feedback or a senior developer hunting for optimization tips, CodePilot is your personal code companion.


🧠 What is CodePilot?

CodePilot leverages advanced AI to analyze your code and provide feedback in real-time. It's designed to be your personal assistant that spots bugs, suggests improvements, and helps you debug like a pro. Plus, developers can sign up for a special role to support others via live Zoom calls — like a virtual dev mentorship space.


✨ Features

  • ✅ Upload or paste your code for instant AI analysis
  • ✅ Categorized feedback:
    • Performance issues
    • Security vulnerabilities
    • Bugs and logic errors
    • Optimization tips
  • ✅ Beautiful, animated UI using Framer Motion
  • ✅ Real-time chat-like experience powered by OpenAI
  • ✅ User authentication and authorization
  • ✅ Forgot password flow with email recovery
  • ✅ Developer role with ability to assist other users via Zoom
  • ✅ Stripe integration for premium plans
  • ✅ 3D robot assistant (Spline integration)
  • ✅ Built using custom conventional Next.js pages with modern animations

🛠 Tech Stack

  • Frontend: Next.js, TailwindCSS, Shadcn UI, Framer Motion, Spline
  • Backend/AI: OpenAI API
  • Database: MongoDB Atlas
  • Auth: Custom-built authentication & authorization system
  • Payments: Stripe
  • Deployment: Vercel

📦 Installation & Setup

Note: You must have Node.js and npm installed.

  1. Clone the repository:
git clone https://github.com/NextGenCodersGSG/CodePilot.git
cd codepilot
  1. Navigate to the development branch:
git checkout development
  1. Pull the latest development changes:
git pull origin development
  1. Install dependencies:
npm install
  1. Create a .env.local file and add your environment variables:
OPENAI_API_KEY=your_openai_api_key
MONGODB_URI=your_mongo_uri
NEXT_PUBLIC_URL=http://localhost:3000

SALT_ROUNDS=10
SESSION_SECRET=your_session_secret

# Email (SMTP)
SMTP_USER=your_email@gmail.com
SMTP_PASS=your_smtp_password
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_FROM_EMAIL=your_email@gmail.com

DEV_EMAIL=admin_contact_email

# Stripe
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_public_key
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_PRICE_ID_STARTER=price_id_starter
STRIPE_PRICE_ID_PRO=price_id_pro
STRIPE_PRICE_ID_TEAM=price_id_team

# Zoom Integration
ZOOM_ACCESS_TOKEN=your_zoom_access_token
ZOOM_ACCOUNT_ID=your_zoom_account_id
ZOOM_CLIENT_ID=your_zoom_client_id
ZOOM_CLIENT_SECRET=your_zoom_client_secret
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 to view the app.

🎥 Demo

🔧 Demo video coming soon! Stay tuned...

🛡 License

This project is licensed under the MIT License. Feel free to use, share, and modify it!

🤝 Contribution

We welcome contributions with open arms! Whether it’s fixing a bug, proposing a new feature, or improving the UI — every bit counts. Fork the repo, create a new branch, and open a pull request. Let’s build something amazing together!

👥 NextGenCoders Team members

About

An advanced AI-driven code analysis tool built with Next.js, leveraging OpenAI's API to review and debug code efficiently.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5