• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
pro3

pro3

sa_pro3

Public
Like
sa_pro3
Home
Code
2
README.md
H
prompt-generator.ts
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
/
README.md
Code
/
README.md
Search
5/16/2025
README.md

Creative Prompt Generator

A simple web application that generates creative prompts for various categories using OpenAI.

Features

  • Generate creative prompts for different categories:
    • Writing
    • Art
    • Photography
    • Coding
    • Business
    • Music
    • Cooking
    • Small-to-Big Progression
  • Clean, responsive UI using TailwindCSS
  • Powered by OpenAI's GPT models

How It Works

  1. Select a prompt category from the dropdown menu
  2. Click "Generate Prompt"
  3. The application will use OpenAI to create a unique, creative prompt based on your selection
  4. Use the generated prompt for your creative projects!

Special Categories

Small-to-Big Progression

This category generates prompts that follow a progression from small to big concepts. These prompts:

  • Start with something tiny, simple, or microscopic
  • Gradually expand to something larger, more complex, or more expansive
  • Include 3-4 clear steps in the progression
  • Can be applied to any creative domain (writing, art, projects, etc.)

Technical Details

  • Built as an HTTP-triggered Val in Val Town
  • Uses OpenAI's API to generate prompts
  • Frontend styled with TailwindCSS
  • Handles both GET and POST requests in a single endpoint
  • Includes error handling for API failures

Setup

To use this application, you need to:

  1. Set up an OpenAI API key as an environment variable in Val Town
  2. Deploy the Val with HTTP trigger enabled

Environment Variables

  • OPENAI_API_KEY: Your OpenAI API key for generating prompts

Customization

You can easily extend this application by:

  • Adding more prompt categories in the PROMPT_CATEGORIES object
  • Adjusting the OpenAI parameters (temperature, max tokens, etc.)
  • Customizing the UI styling
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.