A modern, interactive prompt generator built with React and Vite that supports multiple LLM providers including OpenAI, Anthropic, Google Gemini, and custom OpenAI-compatible endpoints.
- 🤖 Support for multiple LLM providers
- OpenAI
- Anthropic
- Google Gemini
- Custom OpenAI-compatible endpoints
- 📝 Markdown preview support with toggle for raw text
- 💾 Local storage of prompts using IndexedDB
- 🔍 Search and filter saved prompts
- 📤 Export prompts as JSON
- 🎨 Modern UI with Tailwind CSS
- ⚡ Fast development with Vite
- 🔄 Real-time prompt generation
- 🎯 Adjustable verbosity levels (Concise, Standard, Detailed)
- 🎮 Specialized prompts for different app types:
- HTML Games
- React Vite Games
- HTML Three.js Visualizations
- Python Utilities
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/Techdread/prompt-generator.git
cd prompt-generator
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Select your desired LLM provider from the dropdown menu
- Enter your API key in the secure input field
- Choose the type of application you want to generate a prompt for
- Select your preferred verbosity level:
- Concise: Direct prompt without explanations
- Standard: Balanced prompt with some context
- Detailed: Comprehensive prompt with full explanations
- Enter a description of what you want the prompt to do
- Click "Generate Prompt" to create your prompt
- Toggle between markdown and raw text views using the switch
- Copy the generated prompt using the copy button
- Generated prompts are automatically saved and can be accessed from the history panel
Create a .env
file in the root directory with your API keys (optional):
VITE_OPENAI_API_KEY=your_openai_key
VITE_ANTHROPIC_API_KEY=your_anthropic_key
VITE_GEMINI_API_KEY=your_gemini_key
prompt-generator/
├── src/
│ ├── components/ # React components
│ ├── services/ # Database and API services
│ ├── utils/ # Utility functions
│ └── App.jsx # Main application component
├── public/ # Static assets
├── index.html # Entry HTML file
└── vite.config.js # Vite configuration
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with React
- Powered by Vite
- Styled with Tailwind CSS
- Icons from Heroicons