Vibe is a modern AI-powered code generation platform that transforms natural language descriptions into fully functional Next.js applications. Simply describe what you want to build, and Vibe's intelligent AI agent will generate complete, production-ready code with live preview capabilities.
- AI-Powered Code Generation: OpenAI GPT-4 powered agent that understands natural language
- Live Preview: Instant preview of generated applications in secure E2B sandboxes
- Pre-Built Templates: Netflix, YouTube, Airbnb, Spotify clones and more
- Code Explorer: Browse and examine generated source code with syntax highlighting
- Project Management: Save, organize, and iterate on your projects
- Authentication: Secure user management with Clerk
- Usage Tracking: Credit-based system with free and pro tiers
Frontend: Next.js 15, TypeScript, Tailwind CSS, Shadcn/UI, React Query Backend: tRPC, PostgreSQL, Prisma ORM, Clerk Auth AI & Jobs: OpenAI GPT-4, Inngest, E2B sandboxes
- Node.js 18+ and npm
- PostgreSQL database
- OpenAI API key
- E2B API key
- Clerk authentication setup
- Inngest account
- Clone the repository
git clone https://github.com/your-username/vibe.git
cd vibe- Install dependencies
npm install- Set up environment variables
cp .env.example .env.localConfigure the following environment variables:
# Database
DATABASE_URL="postgresql://username:password@localhost:5432/vibe"
# Authentication (Clerk)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
# AI Integration
OPENAI_API_KEY=your_openai_api_key
# E2B Sandboxes
E2B_API_KEY=your_e2b_api_key
# Inngest
INNGEST_EVENT_KEY=your_inngest_event_key
INNGEST_SIGNING_KEY=your_inngest_signing_key- Set up the database
npx prisma generate
npx prisma migrate deploy- Seed the database (optional)
npm run db:seednpm run devnpx inngest-cli@latest devApply schema changes in development:
npx prisma migrate devOpen Prisma Studio for database management:
npx prisma studioReset database (
npx prisma migrate resetvibe/
├── src/
│ ├── app/ # Next.js App Router pages
│ ├── components/ # Reusable UI components
│ ├── modules/ # Feature-based modules
│ ├── lib/ # Utility functions
│ ├── hooks/ # Custom React hooks
│ ├── inngest/ # Background job functions
│ └── trpc/ # tRPC router and client setup
├── prisma/ # Database schema and migrations
├── public/ # Static assets
└── sandbox-templates/ # E2B sandbox configurations
- Sign up/Sign in to your Vibe account
- Describe your app in the main input field
- Choose a template or write a custom description
- Submit and watch the AI generate your application
- Preview the live result in the embedded sandbox
- Explore the generated code using the file explorer
- "Build a modern todo app with drag-and-drop functionality"
- "Create a social media dashboard with user posts and analytics"
- "Build a restaurant website with menu and online ordering"
- "Create a fitness tracker with workout logging and progress charts"
Free Tier: 2 credits per month Pro Tier: 100 credits per month with priority generation
- Deploy to Vercel
npm run build
vercel --prod- Configure environment variables in Vercel dashboard
- Set up database connection
- Configure webhooks for Inngest
docker build -t vibe .
docker run -p 3000:3000 vibeDatabase Connection Issues
- Verify DATABASE_URL is correct
- Ensure PostgreSQL is running
AI Generation Failures
- Verify OpenAI API key is valid
- Check API usage limits
Sandbox Issues
- Verify E2B API key
- Check sandbox quotas