Vibe
Mihai-Cristian Farcaศ / 11 August 2025
A Lovable clone built with Next.js.

Vibe ๐จ
Build something with Vibe - Create apps and websites by chatting with AI
Vibe is an intelligent development platform that allows you to create web applications and websites through natural language conversations with AI. Simply describe what you want to build, and watch as AI generates working code, complete with live previews.
โจ Features
- ๐ค AI-Powered Development: Chat with AI to describe your ideas and generate working applications
- ๐ Project Management: Organize and manage multiple projects in one place
- ๐ Live Code Preview: See your code in action with real-time previews and interactive demos
- ๐ File Explorer: Browse and examine generated code files with syntax highlighting
- ๐ User Authentication: Secure user accounts powered by Clerk
- โ๏ธ Cloud Sandboxes: Each project runs in isolated E2B sandboxes for safe execution
- ๐จ Modern UI: Beautiful, responsive interface built with Next.js and Tailwind CSS
- ๐ Dark Mode: Full dark mode support with system preference detection
๐ ๏ธ Tech Stack
- Frontend: Next.js 15, React 19, TypeScript
- Styling: Tailwind CSS, Radix UI components
- Authentication: Clerk
- Database: PostgreSQL with Prisma ORM
- AI Integration: OpenAI GPT-4.1 via Inngest Agent Kit
- Code Execution: E2B Code Interpreter sandboxes
- API: tRPC for type-safe API calls
- Deployment: Vercel-ready
๐ Getting Started
Prerequisites
- Node.js 18+
- pnpm
- PostgreSQL database
- Clerk account
- E2B account
- OpenAI API key
Installation
-
Clone the repository
git clone https://github.com/your-username/vibe.git cd vibe
-
Install dependencies
pnpm install
-
Set up environment variables Create a
.env.local
file in the root directory:# Database DATABASE_URL="postgresql:/..." # Clerk Authentication NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_... CLERK_SECRET_KEY=sk_test_... # E2B Sandboxes E2B_API_KEY=your_e2b_api_key # OpenAI OPENAI_API_KEY=sk-... # Next NEXT_PUBLIC_APP_URL='http://localhost:3000' NEXT_PUBLIC_CLERK_SIGN_UP_URL='/sign-up' NEXT_PUBLIC_CLERK_SIGN_IN_URL='/sign-in' NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL='/' NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL='/'
-
Set up the database
pnpm prisma generate pnpm prisma migrate dev
-
Run the development server
pnpm dev
-
Open your browser: Visit http://localhost:3000 to start building with Vibe!
๐๏ธ Project Structure
src/
โโโ app/ # Next.js app router
โ โโโ (home)/ # Home page and auth
โ โโโ projects/ # Project pages
โ โโโ api/ # API routes (tRPC, Inngest)
โโโ components/ # Reusable UI components
โ โโโ ui/ # Radix UI components
โ โโโ ... # Custom components
โโโ modules/ # Feature modules
โ โโโ home/ # Project creation and listing
โ โโโ projects/ # Project view and chat
โ โโโ messages/ # Message handling
โโโ inngest/ # AI agent functions
โโโ lib/ # Utilities and database
โโโ trpc/ # API layer
๐ค How It Works
- Create a Project: Start by creating a new project and describing what you want to build
- Chat with AI: Engage in a conversation with the AI agent to refine your requirements
- Code Generation: The AI generates working code using the E2B sandbox environment
- Live Preview: See your application running in real-time with a live preview
- Code Exploration: Browse through the generated files and understand the implementation
- Iterate: Continue the conversation to modify, enhance, or fix your application
๐ฆ Key Components
AI Agent System
- Powered by OpenAI GPT-4.1 and Inngest Agent Kit
- Capable of running terminal commands, creating/updating files, and reading project files
- Operates in isolated E2B sandboxes for safe code execution
Authentication
- Clerk integration for secure user management
- Support for multiple authentication providers
- Protected routes and user-specific projects
Database Schema
- Projects: User projects with metadata
- Messages: Conversation history with role-based messages
- Fragments: Generated code artifacts with sandbox URLs
๐ง Development
Available Scripts
pnpm dev
- Start development server with Turbopackpnpm build
- Build for productionpnpm start
- Start production serverpnpm lint
- Run ESLintpnpm prisma:studio
- Open Prisma Studiopnpm prisma:migrate
- Run database migrations
Code Style
- ESLint configuration with Next.js rules
- Prettier for code formatting
- TypeScript for type safety
- Tailwind CSS for styling
๐ฎ Upcoming Features
- ๐ณ Billing Integration: Clerk-powered billing system (coming soon)
- ๐ Enhanced Templates: More project templates and frameworks
- ๐ Version Control: Git integration for project versioning
- ๐ฅ Collaboration: Share and collaborate on projects
- ๐ Analytics: Usage metrics and project insights
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- E2B - Cloud sandboxes for AI agents
- Clerk - Authentication, billing and user management
- Inngest - Durable functions and AI agent orchestration
- shadcn/ui - Beautiful component library
You can find the source code on my Github.
Thanks for reading! Cheers! ๐ป
P.S. If you enjoyed this post, consider giving me some feedback and subscribing to my newsletter for more insights and updates. You can do so from my contact page. ๐