Note
This project is an attempt to recreate the software architecture of other AI web builders like V0.dev and Bolt.new
![]() |
![]() |
Code Interface | Live Preview |
WebBuilder.AI is an AI-powered web application builder that allows users to create full-stack web applications using natural language prompts. Code is generated on the backend server and executed in-browser using WebContainer.
- Template Engine: Processes and returns boilerplate templates from
/template
- AI Generator: Handles prompt analysis and code generation through Gemini AI from
/chat
-
POST /template
- Input: User prompt
- Output: Template files
-
POST /chat
- Input: User prompt + Template files
- Output: Generated code (step-based structure)
- FileExplorer: Renders a tree-view of the project directory.
- CodeEditor: Monaco-based file editor for editing project files.
- Terminal: Displays logs and executed shell commands.
- PreviewFrame: Embeds the live app using WebContainer’s server.
- React hooks for component state
- Context API for global terminal and container state
- WebContainer API for file system operations, runtime execution, and dependency installation
Category | Technologies |
---|---|
Frontend |
WebContainer API 1.6.1 Next.js 15.3.2 React 19 TailwindCSS v4 TypeScript |
Backend |
Node.js Express Google Gemini AI TypeScript |
- User enters a prompt describing the desired application.
- The prompt is sent to the backend via the
/template
endpoint. - The backend determines the type of application (For now, only React and Node) and returns relevant template files.
- The frontend:
- Receives the templates
- Initializes the WebContainer
- Installs dependencies
- Sends a request to the
/chat
endpoint with the prompt and templates
- The backend processes the prompt and template with Gemini AI and returns generated code.
- The frontend:
- Parses the response
- Splits it into steps
- Updates the project file system
- Executes corresponding shell commands in the terminal
- The result is displayed in the live preview section.
- Natural language-based web app generation
- WebContainer based in-browser runtime
- Editable file system with real-time updates
- Live application preview
- Live terminal logs from the WebContainer