AI-powered storyboards to easily stitch together scenes for videos, built by rob phillips.
Before you begin, you'll need:
- Node.js 18+ installed
- Bun (recommended) or npm/yarn
- A Replicate account for image generation
- A Cloudflare R2 account for storage
- A RunwayML account for video generation
Clone this repo and create a .env.local file in the root directory with the following variables:
# Image Generation
REPLICATE_API_KEY=r8_your_key_here
# Cloudflare R2
CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key_id
CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_key
CLOUDFLARE_R2_BUCKET_NAME=your_bucket_name
CLOUDFLARE_R2_ENDPOINT_URL=https://your-storage.r2.cloudflarestorage.com
CLOUDFLARE_R2_PUBLIC_URL=https://your-public-url.com (e.g. https://localhost.foho.ai)
# Runway
RUNWAYML_API_SECRET=key_your_secret_here- Install dependencies:
bun install- Run the development server:
bun devThe app will be available at http://localhost:3005
- Create storyboards using an intuitive flow-based interface, to more easily control the flow of scenes
- Generate images from text descriptions using Flux Pro Ultra
- Convert images to videos with Runway Gen-3 Alpha
- Stores the storyboard state in local storage for now
- Store images and videos in Cloudflare R2 for low-cost storage
- [Eventually] Composite multiple videos into a single storyboard sequence
- Next.js 14
- React Flow (@xyflow/react)
- TypeScript
- Tailwind CSS
- Shadcn UI
- Replicate AI
- RunwayML
- Cloudflare R2
- Use
bun run formatto format code with Prettier - Use
bun run lintto run ESLint
Create a .env.test file in the root directory with test credentials:
REPLICATE_API_KEY=test-replicate-key
RUNWAYML_API_SECRET=test-runway-key
CLOUDFLARE_R2_ACCESS_KEY_ID=test-r2-key
CLOUDFLARE_R2_SECRET_ACCESS_KEY=test-r2-secret
CLOUDFLARE_R2_ENDPOINT_URL=https://test.r2.cloudflarestorage.com
CLOUDFLARE_R2_BUCKET_NAME=test-bucket
CLOUDFLARE_R2_PUBLIC_URL=https://test.storyboardhero.coRun tests with:
bun teststoryboard-hero/
├── app/ # Next.js app router pages
├── app/api/ # API routes for image and video generation
├── components/ # React & Shadcn UI components
├── hooks/ # React hooks
├── lib/ # Utility functions and services
└── public/ # Static assets
To learn more about the technologies used in this project:
