A prompt generator for improv practice: a random suggestion (word, object, activity, occupation, location, or adjective) plus an optional vague starting line to open a scene. Optionally, the browser reads each new prompt aloud.
Live site: https://improv-prompt-generator.netlify.app
- Random prompt from six categories: adjectives, objects, activities, occupations, locations, words
- Pick which categories to include
- Choose what to serve: word only, word + starting line, or starting line only
- Optional auto-refresh: generate a new prompt every 30s or 1 min, with a countdown
- Optional text-to-speech so the browser reads new prompts aloud
- Neobrutalist UI (neobrutalism.dev components built on Base UI)
pnpm install
pnpm devThe dev server runs at http://localhost:3000.
pnpm build
pnpm preview| Script | What it does |
|---|---|
pnpm dev |
Run the dev server on port 3000 |
pnpm build |
Production build to dist/ |
pnpm lint |
Run eslint |
pnpm format |
Prettier + eslint autofix |
pnpm check |
Verify prettier formatting |
src/
├── components/ # Feature components + ui/ (neobrutalism primitives)
│ ├── ui/ # card, badge, toggle, switch, checkbox, progress, ...
│ ├── category-picker.tsx
│ ├── settings-panel.tsx
│ ├── auto-refresh-timer.tsx
│ └── suggestion-display.tsx
├── hooks/ # useAutoRefresh (timer), useSpeechForSuggestion (TTS)
├── lib/
│ ├── generator.ts # pure suggestion generator
│ ├── speech.ts # Web Speech API wrappers
│ ├── types.ts # categories, settings shape
│ └── utils.ts # cn(), pickRandom()
├── data/ # JSON datasets + index mapping categories → data
└── routes/ # TanStack Router file-based routes
All prompts live in src/data/*.json — one 1000-entry array per file. To add your own prompts, just edit the JSON files; the generator picks up changes automatically.
This project uses TanStack Router with file-based routing. Add a file in src/routes and the route tree is generated automatically by pnpm generate-routes.
Eslint is configured using tanstack/eslint-config:
pnpm lint
pnpm format
pnpm checkThe app is a static SPA deployed on Netlify at improv-prompt-generator.netlify.app. Build and publish settings live in netlify.toml (pnpm build → dist/, with an SPA fallback redirect).
Redeploy from this repo with:
netlify deploy --prod