delirio
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: v4View latest version
This is a dynamic website that automatically generates unique HTML content for any path using OpenAI's GPT-4o-mini model.
-
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 OpenAI's
gpt-4o-minimodel (free tier) 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: Responses are cached for 5 minutes to improve performance and reduce API calls.
-
Error Handling: If content generation fails, a friendly error page is shown with navigation links.
- Infinite Content: Every path generates unique, contextually relevant content
- 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: OpenAI GPT-4o-mini
- 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.