Skip to content

Repository files navigation

⚡ AI Website Builder

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

PreviewFeaturesHow It WorksInstallationRoadmap


💡 Why?

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.


📸 Preview

Screenshot 2026-07-06 094620


✨ Features

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.

🚀 How It Works

             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.


🛠 Technology Stack

Category Technology
Frontend React
Language TypeScript
Build Tool Vite
AI Google Gemini
Preview iframe
Export JSZip

📂 Project Structure

src/
│
├── components/
│   ├── ChatInterface
│   ├── PreviewPane
│   ├── Sidebar
│   ├── RunSettings
│   └── ...
│
├── services/
│   └── geminiService.ts
│
├── types.ts
├── App.tsx
└── main.tsx

📦 Installation

Clone the repository

git clone https://github.com/lab1207/AI-Website-Builder.git

Enter the project

cd AI-Website-Builder

Install dependencies

npm install

Create a .env file

GEMINI_API_KEY=YOUR_GEMINI_API_KEY

Get a free API key from Google AI Studio

https://aistudio.google.com/app/apikey

Run locally

npm run dev

Build for production

npm run build

Preview production build

npm run preview

🔑 Environment Variables

Variable Required Description
GEMINI_API_KEY Yes Google Gemini API key used to generate websites.

🔒 Privacy

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.


🗺 Roadmap

  • 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

🤝 Contributing

Contributions, issues, and feature requests are welcome.

Feel free to open an issue or submit a pull request.

About

Build complete HTML, CSS, and JavaScript websites with AI. Live preview, project editing, and one-click ZIP export.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages