A modern, AI-powered website builder that creates beautiful, functional websites using various tech stacks. Built entirely using prompt engineering , developed using React, Tailwind CSS, Node.js, and powered by Googleβs Gemini.
- π¨ Clean, glassmorphic interface with smooth animations
- π± Fully responsive design (desktop, tablet, mobile)
- π Beautiful gradient accents and modern typography
- π Real-time search and project history
- π Live generation status with detailed progress tracking
- βοΈ React - Modern React with hooks and functional components
- π’ Vue.js - Progressive Vue.js framework with Composition API
- π Svelte - Compile-time optimized Svelte components
- π΄ Angular - Full-featured Angular framework
- π‘ Vanilla JS - Pure JavaScript without frameworks
- π΅ Next.js - React with Server-Side Rendering
- π£ Nuxt.js - Vue with Server-Side Rendering
- π€ Powered by Google Gemini 2.5 Flash API
- π Auto-detection of tech stack from prompts
- β‘ Fast generation with real-time status updates
- π― Context-aware website creation
- π Easy modification and regeneration
- βοΈ Upload hand-drawn sketches or wireframes
- π¦ Ollama qwen2.5vl:7b for intelligent content detection
- π€ Gemini AI for code generation
- π¨ Detects text, buttons, inputs, colors, and layout
- π» Generates working HTML/CSS/JS code
- π± Fully responsive output
- π Local project history with localStorage
- π Time-based project grouping (Today, Yesterday, 7 Days Ago)
- πΎ Auto-save generated projects
- π₯ One-click HTML download
- π Search through project history
- π Full-screen preview modal
- π± Responsive preview with iframe
- π» Source code viewer
- π Generation status sidebar
- β¬οΈ Direct download functionality
AstraForge supports both Telegram and WhatsApp bots for generating projects directly from your messaging apps!
- See TELEGRAM_SETUP.md for detailed setup instructions
- Generate websites, apps, and resumes from Telegram
- Interactive commands with inline keyboards
- See WHATSAPP_SETUP.md for detailed setup instructions
- Same features as Telegram bot
- QR code authentication
- Works with WhatsApp Web
- Node.js (v16 or higher)
- npm or yarn
- Ollama (for SketchBuilder feature) - Download
-
Clone the repository
git clone <repository-url> cd ai-website-builder
-
Install dependencies
npm run install-all
-
Setup Ollama for SketchBuilder (Optional but recommended)
# Install Ollama from https://ollama.ai/download # Then pull the vision model (note: no hyphen between 2.5 and vl): ollama pull qwen2.5vl:7b
See QUICKSTART_OLLAMA.md for detailed setup.
-
Start the development servers
npm run dev
-
Open your browser
- Frontend: http://localhost:3000
- Backend: http://localhost:3001
ai-website-builder/
βββ client/ # React frontend
β βββ public/
β βββ src/
β β βββ components/ # React components
β β βββ services/ # API services
β β βββ App.js
β βββ package.json
βββ server/ # Node.js backend
β βββ routes/ # API routes
β βββ services/ # Gemini AI service
β βββ index.js
βββ package.json # Root package.json
npm run dev- Start both frontend and backendnpm run install-all- Install all dependenciesnpm run build- Build frontend for productionnpm start- Start production server
npm start- Start React development servernpm run build- Build for productionnpm test- Run tests
npm start- Start production servernpm run dev- Start with nodemon (development)
Edit client/tailwind.config.js:
colors: {
primary: {
500: '#6366f1', // Change this
},
secondary: {
500: '#8b5cf6', // Change this
},
}Edit server/services/geminiService.js:
const techStackConfigs = {
yourNewStack: {
name: 'Your New Stack',
description: 'Description here',
template: `<!DOCTYPE html>...`,
instructions: 'Instructions here'
}
};All components are in client/src/components/:
Sidebar.js- Left navigation sidebarMainContent.js- Main content areaPreviewModal.js- Full-screen preview modal
Create server/.env:
PORT=3001
GEMINI_API_KEY=your_gemini_api_key_here
NODE_ENV=development
CORS_ORIGIN=http://localhost:3000
# Ollama Configuration (for SketchBuilder)
OLLAMA_BASE_URL=http://localhost:11434See .env.example for a complete template.
The Gemini API key is already configured in server/config.js:
geminiApiKey: 'AIzaSyCcxskdSphcirKJaRzLdXl32WBJC0qF3X4'- Enter your prompt - Describe what you want to build
- Choose tech stack - Select from dropdown or let AI auto-detect
- Click Generate - AI will create your website
- Preview & Download - View in full-screen modal and download HTML
- "Create a modern portfolio website for a photographer with a dark theme and image gallery"
- "Build a landing page for a SaaS product with pricing plans and testimonials"
- "Make a restaurant website with menu, reservations, and contact form"
- "Design a blog website with article listings and search functionality"
- Draw a sketch - Hand-draw or digitally create a wireframe
- Upload the image - Click "Upload Sketch" in SketchBuilder
- Wait for analysis - Ollama analyzes your sketch (5-15 seconds)
- Review detected elements - See text, buttons, inputs, colors
- Generate code - Gemini creates working HTML/CSS/JS
- Preview & Download - Test and download your application
See QUICKSTART_OLLAMA.md for detailed SketchBuilder guide.
The AI automatically detects the tech stack from your prompt:
- "react calculator" β React
- "vue dashboard" β Vue.js
- "svelte todo app" β Svelte
- "angular e-commerce" β Angular
- Projects are automatically saved to localStorage
- Grouped by time: Today, Yesterday, 7 Days Ago, Older
- Click any project to reload it
- Search through project titles
Real-time status updates during generation:
- Analyzing requirements
- Generating HTML structure
- Adding CSS styling
- Implementing JavaScript
- Optimizing for performance
"API configuration error"
- Check that the Gemini API key is correct
- Verify the server is running on port 3001
"Request timed out"
- Try with a shorter prompt
- Check your internet connection
"Content blocked by safety filters"
- Modify your prompt to be more specific
- Avoid potentially harmful content
Frontend not loading
- Ensure the React dev server is running on port 3000
- Check for any console errors
Enable debug logging by setting NODE_ENV=development in your environment.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - see LICENSE file for details.
- Google Gemini - AI generation capabilities
- Ollama - Local LLM inference for vision
- qwen2.5vl - Vision language model
- React - Frontend framework
- Tailwind CSS - Styling framework
- Express.js - Backend framework
- Lucide React - Beautiful icons
If you encounter any issues or have questions:
- Check the troubleshooting section
- Look at the console for error messages
- Create an issue on GitHub
- Check the API health endpoint: http://localhost:3001/api/health
Built with β€οΈ using modern web technologies and AI
