An open API service indexing awesome lists of open source software.

https://github.com/yuzaiakira/llm-website-generator

Generate modern, SEO-friendly websites using LLMs (Large Language Models). This tool turns simple prompts into clean, responsive, and customizable HTML templatesβ€”perfect for developers, designers, and AI enthusiasts
https://github.com/yuzaiakira/llm-website-generator

ai-web-development gemini generative-ai llm llm-tools openrouter prompt-to-website web-template-generator website-generator

Last synced: 12 months ago
JSON representation

Generate modern, SEO-friendly websites using LLMs (Large Language Models). This tool turns simple prompts into clean, responsive, and customizable HTML templatesβ€”perfect for developers, designers, and AI enthusiasts

Awesome Lists containing this project

README

          

# πŸ€– AI Website Generator - Create Professional Websites with AI

**Generate complete, self-contained HTML websites instantly using artificial intelligence.** This modern web application transforms natural language descriptions into professional, responsive websites with a beautiful glassmorphic UI. Perfect for developers, designers, and anyone who wants to create websites quickly without coding.

**πŸ”— Live Demo:** [Try the AI Website Generator Now](https://yuzaiakira.github.io/LLM-Website-Generator/)

**⭐ Key Benefits:**
- βœ… **Instant Website Creation** - Describe your website in plain English
- βœ… **Professional Code Output** - Clean, responsive HTML with modern CSS
- βœ… **Live Preview** - See your website in real-time as you edit
- βœ… **No Setup Required** - Works directly in your browser
- βœ… **Multiple AI Providers** - Google AI and OpenRouter support

## ✨ Features & Capabilities

### πŸš€ **AI-Powered Website Generation**
- **Natural Language Processing**: Describe your website in plain English
- **Instant Code Generation**: Get complete HTML websites in seconds
- **Multiple AI Models**: Support for Google Gemini and OpenRouter models
- **Smart Prompt Engineering**: Optimized prompts for better results

### 🎨 **Professional Design Tools**
- **Glassmorphic UI**: Modern, elegant interface with backdrop blur effects
- **Live Code Editor**: Edit generated code with real-time preview
- **Responsive Design**: Mobile-friendly websites that work on all devices
- **Modern CSS Framework**: Built with Tailwind CSS for professional styling

### πŸ’» **Developer-Friendly Features**
- **Code Export**: Copy generated HTML code instantly
- **Syntax Highlighting**: Professional code display
- **Live Preview**: See changes in real-time
- **No Build Process**: Pure HTML, CSS, and JavaScript

## πŸš€ Quick Start - Get Started in 30 Seconds

### **Option 1: Use Online (Recommended)**
1. **Visit** [AI Website Generator](https://yuzaiakira.github.io/LLM-Website-Generator/)
2. **Describe** your website in the chat interface
3. **Generate** your website instantly

### **Option 2: Run Locally**
1. **Clone or download** this repository
2. **Open `index.html`** in your web browser
3. **Start generating websites** by describing what you want

**🎯 That's it!** No installation, no setup, no API keys required for basic usage.

### **πŸ”‘ For Advanced Features**
- **Google AI**: Get your API key from [Google AI Studio](https://makersuite.google.com/app/apikey)
- **OpenRouter**: Get your API key from [OpenRouter](https://openrouter.ai/keys)

## πŸ“ Project Structure

```
project-root/
β”‚
β”œβ”€β”€ index.html # Main application entry point
β”œβ”€β”€ assets/
β”‚ β”œβ”€β”€ css/
β”‚ β”‚ └── style.css # Custom styles and glassmorphism effects
β”‚ └── js/
β”‚ β”œβ”€β”€ app.js # Main application orchestrator
β”‚ β”œβ”€β”€ agent.js # LLM agent logic and prompt engineering
β”‚ β”œβ”€β”€ editor.js # Code editor with live preview functionality
β”‚ β”œβ”€β”€ google-api.js # Google AI API integration
β”‚ β”œβ”€β”€ openrouter.js # OpenRouter API integration
β”‚ β”œβ”€β”€ settings.js # Settings management and storage
β”‚ β”œβ”€β”€ theme.js # UI theme and modal management
β”‚ └── ui-manager.js # User interface and interaction handling
β”œβ”€β”€ templates/
β”‚ └── generated.html # Template for generated websites
└── README.md # This file
```

## πŸ› οΈ Technologies & Stack

### **Frontend Technologies**
- **HTML5**: Modern semantic markup with SEO optimization
- **CSS3**: Advanced glassmorphism effects and responsive design
- **JavaScript (ES6+)**: Vanilla JS with modern async/await patterns
- **Tailwind CSS**: Utility-first CSS framework for rapid development

### **AI & API Integration**
- **Google AI API**: Gemini models for website generation
- **OpenRouter API**: Access to multiple LLM providers
- **RESTful APIs**: Modern API integration patterns

### **Performance & SEO**
- **Progressive Web App**: Fast loading and offline capabilities
- **SEO Optimized**: Meta tags, structured data, and semantic HTML
- **Mobile-First**: Responsive design for all devices

## 🎯 How It Works - AI Website Generation Process

### **Step-by-Step Process**
1. **πŸ“ User Input**: Describe your website in natural language (e.g., "A portfolio site for a photographer")
2. **πŸ€– AI Processing**: Advanced LLM models analyze your description
3. **πŸ’» Code Generation**: AI generates complete, professional HTML code
4. **πŸ‘€ Live Preview**: View your website instantly in the Demo tab
5. **✏️ Edit & Refine**: Modify the code in real-time with live preview
6. **πŸ“‹ Export**: Copy the generated code for use in your projects

### **AI Models Supported**
- **Google Gemini**: Advanced AI for creative website generation
- **OpenRouter Models**: Access to GPT-4, Claude, and other leading models
- **Custom Prompts**: Optimized for web development best practices

## πŸ”§ Customization & Extension

### **🎨 Styling & Design**
- **Glassmorphism Effects**: Modify in `index.html` CSS section
- **Custom Styles**: Add your styles in `assets/css/style.css`
- **Color Schemes**: Adjust Tailwind classes for different themes
- **Responsive Design**: Customize breakpoints and layouts

### **βš™οΈ Functionality & Features**
- **API Integration**: Add more LLM providers (currently supports Google AI and OpenRouter)
- **Prompt Engineering**: Enhance prompts in `agent.js` for better code generation
- **Code Editor**: Extend the live editor in `editor.js` with syntax highlighting
- **Export Formats**: Implement additional formats (CSS, JS, or complete projects)
- **Template System**: Create reusable website templates in `templates/` directory
- **Settings Management**: Add more configuration options in `settings.js`
- **UI Components**: Extend the glassmorphic design system in `theme.js`

### **πŸš€ Performance & SEO**
- **PWA Features**: Add service workers for offline functionality
- **SEO Optimization**: Enhance meta tags and structured data
- **Analytics**: Integrate Google Analytics or other tracking tools

## πŸ“± Browser Support & Compatibility

### **🌐 Supported Browsers**
- **Chrome 80+**: Full support with all features
- **Firefox 75+**: Complete functionality
- **Safari 13+**: Full compatibility
- **Edge 80+**: All features supported

### **πŸ“± Mobile Devices**
- **iOS Safari**: iPhone and iPad support
- **Android Chrome**: Full mobile experience
- **Responsive Design**: Optimized for all screen sizes

### **πŸ’» Desktop Applications**
- **Progressive Web App**: Install as desktop app
- **Offline Functionality**: Works without internet connection
- **Native Performance**: Fast loading and smooth interactions

## 🀝 Contributing & Community

### **πŸš€ How to Contribute**
1. **Fork** the repository
2. **Create** a feature branch (`git checkout -b feature/amazing-feature`)
3. **Make** your changes and improvements
4. **Test** thoroughly across different browsers
5. **Submit** a pull request with detailed description

### **🎯 Areas for Contribution**
- **AI Integration**: Add support for new LLM providers
- **UI/UX Improvements**: Enhance the glassmorphic design
- **Code Editor**: Implement syntax highlighting and autocompletion
- **Performance**: Optimize loading times and responsiveness
- **Documentation**: Improve guides and examples

### **πŸ“ Development Guidelines**
- Follow existing code style and patterns
- Add comments for complex logic
- Test on multiple browsers and devices
- Update documentation for new features

## πŸ“‹ Roadmap & Future Features

### **πŸ”§ Upcoming Enhancements**
- **πŸ“ CodeMirror Integration**: Advanced code editor with autocompletion and syntax highlighting
- **πŸ“± Progressive Web App**: Full PWA with offline functionality and app-like experience
- **πŸ” Enhanced SEO**: Advanced search engine optimization and social media integration
- **🎨 Theme System**: Multiple color themes and customization options
- **πŸ“Š Analytics Dashboard**: Usage statistics and performance metrics

### **πŸš€ Planned Features**
- **🌐 Multi-language Support**: Internationalization for global users
- **πŸ’Ύ Template Library**: Pre-built website templates and components
- **πŸ”— API Documentation**: Comprehensive API reference and examples
- **πŸ“± Mobile App**: Native mobile applications for iOS and Android
- **πŸ€– AI Assistant**: Chatbot for website generation guidance

### **πŸ“ˆ Performance Goals**
- **⚑ Faster Loading**: Optimize for sub-second load times
- **πŸ“± Better Mobile**: Enhanced mobile user experience
- **πŸ”’ Security**: Advanced security features and data protection
- **πŸ“Š Analytics**: Detailed usage analytics and insights

## ❓ Frequently Asked Questions

### **πŸ€– AI & Generation**
**Q: How does the AI website generation work?**
A: Simply describe your website in natural language, and our AI models generate complete HTML code with CSS and JavaScript.

**Q: Which AI models are supported?**
A: We support Google Gemini and OpenRouter models (GPT-4, Claude, and others).

**Q: Is the generated code production-ready?**
A: Yes! The code is clean, responsive, and follows modern web development best practices.

### **πŸ’» Technical Questions**
**Q: Do I need to install anything?**
A: No! The application runs entirely in your browser - just open the HTML file.

**Q: Can I edit the generated code?**
A: Absolutely! Use the live code editor to modify and preview changes in real-time.

**Q: Is my data secure?**
A: Yes, all processing happens locally or through secure API connections.

### **🎨 Design & Customization**
**Q: Can I customize the design?**
A: Yes! The generated websites use modern CSS and are fully customizable.

**Q: Are the websites mobile-friendly?**
A: All generated websites are responsive and work perfectly on mobile devices.

**Q: Can I use my own CSS framework?**
A: The generated code can be easily modified to use any CSS framework you prefer.

## πŸ”— Links & Resources

- **🌐 Live Demo**: [AI Website Generator](https://yuzaiakira.github.io/LLM-Website-Generator/)
- **πŸ“š Documentation**: [GitHub Repository](https://github.com/yuzaiakira/LLM-Website-Generator)
- **πŸ› Report Issues**: [GitHub Issues](https://github.com/yuzaiakira/LLM-Website-Generator/issues)
- **πŸ’¬ Community**: [GitHub Discussions](https://github.com/yuzaiakira/LLM-Website-Generator/discussions)
- **πŸ“§ Contact**: [GitHub Profile](https://github.com/yuzaiakira)

## πŸ“„ License

This project is open source and available under the [MIT License](LICENSE).

---

**⭐ If you find this project helpful, please give it a star on GitHub!**