Skip to content
soumik183Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

⚡ Shortscut

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.

Next.js TypeScript Tailwind CSS FFmpeg License


🌟 Key Features

  • 🎯 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.

🛠️ Tech Stack

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

📋 Prerequisites

Before running Shortscut, ensure you have the following installed on your machine:

  1. Node.js: v20.0.0 or higher
  2. npm or pnpm / yarn / bun
  3. FFmpeg: Required locally for video cutting and audio extraction.

Installing FFmpeg

Linux (Ubuntu/Debian / Termux)

sudo apt update && sudo apt install -y ffmpeg

macOS (Homebrew)

brew install ffmpeg

Windows (Chocolatey)

choco install ffmpeg

🚀 Quick Start Guide

Follow these commands to clone, configure, and launch Shortscut locally.

1. Clone the Repository

git clone https://github.com/soumik183/shortscut.git
cd shortscut

2. Install Dependencies

npm install

3. Set Up Environment Variables

Create a .env.local file in the root directory:

cp .env.example .env.local 2>/dev/null || touch .env.local

Populate .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_secret

Note

You can also enter API keys directly in the Settings menu within the app user interface.


4. Run Development Server

npm run dev

Open http://localhost:3000 in your browser to start using Shortscut!


📜 Available NPM Scripts

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

🏗️ Project Architecture

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)

🤝 Contributing

Contributions, issues, and feature requests are welcome!
Feel free to check the Issues page.


📄 License

This project is licensed under the MIT License.

Made with ❤️ by soumik183

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages