PrettiFlow is an AI-powered development platform that lets you create full-stack applications, landing pages, and intelligent AI agents through natural conversation. No complex setup, no boilerplate - just describe what you want to build.
- Landing Page Builder - Generate beautiful, responsive landing pages with AI
- Full-Stack Web Apps - Build complete applications with real-time code execution
- AI Agent Creator - Design custom AI agents with tools, MCP servers, and capabilities
- Live Preview - See your creations come to life instantly
- Authentication - Secure user management with Supabase
- Payments - Integrated payment processing with Dodo Payments
- Framework: Next.js 16 (App Router)
- Language: TypeScript 5
- Styling: Tailwind CSS 4
- UI Components: shadcn/ui + Radix UI
- Animations: Framer Motion
- State Management: React 19
- Runtime: Node.js
- API Routes: Next.js API Routes
- Database: PostgreSQL (Neon)
- ORM: Drizzle ORM
- Authentication: Supabase Auth
- File Storage: Vercel Blob
- LLM Providers: OpenAI, Google Gemini, Groq
- Agent Framework: Inngest Agent Kit
- Code Execution: E2B Code Interpreter
- MCP Protocol: @modelcontextprotocol/sdk
- Hosting: Vercel
- Database: Neon (Serverless Postgres)
- Storage: Vercel Blob
- Payments: Dodo Payments
- Node.js 18+ and npm
- PostgreSQL database (or Neon account)
- Supabase account
- API keys for AI providers
git clone https://github.com/yourusername/prettiflow.git
cd prettiflownpm installCreate a .env.local file in the root directory:
# AI Providers
OPENAI_API_KEY=your_openai_api_key
GEMINI_API_KEY=your_gemini_api_key
GROQ_API_KEY=your_groq_api_key
# E2B Code Execution
E2B_API_KEY=your_e2b_api_key
# Database (Neon)
DATABASE_URL=postgresql://user:password@host/database?sslmode=require
# Supabase Authentication
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
# Vercel (for deployments)
VERCEL_TOKEN=your_vercel_token
BLOB_READ_WRITE_TOKEN=your_blob_token
# Payments (Dodo Payments)
DODO_PAYMENTS_API_KEY=your_dodo_api_key
DODO_PAYMENTS_WEBHOOK_KEY=your_webhook_key
DODO_PAYMENTS_RETURN_URL=http://localhost:3000
DODO_PAYMENTS_ENVIRONMENT=test_mode # or live_mode# Push schema to database
npm run db:push
# (Optional) Open Drizzle Studio to view/edit data
npm run db:studionpm run devOpen http://localhost:3000 to see your app.
# Development
npm run dev # Start dev server
npm run build # Build for production
npm run start # Start production server
# Database
npm run db:push # Push schema changes to DB
npm run db:studio # Open Drizzle Studio
npm run db:seed # Seed database with sample data
# Inngest (for agent workflows)
npm run inngest # Start Inngest dev server- AI-powered page generation
- Real-time Monaco editor
- Live preview with device emulation
- Export to Vercel
- Full-stack app generation
- E2B sandboxed execution
- File system management
- Inngest-powered agents
- Custom agent configuration
- Tool integration (HTTP APIs, JavaScript)
- MCP server connections
- AI-suggested tools via Groq
The app uses Drizzle ORM with PostgreSQL. Main tables:
Core Tables:
users- User accounts with email, name, and creditspages- Landing pages with code and metadataprojects- Web applications with sandbox IDs and Vercel integrationagents- AI agents with system prompts, models, and tool referencestools- Reusable tools (HTTP APIs, JavaScript, MCP servers)
Supporting Tables:
messages- Chat messages for web app projectspagesMessages- Chat messages for landing pagesdeployments- Vercel deployments for projectspageDeployments- Vercel deployments for pagessubscriptions- User subscription plansagentApiKeys- API keys for agent access
View full schema: lib/database/schema.ts
- OpenAI - platform.openai.com
- Google AI Studio - aistudio.google.com
- Groq - console.groq.com
- E2B - e2b.dev
- Supabase - supabase.com
- Neon - neon.tech
- Vercel - vercel.com
- Dodo Payments - dodopayments.com
- Push your code to GitHub
- Import project in Vercel
- Add environment variables in Vercel dashboard
- Deploy
# Or use Vercel CLI
vercel --prodMake sure to add all variables from .env.local to your Vercel project settings.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License.
- Built with Next.js
- UI components from shadcn/ui
- AI agents powered by Inngest Agent Kit
- Code execution via E2B
- MCP protocol by Anthropic
Visit PrettiFlow • Documentation • Report Bug • Request Feature
Made with love by Amit
