A comprehensive AI assistant that can answer questions and generate images.
├── backend/
│ └── index.ts # Main Hono server with API routes
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main application component
│ │ ├── ChatInterface.tsx # Chat component for Q&A
│ │ └── ImageGenerator.tsx # Image generation component
│ ├── index.html # Main HTML template
│ ├── index.tsx # Frontend entry point
│ └── style.css # Custom styles
└── shared/
└── types.ts # Shared TypeScript types
GET /
- Serves the main applicationPOST /api/chat
- Handles chat/question requestsPOST /api/generate-image
- Handles image generation requestsOPENAI_API_KEY
- Required for OpenAI API access (automatically configured in Val Town)