sa_pro3
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.
prompt-generator.ts
https://pro3--7246202c328b11f09d2f569c3dd06744.web.val.run
A simple web application that generates creative prompts for various categories using OpenAI.
- 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
- Select a prompt category from the dropdown menu
- Click "Generate Prompt"
- The application will use OpenAI to create a unique, creative prompt based on your selection
- Use the generated prompt for your creative projects!
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.)
- 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
To use this application, you need to:
- Set up an OpenAI API key as an environment variable in Val Town
- Deploy the Val with HTTP trigger enabled
OPENAI_API_KEY: Your OpenAI API key for generating prompts
You can easily extend this application by:
- Adding more prompt categories in the
PROMPT_CATEGORIESobject - Adjusting the OpenAI parameters (temperature, max tokens, etc.)
- Customizing the UI styling