Generate complete HTML, CSS, and JavaScript websites from natural language with live preview and one-click export.
Fast • Live Preview • Prompt to Website • Open Source
Preview • Features • How It Works • Installation • Roadmap
Building modern websites from scratch takes time.
AI Website Builder lets you describe your idea in plain English and instantly generates a complete HTML, CSS, and JavaScript project.
Refine it through conversation, preview changes in real time, and export the finished website as a ZIP project.
| Feature | Description |
|---|---|
| 🤖 AI Website Generation | Generate complete websites from natural language prompts. |
| ⚡ Live Preview | Preview generated websites instantly inside the application. |
| 💬 Conversational Editing | Continue improving your project through chat. |
| 📦 ZIP Export | Download the generated website as a complete project. |
| 📁 Import Existing Projects | Upload an existing project and continue editing with AI. |
| 🖥 Responsive Preview | Switch between desktop and mobile preview modes. |
| 🖼 Image Input | Generate websites using reference images. |
| ⚙️ Model Settings | Configure Gemini model, temperature, Top-P, Top-K and output tokens. |
| ✏️ Annotation Mode | Modify specific parts of the generated website visually. |
| 🔄 Streaming Responses | Watch websites generate in real time. |
Describe Your Website
│
▼
Google Gemini AI
│
▼
Generate HTML • CSS • JavaScript
│
▼
Live Preview
│
┌───────────┴───────────┐
▼ ▼
Continue Editing Export ZIP
The generated website can be refined through additional prompts, edited visually, or exported as a complete project.
| Category | Technology |
|---|---|
| Frontend | React |
| Language | TypeScript |
| Build Tool | Vite |
| AI | Google Gemini |
| Preview | iframe |
| Export | JSZip |
src/
│
├── components/
│ ├── ChatInterface
│ ├── PreviewPane
│ ├── Sidebar
│ ├── RunSettings
│ └── ...
│
├── services/
│ └── geminiService.ts
│
├── types.ts
├── App.tsx
└── main.tsx
Clone the repository
git clone https://github.com/lab1207/AI-Website-Builder.gitEnter the project
cd AI-Website-BuilderInstall dependencies
npm installCreate a .env file
GEMINI_API_KEY=YOUR_GEMINI_API_KEYGet a free API key from Google AI Studio
https://aistudio.google.com/app/apikey
Run locally
npm run devBuild for production
npm run buildPreview production build
npm run preview| Variable | Required | Description |
|---|---|---|
GEMINI_API_KEY |
Yes | Google Gemini API key used to generate websites. |
The application runs entirely in your browser.
Your API key is stored locally during development and is never committed to this repository.
No backend server is required.
- Multi-page website generation
- React project generation
- Tailwind CSS support
- Vue project generation
- Next.js export
- Project version history
- GitHub repository export
- Deploy directly to Vercel
- Figma import
- AI code explanations
Contributions, issues, and feature requests are welcome.
Feel free to open an issue or submit a pull request.
