A Sundai Club project. Vibe coded by Andi Liu, Cyrine, and Debo.
example_video.mp4
This repo transforms blog post content into engaging short videos featuring an AI talking head. Users can paste their blog text, potentially add custom notes, review and edit an AI-generated script, and then generate, preview, and download the video (example video in /public/example_video.mp4).
- Framework: Next.js
- UI Components: shadcn/ui
- Video Generation: HeyGen API
- Text Generation: OpenAI API
Follow these steps to set up and run the project locally.
-
Install dependencies:
npm install
-
Set up environment variables: Create a file named
.env.localin the project root and add the following variables:# .env.local OPENAI_API_KEY=your_openai_api_key HEYGEN_API_KEY=your_heygen_api_key # API URL (Likely for Next.js API routes used internally) # Keep default for local development unless your API routes run elsewhere NEXT_PUBLIC_API_URL=http://localhost:3000 # Default Next.js portReplace
your_openai_api_keyandyour_heygen_api_keywith your actual keys.
npm run devOpen http://localhost:3000 (or the port specified in the output) in your browser to view the application.