An AI-powered app that supports the development of web applications by interpreting user-provided prompts and autonomously generating corresponding code, structure, and interactive components. Built with Next.js, TypeScript, and integrated with OpenAI. Check out the app on Vercel: vibe-two-ruddy.vercel.app/
Note: AI features, such as code generation, are unavailable when the associated OpenAI account has insufficient credits.
- Build web apps by describing an idea in natural language
- Live project preview with URL access
- Project and conversation history alongside generated code files
- Credit system with usage tracking
- Secure authentication with Clerk
- User session management
- Protected routes and API endpoints
- Free Tier: 3 monthly credits
- Pro: 100 monthly credits
- Subscription management via Clerk
- Next.js 15 - React framework with App Router
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling
- React Hook Form - Form handling and validation
- shadcn/ui - Customizable and reusable components
- tRPC - End-to-end typesafe APIs
- Prisma ORM - Type-safe database access
- PostgreSQL - Primary database (via Neon)
- OpenAI - Code generation
- Inngest - Background job processing and agent networks
- Clerk - Authentication system and subscription billing
- E2B - Secure Cloud Sandbox for executing AI generated code
- Docker - Custom sandbox templates
- TanStack Query - Data fetching and caching
Create a .env file with the following variables:
# Database
DATABASE_URL="postgresql://username:password@host/database?sslmode=require"
# OpenAI
OPENAI_API_KEY="your_openai_api_key"
# E2B
E2B_API_KEY="your_e2b_api_key"
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="your_next_public_clerk_publishable_key"
CLERK_SECRET_KEY="your_clerk_secret_key"
NEXT_PUBLIC_CLERK_SIGN_IN_URL="/sign-in"
NEXT_PUBLIC_CLERK_SIGN_UP_URL="/sign-up"
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL="/"
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL="/"npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpx prisma generate- Generate Prisma Client from schemanpx prisma db push- Sync schema changes to the databasenpx inngest-cli@latest dev- Run Inngest Dev Server
