cloudflare / vibesdk
An open-source vibe coding platform that helps you build your own vibe-coding platform, built entirely on Cloudflare stack
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing cloudflare/vibesdk in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewπ§‘ Cloudflare Vibe SDK > **An open source full-stack AI webapp generator** β Deploy your own instance of Cloudflare VibeSDK, an AI vibe coding platform that you can run and customize yourself. π Live Demo **build.cloudflare.dev** *Explore VibeSDK Build before deploying your own stack.* **π Click to deploy your own instance!** *Follow the setup guide below to configure required services* Star History --- β¨ What is Cloudflare VibeSDK? Cloudflare VibeSDK is an open source AI vibe coding platform built on Cloudflare's developer platform. If you're building an AI-powered platform for building applications, this is a great example that you can deploy and customize to build the whole platform yourself. Once the platform is deployed, users can say what they want to build in natural language, and the AI agent will create and deploy the application. **π Experience it live at build.cloudflare.dev** β Try it out before deploying your own instance! π― Perfect For Companies building AI-powered platforms Run your own solution that allows users to build applications in natural language. Customize the AI behavior, control the generated code patterns, integrate your own component libraries, and keep all customer data within your infrastructure. Perfect for startups wanting to enter the AI development space or established companies adding AI capabilities to their existing developer tools. Internal development Enable non-technical teams to create the tools they need without waiting for engineering resources. Marketing can build landing pages, sales can create custom dashboards, and operations can automate workflows, all by describing what they want. SaaS platforms Let your customers extend your product's functionality without learning your API or writing code. They can describe custom integrations, build specialized workflows, or create tailored interfaces specific to their business needs. --- π― Key Features π€ **AI Code Generation** β Phase-wise development with intelligent error correction β‘ **Live Previews** β App previews running in sandboxed containers π¬ **Interactive Chat** β Guide development through natural conversation π± **Modern Stack** β Generates React + TypeScript + Tailwind apps π **One-Click Deploy** β Deploy generated apps to Workers for Platforms π¦ **GitHub Integration** β Export code directly to your repositories ποΈ Built on Cloudflare's Platform Cloudflare VibeSDK Build utilizes the full Cloudflare developer ecosystem: β’ **Frontend**: React + Vite with modern UI components β’ **Backend**: Workers with Durable Objects for AI agents β’ **Database**: D1 (SQLite) with Drizzle ORM β’ **AI**: Multiple LLM providers via AI Gateway β’ **Containers**: Sandboxed app previews and execution β’ **Storage**: R2 buckets for templates, KV for sessions β’ **Deployment**: Workers for Platforms with dispatch namespaces SDK for Programmatic Access Build apps programmatically using the official TypeScript SDK: **SDK Documentation** - Full API reference and examples π Quick Deploy Checklist Before clicking "Deploy to Cloudflare", have these ready: β Prerequisites β’ Cloudflare Workers Paid Plan β’ Workers for Platforms subscription β’ Advanced Certificate Manager (needed when you map a first-level subdomain such as so Cloudflare can issue the required wildcard certificate for preview apps on ) π Required API Key β’ **Google Gemini API Key** - Get from ai.google.dev Once you click "Deploy to Cloudflare", you'll be taken to your Cloudflare dashboard where you can configure your VibeSDK deployment with these variables. π What you'll configure β’ - Your Google Gemini API key for Gemini models β’ - Secure random string for session management β’ - Webhook authentication secret β’ - Encryption key for secrets β’ - Container performance tier (optional, see section below) β’ - Email address of the user allowed to use the app. This is used to verify the user's identity and prevent unauthorized access. β’ - Custom domain for your app that you have configured in Cloudflare (**Required**). If you use a first-level subdomain such as , make sure the Advanced Certificate Manager add-on is active on that zone. Custom domain DNS setup To serve preview apps correctly, add the following DNS record in the zone that hosts : β’ Type: β’ Name: β’ Target: (replace with your base custom domain or another appropriate origin) β’ Proxy status: **Proxied** (orange cloud) Adjust the placeholder / parts to match your domain. DNS propagation can take timeβexpect it to take up to an hour before previews resolve. This step may be automated in a future release, but it is required today. ποΈ Sandbox Instance Configuration (Optional) VibeSDK uses Cloudflare Containers to run generated applications in isolated environments. You can configure the container performance tier based on your needs and Cloudflare plan. Available Instance Types > **π’ Updated Oct 2025**: Cloudflare now offers larger container instance types with more resources! | Instance Type | Memory | CPU | Disk | Use Case | Availability | |---------------|--------|-----|------|----------|--------------| | (alias: ) | 256 MiB | 1/16 vCPU | 2 GB | Development/testing | All plans | | (alias: ) | 4 GiB | 1/2 vCPU | 8 GB | Light production apps | All plans | | | 8 GiB | 1 vCPU | 12 GB | Medium workloads | All plans | | | 12 GiB | 2 vCPU | 16 GB | Production apps | All plans (**Default**) | | | 12 GiB | 4 vCPU | 20 GB | High-performance apps | All plans | Configuration Options **Option A: Via Deploy Button (Recommended)** During the "Deploy to Cloudflare" flow, you can set the instance type as a **build variable**: β’ Variable name: β’ Recommended values: β’ **Standard/Paid users**: (default, best balance) β’ **High-performance needs**: **Option B: Via Environment Variable** For local deployment or CI/CD, set the environment variable: Instance Type Selection Guide **For All Users:** β’ ** ** (Recommended) - Best balance for production apps with 2 vCPU and 12 GiB mβ¦