An AI-powered web development tool that generates HTML, CSS, and JavaScript code using natural language prompts. Built with React, TypeScript, and the Gemini API.
- 🤖 AI-powered code generation with Gemini 2.5 Pro
- 💬 Interactive chat interface for iterative development
- 📱 Mobile-responsive design with 4-tab navigation
- 👥 Team API key management (personal keys via api.json)
- 📊 Training dataset collection for custom c2 model
- 📁 Code history and project management
- 🎨 Live preview with syntax highlighting
- 📦 ZIP download for generated projects
-
Setup the environment:
node setup-local.js npm install
-
Configure your API key:
- Get your Gemini API key from https://aistudio.google.com/app/apikey
- Edit
api.jsonand replaceYOUR_GEMINI_API_KEY_HEREwith your key
-
Start the development server:
npm run dev
-
Open in your browser:
- Go to http://localhost:5000
- Use the Config panel to verify your API key is working
- Each team member uses their personal Gemini API key
- Keys are stored in individual
api.jsonfiles (gitignored) - No sharing of API keys between team members
- Fallback support for environment variables
api.jsonfile (highest priority)- Environment variables (
GEMINI_API_KEYorGOOGLE_API_KEY) - Fallback templates (when no key available)
- Enter a prompt (max 100 characters) in the main input
- Click "Generate Code" or use the quick examples
- View the generated HTML, CSS, and JavaScript
- Use the live preview to see the result
- Download as ZIP or continue chatting to iterate
- After generating code, switch to chat mode for improvements
- Ask for modifications, bug fixes, or new features
- Maintains conversation context for better results
- All generated code is automatically saved for training
- Organized in
generated-code-dataset/with timestamped folders - Export training data via the Dataset panel
- Includes prompts, code, and metadata
├── client/ # React frontend
├── server/ # Express backend
├── shared/ # Shared TypeScript schemas
├── generated-code-dataset/ # Training data collection
├── api.json # Personal API configuration (create from api.example.json)
├── api.example.json # Template for API configuration
└── setup-local.js # Local development setup script
- Run
node setup-local.jsto create necessary files - Manually copy:
cp api.example.json api.json - Verify file permissions and JSON format
- Check if
api.jsonexists with validapiKey - Verify key starts with "AIza..."
- Use the Config panel to update your key
See API_SETUP.md for detailed setup instructions.
- Frontend: React 18, TypeScript, Tailwind CSS, shadcn/ui
- Backend: Node.js, Express, TypeScript
- AI: Google Gemini 2.5 Pro API
- Storage: In-memory with file-based dataset collection
- Build: Vite for development and production
MIT License