All projects

Mager Klip

Client projectNext.jsTypescriptTailwindCSSShadcn UINest JSExpress JSGoogle DrivePostgreSqlRemotion

Explanation

Mager Klip is an AI-powered video clipping platform that turns long-form videos into engaging short-form content for TikTok, Instagram Reels, and YouTube Shorts. Users can submit a YouTube link or upload a video, let the AI identify the most compelling moments, and generate multiple vertical clips with automatic subtitles. Each result can be refined in a timeline-based editor before it is published or scheduled to connected social media accounts.

The platform also includes a campaign ecosystem where brands and creators can collaborate with clippers, track submissions and performance, and reward content based on its reach.

My Contribution

My role on Mager Klip spans frontend and backend engineering, including video preparation for TikTok publishing and campaign features for creators and brands.

Video preparation for TikTok

I worked on the video preparation flow used before submitting files to TikTok. The implementation addresses MP4 container compatibility by moving the moov atom, which contains the information needed to read the media, to the beginning of the file with FFmpeg’s +faststart option.

The flow first attempts a stream-copy remux to avoid unnecessary re-encoding. If that fails, it falls back to H.264 video and AAC audio encoding. The prepared file is uploaded to storage and made available through a public CDN URL for publishing, with progress updates across the preparation steps.

Campaign features for creators and brands

I also developed campaign features across the frontend and backend for creators and brands. The campaign experience connects brand campaigns with creators and presents view-based reward rates, minimum view requirements, and budget usage.

Explore the creator campaign page.

Platform Features

  • AI-Powered Video Clipping: Analyses long-form videos, identifies engaging moments, and turns them into multiple short-form clips automatically.
  • Multiple Video Sources: Supports YouTube links, direct video uploads, and Google Drive files as sources for clip generation.
  • Automatic Subtitles: Generates subtitles for each clip and provides customizable styles to keep the content readable and on-brand.
  • Timeline-Based Video Editor: Offers a Remotion-powered editor for refining clip timing, hooks, effects, audio, images, thumbnails, and other visual elements.
  • Highlight Reel and Story Recap: Creates alternative short-form formats beyond standard clips for different storytelling and publishing needs.
  • Campaign Management: Allows brands and creators to launch clipping campaigns with budgets, view-based rewards, submission tracking, and performance summaries.
  • Social Media Publishing: Connects social accounts so finished content can be published immediately or scheduled for TikTok, Instagram, and other supported platforms.
  • Background Processing: Runs downloading, AI analysis, clip generation, rendering, and uploading as background jobs with clear progress updates and notifications.

Tech Stack

  • Next.js: Powers the frontend application, dashboard, and content-management experience.
  • TypeScript: Provides end-to-end type safety across the frontend and backend codebases.
  • TailwindCSS: Enables a responsive, utility-first design system for the platform’s dark interface.
  • Shadcn UI: Supplies accessible and reusable interface components that can be customized to match the product design.
  • NestJS: Structures the backend services, business logic, and API modules.
  • Express.js: Serves as the HTTP runtime for handling API requests and integrations.
  • Prisma: Provides type-safe database access and schema management for application data.
  • PostgreSQL: Stores users, projects, generated clips, campaigns, social accounts, and publishing data.
  • Google Drive API: Lets users select and process videos stored in their Google Drive account.
  • Remotion: Powers programmatic video composition, preview, timeline editing, and rendering.

Screenshots

Mager Klip home dashboard

Mager Klip dashboard with video source input and AI generation modes

Mager Klip timeline video editor

Remotion-powered vertical video editor with hook templates and a multi-track timeline

Mager Klip campaign detail page

Campaign detail page with creator rewards and social media performance tracking

Mager Klip AI generation progress

Background AI clip generation with step-by-step processing progress