Skip to content
Β 
Β 

Latest commit

Β 

History

65 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Frame Studio

demo

AI motion graphics generator using React, Remotion, TypeScript, and Google Gemini API.

Provide a text prompt. Frame Studio generates a Remotion video project, compiles it, renders an MP4 directly in your browser, and downloads it. No server-side rendering, no AWS, no credit card needed.

Architecture

Browser                 Server (Vercel - FREE)
   β”‚                          β”‚
   │── prompt ──────────────► β”‚
   β”‚                          │── Plan (Gemini)
   β”‚                          │── Codegen (Gemini)
   β”‚                          │── TypeScript check + fix loop
   β”‚                          │── Compile TSX β†’ JS (esbuild)
   │◄── compiled code ─────── β”‚
   β”‚                          β”‚
   │── renderMediaOnWeb()     β”‚
   │── (WebCodecs + Mediabunny)
   │── download MP4           β”‚

Flow:

  1. Plan: Gemini creates video structure from prompt
  2. Codegen: Gemini writes React/Remotion code
  3. Compile: TypeScript validation in sandbox
  4. Fix: Gemini repairs compilation errors (max 3 attempts)
  5. Server compiles TSX β†’ JS using esbuild
  6. Browser evaluates the code and renders MP4 using @remotion/web-renderer
  7. Instant download β€” no queue, no waiting

Tech:

  • Next.js 15 (free Vercel deployment)
  • Remotion 4.0 for video rendering (client-side via WebCodecs)
  • Google Gemini API for AI code generation
  • Zero infrastructure costs β€” no servers, no AWS, no credit card

Prerequisites

  • Node.js 18+
  • pnpm
  • Google Gemini API key

Setup

pnpm install
pnpm dev

Application runs at http://localhost:3000.

Provide your Gemini API key in the web UI or set GEMINI_API_KEY env var.

Deployment (Vercel β€” free)

pnpm build

Deploy to Vercel. Set GEMINI_API_KEY in Vercel environment variables. No other configuration needed β€” rendering happens in the user's browser.

Browser Support

Client-side video rendering requires the WebCodecs API:

  • Chrome 94+
  • Firefox 130+
  • Edge 94+

Development

pnpm dev        # Start dev server
pnpm build      # Production build
pnpm lint       # Lint

Project Structure

apps/web/           Next.js app with API routes and UI
packages/pipeline/  AI processing (prompts, schemas, LLM client)
packages/remotion-skeleton/  Template for video projects

Features

  • Zero infrastructure β€” renders entirely in the browser
  • Custom animated cursor (macOS-style arrow with hover states)
  • Model selector (6 Gemini models)
  • Real-time progress screen with stage updates
  • Premium glassmorphic UI

Notes

  • Uses webpack (not Turbopack) for stability
  • API key stored in HTTP-only cookies
  • Videos render at 1920x1080, 30fps

License

MIT

About

πŸƒ Frame Studio - AI-powered motion graphics generator. Write a prompt, get production-ready Remotion videos with Gemini. TypeScript-validated, direct MP4 download.

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages