🚀 Generate beautiful HTML websites with AI magic!
- ✨ Interactive CLI with beautiful prompts
- 🎨 Multiple template styles (normal, modern, portfolio, landing, blog, business)
- 🤖 AI-powered content generation via Cloudflare Worker
- 📱 Single HTML file output (fully self-contained)
- 🌐 Ready for instant deployment
-
Install dependencies:
npm install
-
Configure environment:
cp .env.example .env
-
Update your API URL in
.env:API_URL=https://your-worker.your-domain.workers.dev
node cli.jsThis will guide you through:
- Project name and description
- Template selection
- Section choices (header, hero, about, etc.)
- Tone selection (professional, creative, etc.)
- Custom requirements
- Output directory
node cli.js --no-logo- 🔹 Normal - Clean and simple
- ✨ Modern - Trendy and stylish
- 👤 Portfolio - Showcase your work
- 🚀 Landing - Convert visitors
- 📝 Blog - Share your thoughts
- 🏢 Business - Professional presence
The CLI generates:
index.html- Complete single-file website with embedded CSS and JSREADME.md- Deployment instructions and project info
The generated HTML file can be deployed to:
- Netlify - Drag & drop to netlify.com/drop
- GitHub Pages - Upload to GitHub repository
- Vercel - Use Vercel CLI
- Any static hosting - Just upload the HTML file!
The CLI communicates with your Cloudflare Worker that processes the AI prompts. Make sure your worker endpoint matches the prompt structure defined in the worker's index.ts.
MIT