FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
wmichaelaustin
wmichaelaustinStoryteller
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
/
Code
/
Search
index.ts
https://wmichaelaustin--76565174602a11f0a7aa0224a6c84d84.web.val.run
README.md

AI Story Generator

A web application that generates engaging stories with AI-created images and text-to-speech narration.

Features

  • Story Generation: Enter a subject and get a complete 4-chapter story with a happy ending
  • AI Images: Each story and chapter gets a unique AI-generated image
  • Text-to-Speech: Listen to stories with male voice narration
  • Interactive Interface: Clean, user-friendly design with chapter navigation
  • Start Over: Easy reset to create new stories

Project Structure

├── backend/
│   ├── index.ts           # Main Hono server with API routes
│   └── README.md          # Backend documentation
├── frontend/
│   ├── index.html         # Main HTML template
│   ├── index.tsx          # React frontend application
│   ├── components/        # React components
│   │   ├── App.tsx        # Main app component
│   │   ├── StoryForm.tsx  # Subject input form
│   │   ├── StoryDisplay.tsx # Story and chapter display
│   │   └── ChapterCard.tsx # Individual chapter component
│   └── README.md          # Frontend documentation
├── shared/
│   ├── types.ts           # Shared TypeScript types
│   └── README.md          # Shared utilities documentation
└── README.md              # This file

Technology Stack

  • Backend: Hono (TypeScript API framework)
  • Frontend: React with TypeScript
  • Styling: TailwindCSS
  • AI Services: OpenAI for story generation, AI image generation
  • Text-to-Speech: Web Speech API with male voice preference
  • Storage: Val Town Blob storage for caching

Getting Started

  1. The app runs as an HTTP val
  2. Visit the main URL to access the story generator
  3. Enter a subject and click "Generate Story"
  4. Navigate through chapters and use the listen feature
  5. Click "Create New Story" to start over
HTTP
  • index.ts
    wmichaelaustin--76…84.web.val.run
Code
backendfrontendsharedREADME.md
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.