AI-Powered Viral Short-Form Video Generator
Turn long-form videos and podcasts into engaging, high-performing vertical shorts (9:16) for TikTok, YouTube Shorts, and Instagram Reels.
- 🎯 AI Viral Moment Detection: Automatically analyzes video transcripts to discover high-hook viral moments using Gemini 2.5 Flash or Claude 3.5 Sonnet.
- 🎙️ Automated Whisper Speech-to-Text: High-precision audio transcription using Groq Whisper API.
- 🎨 Dynamic Karaoke Subtitles: Customizable animated subtitle presets (Karaoke Yellow, Neon Glow, Minimal, Pop-up) with custom positioning.
- 📐 Smart Aspect Ratio Framing: Frame subject tracking for 9:16 Vertical (TikTok/Reels), 1:1 Square, or 16:9 Widescreen.
- ⚡ Local & Cloud FFmpeg Engine: High-speed video clipping, subtitle rendering, and aspect-ratio transformation.
- 💾 Project History & Cloud Sync: Persistent project storage with optional Firebase & Cloudinary integrations.
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router), React 19 |
| Styling & UI | Tailwind CSS v4, Framer Motion, Lucide React Icons |
| Speech-to-Text | Groq API (Whisper Large V3) |
| AI Intelligence | Google Gemini 2.5 Flash / OpenRouter (Claude 3.5 Sonnet) |
| Video Engine | FFmpeg (fluent-ffmpeg), @distube/ytdl-core |
| Storage & Backend | Firebase Firestore, Cloudinary, Inngest |
Before running Shortscut, ensure you have the following installed on your machine:
- Node.js:
v20.0.0or higher - npm or pnpm / yarn / bun
- FFmpeg: Required locally for video cutting and audio extraction.
sudo apt update && sudo apt install -y ffmpegbrew install ffmpegchoco install ffmpegFollow these commands to clone, configure, and launch Shortscut locally.
git clone https://github.com/soumik183/shortscut.git
cd shortscutnpm installCreate a .env.local file in the root directory:
cp .env.example .env.local 2>/dev/null || touch .env.localPopulate .env.local with your API keys:
# AI & Transcription Provider Keys
GROQ_API_KEY=your_groq_whisper_api_key_here
GEMINI_API_KEY=your_google_gemini_api_key_here
OPENROUTER_API_KEY=your_openrouter_api_key_here
# Firebase Configuration (Optional - for Cloud Sync)
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id
# Cloudinary Storage (Optional - for Media Uploads)
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secretNote
You can also enter API keys directly in the Settings menu within the app user interface.
npm run devOpen http://localhost:3000 in your browser to start using Shortscut!
| Command | Description |
|---|---|
npm run dev |
Starts the development server with Next.js Webpack hot reloading |
npm run build |
Builds the optimized production application |
npm run start |
Launches the built production server |
npm run lint |
Runs ESLint check across all project files |
shortscut/
├── app/
│ ├── api/
│ │ ├── analyze/ # AI transcript analysis & clip scoring
│ │ ├── render/ # FFmpeg video clipping & subtitle overlay
│ │ ├── transcribe/ # Groq Whisper speech-to-text API
│ │ └── upload/ # Local file & YouTube video ingestion
│ ├── globals.css # Custom Vercel-inspired design tokens
│ └── page.tsx # Main shortscut interactive workspace UI
├── components/ # Reusable UI components & settings modals
├── lib/
│ ├── services/ # FFmpeg, YouTube, Replicate & DB handlers
│ ├── context/ # AuthContext for Firebase user sessions
│ └── subtitles.py / .ts # Subtitle styling & timing calculators
└── .storage/ # Local cache for temporary video files (.gitignore)
Contributions, issues, and feature requests are welcome!
Feel free to check the Issues page.
This project is licensed under the MIT License.
Made with ❤️ by soumik183