Turn your brain into memes! Generate absolutely unhinged vertical videos that will make your followers question your sanity.
- 🤖 AI-powered script generation
- 🎭 TikTok-style video preview
- 🗣️ Text-to-Speech using OpenAI's TTS API
- 🎬 Beautiful video backgrounds
- 💫 Animated captions and UI elements
- 🎨 Modern and sleek design
- 🚀 Built with Next.js 14 and TypeScript
- Framework: Next.js 14 (App Router)
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Language: TypeScript
- AI Integration: OpenAI API
- Deployment: Vercel
- Video Processing: HTML5 Video
- Animation: CSS Animations & Transitions
- Node.js 18+
- npm/yarn/pnpm
- OpenAI API Key
- Clone the repository:
git clone https://github.com/avayyyyyyy/brainrot.git
cd brainrot- Install dependencies:
npm install- Create a
.env.localfile in the root directory:
OPENAI_API_KEY=your_api_key_here- Start the development server:
npm run dev- Open http://localhost:3000 in your browser.
- Enter a prompt or use the "Magic" button for random ideas
- Click "Let it cook" to generate your script
- Once generated, click "Generate Video" to create a TikTok preview
- Watch your script come to life with AI-generated voice and animated captions
- Use the playback controls to replay or restart the video
- Script Generator: Create engaging scripts with AI assistance
- Phone Preview: TikTok-style video player with animated captions
- Magic Fill: Quick random prompt suggestions
- Progress Bar: Visual feedback for script generation
- Copy Button: Easy script sharing
- Video Controls: Play, pause, and restart functionality
OPENAI_API_KEY=your_api_key_herePlace your background videos in the public directory:
video.mp4video1.mp4
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
If you find this project helpful, consider supporting its development:
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for their amazing APIs
- Next.js team for the awesome framework
- Vercel for hosting
- All contributors and supporters
- Multiple voice options
- Custom video upload
- More animation styles
- Script templates
- Social sharing
- User accounts
- Save favorites
Shubhankit Jain - @avayyyyyyy
Project Link: https://github.com/avayyyyyyy/brainrot
--
Made with 🧠 (or lack thereof) by Shubhankit Jain
