• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
nulo

nulo

delirio

Public
Like
delirio
Home
Code
2
README.md
H
index.ts
Branches
1
Pull requests
Remixes
1
History
Environment variables
1
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/3/2025
Viewing readonly version of main branch: v17
View latest version
README.md

AI-Generated Website

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.

How It Works

  1. 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.

  2. 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
  3. Caching: Streaming responses for real-time content generation (no caching for dynamic experience).

  4. Error Handling: If content generation fails, a friendly error page is shown with navigation links.

Features

  • 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

Examples

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

Technical Details

  • Framework: Vanilla TypeScript with Web APIs
  • LLM: Google Gemini 2.5 Flash Lite via OpenRouter
  • Streaming: Real-time content generation with HTTP streaming
  • Hosting: Val Town HTTP trigger
  • 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 with real-time content streaming.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.