This is a dynamic website that automatically generates unique HTML content for any path using Google's Gemini 2.5 Flash Lite model via OpenRouter.
-
Dynamic Content Generation: When you visit any path (e.g.,
/pizza
,/space/exploration
,/cooking/recipes
), the website uses the path as context to generate relevant HTML content. -
LLM Integration: Uses Google's
gemini-2.5-flash-lite
model via OpenRouter to generate complete HTML pages with:- Relevant content based on the path
- Proper HTML structure with head, title, and body
- Inline CSS styling
- Navigation links to related pages
- Interactive elements where appropriate
-
Caching: Streaming responses for real-time content generation (no caching for dynamic experience).
-
Error Handling: If content generation fails, a friendly error page is shown with navigation links.
- Infinite Content: Every path generates unique, contextually relevant content
- Real-time Streaming: Content appears incrementally as it's generated for faster perceived loading
- Navigation: Each page includes links to related pages for continued exploration
- Responsive Design: Generated pages include mobile-friendly styling
- Interactive Elements: Pages may include buttons, forms, or other interactive features
- Family-Friendly: All content is appropriate and safe
Try visiting these paths:
/
- Homepage/pizza
- Pizza-themed content/space/exploration
- Space exploration content/cooking/recipes
- Cooking and recipe content/games/adventure
- Adventure game content/art/painting
- Art and painting content
- Framework: Vanilla TypeScript with Web APIs
- LLM: Google Gemini 2.5 Flash Lite via OpenRouter
- Hosting: Val Town HTTP trigger
- Caching: 5-minute response cache
- Error Recovery: Graceful fallback to error page
The website demonstrates how AI can be used to create dynamic, contextual web experiences that adapt to user navigation patterns.