demo
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v2View latest version
A modern AI chat application built on Val Town using:
- Hono (for backend routing, similar to Flask)
- HTMX (for dynamic interactions without writing JavaScript)
- TailwindCSS (for styling)
- Google's Gemini 2.0 model (for AI responses)
├── backend/
│ └── index.ts # Main entry point with Hono routes
├── frontend/
│ ├── index.html # Main HTML template with HTMX
│ └── style.css # Additional custom styles
└── shared/
└── types.ts # Shared types between frontend and backend
- Create a Google AI Studio API key at https://aistudio.google.com/
- Add your API key as an environment variable in Val Town named
GEMINI_API_KEY
- Real-time chat interface
- Message history persistence
- Markdown rendering for code blocks and formatting
- Responsive design
Access the application through the HTTP endpoint URL.