SamurAIGPT/ai-clipping-generator

Open-source AI video clipping generator β€” production-ready Next.js SaaS that auto-extracts viral shorts, Reels, and TikToks from long-form YouTube videos. Stripe billing, credits, NextAuth, and Prisma included.

81

stars

18

commits

JavaScript

primary language

Aug 2, 2026

updated

muapi.ai?utm_source=github&utm_medium=about&utm_campaign=ai-clipping-generator
ai-clip-generator
ai-saas
ai-video-editor
content-repurposing
generative-ai
nextauth
nextjs
nextjs-boilerplate
opusclip-alternative
prisma
reels-generator
saas-boilerplate
shorts-generator
stripe
tailwindcss
tiktok-generator
video-clipping
video-highlights
viral-clips
youtube-shorts-generator

README

πŸš€ AICLIPS Studio β€” Viral Content Extraction Engine

A beautifully designed, fully-integrated AI clipping studio. Built with Next.js, this platform serves as a complete SaaS boilerplate for downloading YouTube videos and automatically extracting viral highlights for TikTok, Reels, and Shorts.

Awesome Generative AI Apps

🎨 Explore 50+ more open-source AI apps β†’

https://github.com/user-attachments/assets/018738b8-af50-4a08-a7ac-1090b5b1f903

🌐 Live Manifestation

Experience the full glassmorphic, responsive interface here. Sign in with Google to explore the Video Studio, My Clips archive, and Credits dashboard directly from your browser.


AICLIPS Studio is a production-ready, highly-optimized AI web application. Out of the box, it seamlessly manages YouTube video extraction, asynchronous AI highlight detection, User Authentication, Credits & Billing, and Media Persistence using a sleek Next.js (App Router) architecture.

Why use AICLIPS Studio?

  • Production-Ready SaaS β€” Complete with Google OAuth and Stripe Checkout workflows built-in.
  • Viral Clipping Studio β€” Tailored UI for extracting viral highlights with custom Aspect Ratio tuning (9:16, 1:1, etc.).
  • Smart Duration Detection β€” Client-side video probing for precise credit charging based on actual video length.
  • Historical Archive β€” All creations are securely persisted to a PostgreSQL database for a customized user gallery.
  • Premium Glassmorphic UX β€” Dynamic multi-theme support (Indigo, Emerald, Rose, Amber) with high-fidelity micro-animations.
  • Event-Driven Architecture β€” Robust webhook-based status updates for reliable long-running AI tasks.

AICLIPS Studio

✨ Core Features

  • YouTube Source Extraction β€” Seamlessly download source videos from YouTube by just pasting a link. Handles quality selection (720p, 1080p, etc.) and automatic link passing to the clipping tool.
  • AI Highlight Engine β€” Automatically detect the most engaging moments in any video. Adjust the number of highlights (1 to 60) and aspect ratio to fit your social media platform.
  • Dynamic Credit System β€” Fair pricing logic: 10 credits per minute of video + 10 credits per highlight. Real-time cost calculation on the generate button using built-in video probing.
  • Secure My Clips Archive β€” A dedicated history vault for logged-in users. Track the status of your processing clips and view finished results in a detailed inspector modal.
  • Asynchronous Webhook Sync β€” Built-in MuAPI webhook handler that updates your database automatically when generation is complete, ensuring your UI is always in sync.

⚑ Deployment: Vercel & Production

Deploying an instance of AICLIPS Studio requires minimal configuration. The architecture is engineered explicitly for Vercel serverless environments.

πŸ”‘ Required Environment Variables

To successfully deploy and run, you must populate the following environment variables in your Vercel project settings:

ServiceVariableDescription & Source
DatabaseDATABASE_URLPostgreSQL connection string (Supabase or Neon)
DIRECT_URLDirect DB connection for Prisma migrations
NextAuth / GoogleNEXTAUTH_SECRETSecure random string generated via openssl rand -base64 32
NEXTAUTH_URLYour production domain (e.g. https://my-app.vercel.app)
GOOGLE_CLIENT_IDGet from Google Cloud Console
GOOGLE_CLIENT_SECRETGet from Google Cloud Console
Stripe BillingSTRIPE_SECRET_KEYGet from Stripe Dashboard
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYGet from Stripe Dashboard
STRIPE_WEBHOOK_SECRETWebhook secret for resolving credit purchases
AI GeneratorAICLIPS_API_KEYYour MuAPI Key for YouTube downloads and AI clipping services.
WEBHOOK_URLThe endpoint where MuAPI will send status updates (e.g., https://your-app.com/api/webhook/muapi)

πŸ› οΈ Local Development

Prerequisites

  • Node.js (v18 or higher)
  • A local PostgreSQL instance or a free cloud Database URL.

Setup

# 1. Clone the repository
git clone https://github.com/SamurAIGPT/ai-clipping-generator
cd aiclips-generator

# 2. Install dependencies
npm install

# 3. Setup Environment
cp .env.example .env
# Open .env and insert your specific keys.

# 4. Initialize Database Schema
npx prisma generate
npx prisma db push

# 5. Start the Development Server
npm run dev

The graphical console should now be heavily responsive on http://localhost:3000.


AICLIPS Studio: A modular, mobile-ready, production-grade AI clipping workspace built for content creators.

Contributors

jaiprasad04

14 commits

Anil-matcha

4 commits

SamurAIGPT/ai-clipping-generator

Open-source AI video clipping generator β€” production-ready Next.js SaaS that auto-extracts viral shorts, Reels, and TikToks from long-form YouTube videos. Stripe billing, credits, NextAuth, and Prisma included.

81

stars

18

commits

JavaScript

primary language

Aug 2, 2026

updated

muapi.ai?utm_source=github&utm_medium=about&utm_campaign=ai-clipping-generator
ai-clip-generator
ai-saas
ai-video-editor
content-repurposing
generative-ai
nextauth
nextjs
nextjs-boilerplate
opusclip-alternative
prisma
reels-generator
saas-boilerplate
shorts-generator
stripe
tailwindcss
tiktok-generator
video-clipping
video-highlights
viral-clips
youtube-shorts-generator

README

πŸš€ AICLIPS Studio β€” Viral Content Extraction Engine

A beautifully designed, fully-integrated AI clipping studio. Built with Next.js, this platform serves as a complete SaaS boilerplate for downloading YouTube videos and automatically extracting viral highlights for TikTok, Reels, and Shorts.

Awesome Generative AI Apps

🎨 Explore 50+ more open-source AI apps β†’

https://github.com/user-attachments/assets/018738b8-af50-4a08-a7ac-1090b5b1f903

🌐 Live Manifestation

Experience the full glassmorphic, responsive interface here. Sign in with Google to explore the Video Studio, My Clips archive, and Credits dashboard directly from your browser.


AICLIPS Studio is a production-ready, highly-optimized AI web application. Out of the box, it seamlessly manages YouTube video extraction, asynchronous AI highlight detection, User Authentication, Credits & Billing, and Media Persistence using a sleek Next.js (App Router) architecture.

Why use AICLIPS Studio?

  • Production-Ready SaaS β€” Complete with Google OAuth and Stripe Checkout workflows built-in.
  • Viral Clipping Studio β€” Tailored UI for extracting viral highlights with custom Aspect Ratio tuning (9:16, 1:1, etc.).
  • Smart Duration Detection β€” Client-side video probing for precise credit charging based on actual video length.
  • Historical Archive β€” All creations are securely persisted to a PostgreSQL database for a customized user gallery.
  • Premium Glassmorphic UX β€” Dynamic multi-theme support (Indigo, Emerald, Rose, Amber) with high-fidelity micro-animations.
  • Event-Driven Architecture β€” Robust webhook-based status updates for reliable long-running AI tasks.

AICLIPS Studio

✨ Core Features

  • YouTube Source Extraction β€” Seamlessly download source videos from YouTube by just pasting a link. Handles quality selection (720p, 1080p, etc.) and automatic link passing to the clipping tool.
  • AI Highlight Engine β€” Automatically detect the most engaging moments in any video. Adjust the number of highlights (1 to 60) and aspect ratio to fit your social media platform.
  • Dynamic Credit System β€” Fair pricing logic: 10 credits per minute of video + 10 credits per highlight. Real-time cost calculation on the generate button using built-in video probing.
  • Secure My Clips Archive β€” A dedicated history vault for logged-in users. Track the status of your processing clips and view finished results in a detailed inspector modal.
  • Asynchronous Webhook Sync β€” Built-in MuAPI webhook handler that updates your database automatically when generation is complete, ensuring your UI is always in sync.

⚑ Deployment: Vercel & Production

Deploying an instance of AICLIPS Studio requires minimal configuration. The architecture is engineered explicitly for Vercel serverless environments.

πŸ”‘ Required Environment Variables

To successfully deploy and run, you must populate the following environment variables in your Vercel project settings:

ServiceVariableDescription & Source
DatabaseDATABASE_URLPostgreSQL connection string (Supabase or Neon)
DIRECT_URLDirect DB connection for Prisma migrations
NextAuth / GoogleNEXTAUTH_SECRETSecure random string generated via openssl rand -base64 32
NEXTAUTH_URLYour production domain (e.g. https://my-app.vercel.app)
GOOGLE_CLIENT_IDGet from Google Cloud Console
GOOGLE_CLIENT_SECRETGet from Google Cloud Console
Stripe BillingSTRIPE_SECRET_KEYGet from Stripe Dashboard
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYGet from Stripe Dashboard
STRIPE_WEBHOOK_SECRETWebhook secret for resolving credit purchases
AI GeneratorAICLIPS_API_KEYYour MuAPI Key for YouTube downloads and AI clipping services.
WEBHOOK_URLThe endpoint where MuAPI will send status updates (e.g., https://your-app.com/api/webhook/muapi)

πŸ› οΈ Local Development

Prerequisites

  • Node.js (v18 or higher)
  • A local PostgreSQL instance or a free cloud Database URL.

Setup

# 1. Clone the repository
git clone https://github.com/SamurAIGPT/ai-clipping-generator
cd aiclips-generator

# 2. Install dependencies
npm install

# 3. Setup Environment
cp .env.example .env
# Open .env and insert your specific keys.

# 4. Initialize Database Schema
npx prisma generate
npx prisma db push

# 5. Start the Development Server
npm run dev

The graphical console should now be heavily responsive on http://localhost:3000.


AICLIPS Studio: A modular, mobile-ready, production-grade AI clipping workspace built for content creators.

Contributors

jaiprasad04

14 commits

Anil-matcha

4 commits

Languages

JavaScript

94.1%

CSS

5.5%