本文へスキップ

Cloudflare VibeSDK

トレンドメンテナンス中
cloudflare/vibesdk

開発者が独自の AI テキスト→アプリ生成プラットフォームを構築できる、オープンソースの Vibe Coding プラットフォーム。Cloudflare のスタック全体を活用し、即時のアプリ生成、サンドボックス実行、グローバルなエッジデプロイを、エンタープライズ級のセキュリティとスケーラビリティで実現します。

GitHub で見る
スター
5138
フォーク
1218
ウォッチ
5138
未解決の Issue
23

この紹介文は現在英語版のみです。

Build your own AI-powered “vibe coding” platform with the complete Cloudflare stack

Overview

Cloudflare VibeSDK is an enterprise-ready, open-source platform that transforms natural language descriptions into fully functional web applications. Built entirely on Cloudflare’s infrastructure, VibeSDK enables developers to create their own “vibe coding” platforms where users can generate, preview, and deploy apps through simple conversational interfaces.

Key Features

  • 🤖 Multi-AI Provider Support: Integrate Claude (Anthropic), GPT-4 (OpenAI), and Gemini (Google AI Studio)
  • 🏗️ Instant App Generation: Transform natural language into complete React/TypeScript applications
  • 🔒 Sandboxed Execution: Isolated container environments using Cloudflare Browser Rendering
  • 🚀 One-Click Deploy: Automatic deployment to Cloudflare Pages with custom domains
  • 🎨 Real-time Preview: Live app previews with hot reload capabilities
  • 🔐 Enterprise Security: Encrypted secrets, rate limiting, and content filtering
  • 🌐 Edge-Native Architecture: Built on Workers, Durable Objects, D1, R2, and KV
  • 📊 Resource Management: Configurable instance types (lite, standard-1 to standard-4)
  • 🔑 OAuth Integration: GitHub authentication with extensible OAuth support

Core Technologies

Cloudflare Services Used

  • Workers: Serverless compute for the main application logic
  • Browser Rendering: Container-based sandboxed app execution
  • Durable Objects: Stateful coordination and real-time updates
  • D1 Database: SQLite database for app metadata and user data
  • R2 Storage: Object storage for generated code and assets
  • KV Storage: Fast key-value storage for sessions and cache
  • Pages: Automatic deployment for generated applications
  • AI Gateway: Unified interface for multiple AI providers

Architecture Highlights

Multi-Tier Container Instances

VibeSDK supports flexible container configurations:

  • Lite: Cost-effective for simple apps
  • Standard-1: Basic workloads with 1 vCPU
  • Standard-2: Moderate workloads with 2 vCPUs
  • Standard-3: Default tier with 4 vCPUs (recommended)
  • Standard-4: High-performance tier with 8 vCPUs

AI-Powered Generation Flow

  1. User Input: Natural language app description
  2. AI Processing: Multi-model support with streaming responses
  3. Code Generation: Complete React/TypeScript application structure
  4. Containerization: Isolated sandbox environment creation
  5. Preview: Real-time preview with unique subdomain
  6. Deployment: Optional push to production with custom domain

Quick Start

# One-click deployment with automated setup
# Visit the GitHub repository and click "Deploy to Cloudflare"

Local Development

# Clone the repository
git clone https://github.com/cloudflare/vibesdk.git
cd vibesdk

# Install dependencies
npm install  # or: bun install (recommended)

# Run automated setup
npm run setup

# Start development server
bun run dev

The setup script guides you through:

  • Cloudflare credentials configuration
  • AI provider API keys setup
  • OAuth integration (GitHub)
  • Database creation and migrations
  • Development and production environments

Manual Deployment

# Set required environment variables
export CLOUDFLARE_API_TOKEN="your-api-token"
export CLOUDFLARE_ACCOUNT_ID="your-account-id"

# Deploy to production
bun run deploy

Configuration

Required API Keys

  • ANTHROPIC_API_KEY: Claude AI integration
  • OPENAI_API_KEY: GPT models integration
  • GOOGLE_AI_STUDIO_API_KEY: Gemini integration
  • JWT_SECRET: Authentication token encryption
  • CLOUDFLARE_AI_GATEWAY_TOKEN: AI Gateway authentication

Optional Features

  • GitHub OAuth: Social authentication
  • Custom Domains: Wildcard CNAME for preview apps
  • Rate Limiting: Configurable per-user limits
  • Content Filtering: AI-powered moderation

Use Cases

1. Internal Developer Tools

Create custom app generators for your team with company-specific templates and frameworks.

2. Educational Platforms

Build interactive coding learning environments where students describe and generate projects.

3. Rapid Prototyping

Enable product teams to quickly generate and test UI concepts without writing code.

4. No-Code Platforms

Power the backend for no-code/low-code tools with AI-driven code generation.

5. API Integration Demos

Generate example applications that integrate with your APIs automatically.

Security Features

  • 🔐 Encrypted Secrets: All API keys stored with Cloudflare encryption
  • 🏰 Sandboxed Execution: Complete isolation between generated apps
  • 🛡️ Input Validation: All user inputs sanitized and validated
  • 🚨 Rate Limiting: Prevents abuse and ensures fair usage
  • 🔍 Content Filtering: AI-powered detection of inappropriate content
  • 📝 Audit Logs: Complete tracking of all generation activities
  • 🔒 CORS Protection: Configurable cross-origin resource sharing
  • 🎯 Container Isolation: Each preview runs in isolated environment

Benefits for Developers

  1. Turnkey Solution: Complete platform ready to deploy and customize
  2. Modern Stack: Built with TypeScript, React, and latest Cloudflare features
  3. Scalable Architecture: Edge-native design handles global scale
  4. Cost-Effective: Leverage Cloudflare’s generous free tier
  5. Extensible: Open-source with clear extension points
  6. Production-Ready: Enterprise security and reliability built-in

Advanced Features

Custom AI Models

Extend beyond the default providers by integrating any OpenAI-compatible API.

Template System

Define custom templates for different app types and frameworks.

Workflow Integration

Connect generation events to external systems via webhooks.

Analytics and Monitoring

Built-in tracking for generation metrics and usage patterns.

Deployment Options

  • Deploy to Cloudflare: One-click setup with automatic resource provisioning
  • GitHub Actions: CI/CD integration with provided workflows
  • Setup Script: Interactive configuration for manual deployments

Manual Configuration

  • Set build variables in deployment platform
  • Configure Worker secrets via Wrangler CLI
  • Create required Cloudflare resources manually

Performance Considerations

  • Container Instance Selection: Choose appropriate tier based on app complexity
  • AI Gateway Caching: Reduce costs by caching similar prompts
  • R2 Storage Optimization: Automatic cleanup of old generated code
  • KV Cache Strategy: Session management with TTL configuration
  • Edge Location: Global distribution for minimal latency

Troubleshooting

Common Issues

  • AI Gateway Authentication: Verify token has Run permissions
  • Database Migration Failed: Resources may need time to provision
  • Container Instance Type: Upgrade for better performance
  • Missing Variables: Check both build vars and Worker secrets
  • DNS Propagation: Wait for wildcard CNAME record resolution

Development Roadmap

  • Enhanced template system with more frameworks
  • WebAssembly support for additional languages
  • Real-time collaboration on generated apps
  • Integrated testing and debugging tools
  • Version control integration
  • Enhanced AI model selection and tuning

Community and Support

  • 📖 Documentation: Comprehensive setup and troubleshooting guides
  • 💬 Discord: Cloudflare Developers Community
  • 🐛 GitHub Issues: Bug reports and feature requests
  • 🤝 Contributing: Fork, develop, and submit pull requests

Requirements

  • Cloudflare account with Workers, Pages, and D1 access
  • API keys from at least one AI provider
  • Node.js 18+ or Bun for local development
  • Basic understanding of TypeScript and React

License

MIT License - Free for commercial and personal use


VibeSDK demonstrates the power of Cloudflare’s developer platform, combining multiple services into a cohesive, production-ready solution for AI-powered application generation at the edge.

共通のカテゴリとタグで順位付けした、似たオープンソースプロジェクトです。

すべての AI プロジェクト →