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

wmichaelaustin

Storyteller

Public
Like
Storyteller
Home
Code
4
backend
2
frontend
4
shared
2
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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
/
backend
/
README.md
Code
/
backend
/
README.md
Search
7/13/2025
Viewing readonly version of main branch: v13
View latest version
README.md

Backend API

Hono-based API server for the story generator application.

Endpoints

  • GET / - Serves the main application HTML
  • POST /api/generate-story - Generates a new story with chapters and images
  • GET /frontend/* - Serves frontend static files
  • GET /shared/* - Serves shared utility files

Features

  • OpenAI integration for story generation
  • AI image generation for story and chapter visuals
  • Blob storage for caching generated content
  • Error handling and validation

Environment Variables

The app uses OpenAI through Val Town's standard library, which handles API keys automatically.

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.