A powerful AI-powered prompt generation tool built with React, TypeScript, and Google's Gemini AI. Generate creative prompts for various content types including images, videos, JSON data, and more.
- Multi-format Prompt Generation: Create prompts for images, videos, clapperboard scenes, JSON data, and custom formats
- Provider-agnostic LLM selection: Choose between Google Gemini, OpenAI, Anthropic, Stability AI, and Perplexity directly in the app
- AI-Powered Suggestions: Intelligent prompt generation powered by your selected provider (Gemini by default)
- Interactive UI: Modern, responsive interface built with Radix UI components
- Real-time Generation: Fast and efficient prompt creation with loading states
- Customizable Settings: Configurable AI parameters and preferences
- Mobile Responsive: Optimized for all device sizes
- Frontend: React 18, TypeScript, Vite
- Styling: Tailwind CSS, Radix UI
- LLM Integration: Provider-agnostic router (Gemini, OpenAI, Anthropic, Stability AI, Perplexity)
- State Management: TanStack Query
- Routing: React Router DOM
- Icons: Lucide React
- Build Tool: Vite
- Package Manager: Bun
- Node.js (v18 or higher)
- Bun package manager
- An API key for at least one supported LLM provider (see links below)
For Windows users, we provide convenient batch files for easy setup:
-
Clone the repository
git clone https://github.com/NUVoize/wan22-brkn-prompt-helper.git cd wan22-brkn-prompt-helper
-
Run the Windows installer
install-windows.bat
This will:
- Check prerequisites (Node.js, npm/Bun)
- Install dependencies automatically
- Offer to start the development server
- Open the app in your browser
-
Start the app later (optional)
start-ui.bat
-
Clone the repository
git clone https://github.com/NUVoize/wan22-brkn-prompt-helper.git cd wan22-brkn-prompt-helper
-
Install dependencies
bun install # or npm install
-
Start the development server
bun run dev # or npm run dev
-
Open your browser Navigate to
http://localhost:8080
-
Select provider and add your API key In the app, click the gear icon (Settings) β choose your LLM provider β paste your API key β Save. Keys are stored securely in your browser's localStorage; no .env is required for normal use.
services/ # LLM provider services (root-level)
βββ llm/router.ts # Provider-agnostic LLM router (select & store keys)
βββ geminiService.ts # Gemini AI integration
src/
βββ components/ # Reusable UI components
β βββ ui/ # Shadcn/UI components
β βββ icons/ # Custom icon components
β βββ Header.tsx # App header
β βββ Footer.tsx # App footer
β βββ ...
βββ pages/ # Page components
β βββ Index.tsx # Main page
β βββ NotFound.tsx # 404 page
βββ lib/ # Utility functions
β βββ utils.ts # Common utilities
βββ hooks/ # Custom React hooks
βββ styles/ # Global styles
This app supports multiple providers via the in-app Settings dialog:
- Google Gemini
- API docs & key creation: https://ai.google.dev/gemini-api/docs/get-started
- Google Cloud console (key management): https://console.cloud.google.com/apis/credentials
- OpenAI
- API key creation: https://platform.openai.com/api-keys
- Docs: https://platform.openai.com/docs
- Anthropic (Claude)
- Sign up & get API key: https://console.anthropic.com/
- Docs: https://docs.anthropic.com/
- Stability AI (Stable Diffusion, etc.)
- Account & key creation: https://platform.stability.ai/account/keys
- Docs: https://platform.stability.ai/docs
- Perplexity AI (API is limited, currently via Pro)
- Sign up for Perplexity Labs: https://www.perplexity.ai/pro
- API docs (currently closed beta): https://docs.perplexity.ai/
- Open Settings (gear icon) β choose a Provider β paste your API key β Save.
- Keys are stored in localStorage under:
GEMINI_API_KEY
OPENAI_API_KEY
ANTHROPIC_API_KEY
STABILITY_API_KEY
PERPLEXITY_API_KEY
- The active provider is stored under
LLM_PROVIDER
.
Note: Non-Gemini providers may currently fall back to Gemini until their direct integrations are enabled (see services/llm/router.ts
).
- πΌοΈ Image Prompts: Generate descriptive prompts for image creation
- π¬ Video Prompts: Create prompts for video content generation
- ποΈ Clapperboard: Generate film/video scene descriptions
- π JSON Data: Create structured data prompts
- π‘ Custom Ideas: General-purpose creative prompts
# Development server
bun run dev
# Production build
bun run build
# Development build
bun run build:dev
# Preview production build
bun run preview
# Lint code
bun run lint
This project is configured for deployment on Vercel and other modern hosting platforms.
-
Build the project
bun run build
-
Deploy to your preferred platform
- Vercel: Connect your GitHub repository
- Netlify: Upload the
dist
folder - Other platforms: Use the generated
dist
folder
- Create an icon component in
src/components/icons/
- Add the prompt type to the main interface
- Update the Gemini service to handle the new type
- Test the integration
- Use Tailwind CSS classes
- Follow the existing design system
- Ensure responsive design
- Maintain accessibility standards
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-feature
- Commit your changes:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature/new-feature
- Submit a pull request
This software is provided for non-commercial use only. You may use, copy, and modify it solely for personal, educational, research, or internal evaluation purposes.
Prohibited uses include, without limitation:
- Any form of commercial use, monetization, or profit-generating activity
- Offering the software or its outputs as part of a paid product, service, SaaS, or API
- Charging for access, hosting paid instances, reselling, sublicensing, or bundling in commercial offerings
- Advertising-supported distribution or any use intended to derive revenue
Commercial licensing:
- For any commercial use, you must obtain prior written permission and a commercial license from BRKN.TRIB.
- Contact: [email protected] or via GitHub to request permission.
Compliance note: This policy is enforced by the projectβs license.
This project is licensed under the PolyForm Noncommercial License 1.0.0. Commercial use requires a separate license from BRKN.TRIB. See the LICENSE file for full terms.
If you encounter any issues or have questions:
- Check the Issues page
- Create a new issue with detailed information
- Contact the development team
- Google Gemini AI for the AI capabilities
- Radix UI for the component library
- Tailwind CSS for the styling framework
- Lucide for the beautiful icons
Made with β€οΈ by the BRKN team