Sites Generator Service

AI-powered static HTML generator with shadcn components

Test Generation
Click the button below to test site generation using the example blueprint
API Endpoint
Send blueprint JSON to generate sites

POST /api/generate

curl -X POST http://localhost:3000/api/generate \
  -H "Content-Type: application/json" \
  -d @types/example-blueprint.json
How It Works

1. Send Blueprint JSON

POST your blueprint with metadata, theme, structure, and content to /api/generate

2. Dynamic Component Mapping

System maps variant names (e.g., "hero-v1-centered") to React components

3. Theme Application

Applies selected shadcn theme (blue, violet, green, slate, orange)

4. Static HTML Export

Renders React to static HTML with inline Tailwind CSS

5. File Output

Saves to /output/site-[timestamp]/ directory