Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Open Builder

AI-Powered Web App Generator — Describe in natural language, instantly generate runnable projects

License React TypeScript Vite Tailwind CSS Tauri

Deployment · Quick Start · Features · Architecture · Contributing

English | 简体中文


Introduction

Open Builder is an AI-driven web app generator that runs entirely in the browser. Simply describe the application you want to build in natural language, and the AI will automatically create, modify, and delete files in an in-memory file system through a Tool Call loop, with live preview powered by Sandpack.

No backend server required — all computation happens in the browser. Your API Key is stored only in local browser storage and is never uploaded to any server.

It also supports building as a desktop app (macOS / Windows / Linux) and mobile app (iOS / Android) via Tauri, delivering a native application experience.

An API service compatible with a wide range of mainstream models—such as OpenAI, Anthropic, Google, Ollama, and others.


Demo

screenshot

Live Demo


Features

Core

  • Natural Language to Code — Describe your idea, AI plans and generates the complete project structure
  • Live Preview — Browser-based sandbox powered by Sandpack, instant rendering on code changes
  • Multi-Framework Support — 20+ templates including React, Vue, Svelte, Angular, SolidJS, Astro, etc.
  • Smart File Operations — AI uses patch_file for precise modifications, avoiding unnecessary full rewrites
  • Dependency Management — AI can modify package.json and trigger dependency reinstallation
  • Project Snapshots — Roll back code to any previous version with one click
  • Context Compression — Automatically compresses long conversation context to reduce token usage
  • Built-in Search — Supports enabling the model's built-in search service
  • CORS Resolution — App Client-side (Tauri) API reverse proxy forwarding effectively resolves CORS issues

User Experience

  • Multi-Session Management — Sidebar with create, switch, delete sessions; history persisted locally
  • Smart Session Naming — Auto-generates session titles based on conversation content
  • Slash Commands — Input box supports /compact, /review, and other shortcut commands
  • Image & File Input — Upload screenshots, design mockups, or files as context input
  • Streaming Output — Real-time display of AI thinking process and code generation progress
  • Extended Thinking — Supports Extended Thinking / Reasoning mode (DeepSeek-R1, Claude 4.6, etc.)
  • One-Click Download — Export generated project as a ZIP file
  • Flexible Layout — Drag to resize chat and editor panels
  • Multi-Language & Themes — Multiple UI languages and appearance themes
  • Mobile Responsive — Responsive layout with embedded preview on mobile devices

Web Search (Optional)


Quick Start

Prerequisites

  • Node.js 20+ or Bun
  • Any OpenAI-compatible API Key

Installation

# Clone the repository git clone https://github.com/Amery2010/open-builder.git cd open-builder # Install dependencies pnpm install # Start the development server pnpm dev

Open http://localhost:5173 in your browser, click the settings icon in the top-right corner to configure your API Key.

Desktop / Mobile App (Tauri)

Requires Rust and Tauri platform dependencies.

# Desktop development pnpm tauri:dev # Desktop build pnpm tauri:build # iOS development / build pnpm tauri:ios:dev pnpm tauri:ios:build # Android development / build pnpm tauri:android:dev pnpm tauri:android:build

Configuration

Click the settings button in the top-right corner and fill in:

OptionDescriptionExample
API KeyYour AI service API keysk-...
API URLOpenAI-compatible endpointhttps://api.openai.com/v1/chat/completions
Model NameModel ID to usegpt-5.3-codex, deepseek-chat
Tavily API Key(Optional) Web search featuretvly-...

All settings are stored in browser localStorage and never leave your device.


Architecture

Core Engine: WebAppGenerator

src/lib/generator.ts is the project's core, implementing the full AI Tool Call loop engine:

User Message → AI Planning → Tool Call → Execute → Return Result → AI Continue/End
                                  ↓
                          In-Memory File System
                                  ↓
                         Sandpack Live Preview

Built-in tools:

ToolDescription
init_projectInitialize Sandpack project template
manage_dependenciesModify package.json to manage dependencies
list_filesList all project files
read_filesBatch read file contents
write_fileCreate or overwrite a file
patch_filePrecise search-and-replace patch
delete_fileDelete a file
search_in_filesGlobal file content search
web_searchWeb search (supports Built-in, Tavily, Firecrawl)
web_readerRead web page content
image_searchImage search (supports Pixabay, Unsplash)
search_npm_packagesNPM package search
get_npm_package_detailGet detailed information about NPM package

Tech Stack

CategoryTechnology
FrameworkReact 19 + TypeScript 5
Build ToolVite 7
StylingTailwind CSS v4
UI Componentsshadcn/ui + Radix UI
Code SandboxSandpack (CodeSandbox)
State MgmtZustand 5
Local Storagelocalforage
IconsLucide React
Markdownreact-markdown + rehype-highlight
Desktop/MobileTauri 2

Supported Models

Open Builder is compatible with the API formats of mainstream large language models:

ProviderRecommended ModelsAPI URL
OpenAIgpt-5.3-codex, gpt-5.2https://api.openai.com/v1/responses
Anthropicclaude-4.6-sonnet, claude-opus-4https://api.anthropic.com/v1/messages
Googlegemini-2.0-flash-exphttps://generativelanguage.googleapis.com/v1beta/models
DeepSeekdeepseek-chat, deepseek-reasonerhttps://api.deepseek.com/v1/chat/completions
Qwenqwen-3.5, qwen3-coder-plushttps://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
Moonshotkimi-k2.5https://api.moonshot.cn/v1/chat/completions
Zhipu AIglm-5https://open.bigmodel.cn/api/paas/v4/chat/completions
Ollamagpt-oss:120bqwen3:8bhttp://localhost:11434/v1/chat/completions

For best results, use a model with strong Function Calling support.


Deployment

Build for Production

pnpm build # Output to dist/ directory

GitHub Pages

GitHub Actions is configured — push a version tag to auto-build and deploy:

git tag v1.0.0 git push origin v1.0.0

See .github/workflows/deploy.yml.

Vercel

Deploy with Vercel

Or manually: import the GitHub repo, select Vite as framework preset, build command pnpm run build, output directory dist.

Cloudflare Workers

Deploy to Cloudflare Worker

Or manually:

  1. Log in to Cloudflare Dashboard → Workers & Pages → Create → Worker → Connect to Git
  2. Select the open-builder repo with the following build config:
OptionValue
Build Commandpnpm run build
Output Dirdist
Node.js Ver20

Netlify

Import the repo, build command pnpm run build, output directory dist. No additional configuration needed.


Contributing

Issues and Pull Requests are welcome! Please read the Contributing Guide first.


License

GPLv3 License © 2026 Open Builder Contributors

关于 About

Open Builder is an open-source AI-powered app generator. Build web applications through natural language conversations.
aiai-agentsai-assistantapp-builderapp-generatorchatbotcode-generationopen-sourceweb-development

语言 Languages

TypeScript93.2%
Rust3.0%
CSS1.7%
Kotlin1.5%
HTML0.5%
Ruby0.2%
Objective-C++0.0%
C++0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
33
Total Commits
峰值: 20次/周
Less
More

核心贡献者 Contributors