FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
Onesideddimple
OnesideddimpleStorytelling
Public
Like
Storytelling
Home
Code
4
backend
2
frontend
3
shared
1
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 miliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://Onesideddimple--97b706283f9c11f08a0a76b3cceeab13.web.val.run
README.md

Creative Writing Inspiration Generator

A web application that generates short stories and poetry based on user inputs to inspire writers and spark creativity.

Features

  • Story Generator: Creates short stories based on genre, character, setting, and theme
  • Poetry Generator: Generates poems in various styles (haiku, sonnet, free verse, limerick)
  • Customizable Inputs: Users can specify genres, moods, themes, and other creative elements
  • AI-Powered: Uses OpenAI to generate high-quality, creative content
  • Clean Interface: Simple, writer-friendly design focused on the content

Project Structure

├── backend/
│   └── index.ts           # Main Hono server with API routes
├── frontend/
│   ├── index.html         # Main HTML template
│   ├── index.tsx          # React frontend application
│   └── style.css          # Custom styling
├── shared/
│   └── types.ts           # Shared TypeScript types
└── README.md

API Endpoints

  • GET / - Serves the main application
  • POST /api/generate-story - Generates a short story
  • POST /api/generate-poem - Generates a poem

Usage

  1. Choose between story or poetry generation
  2. Fill in the creative prompts (genre, mood, theme, etc.)
  3. Click generate to receive AI-created content
  4. Use the generated content as inspiration for your own writing

Environment Variables

  • OPENAI_API_KEY - Required for AI content generation
HTTP
  • index.ts
    Onesideddimple--97…13.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.