Advanced AI-Powered Prompt Generator
A modern, AI-powered prompt optimization tool that helps you craft better prompts for various AI models. Features both free rule-based generation and AI-powered enhancement with support for multiple models and output formats.
Features β’ Demo β’ Installation β’ Usage β’ Tech Stack β’ Contributing
- Hybrid Generation Modes: Choose between free rule-based generation or AI-powered enhancement
- Multiple AI Models: Support for GPT-4o, GPT-4 Turbo, Claude 3.5 Sonnet, GPT-3.5 Turbo, and Gemini Pro
- Smart Intent Analysis: Automatically detects prompt intent (creative writing, coding, analytical, data science, general)
- Output Formats: Generate prompts optimized for plain text, JSON, Markdown, or code
- Dark Mode: Toggle between light and dark themes with smooth transitions
- Real-time Token Counting: See token usage estimates for input and output
- Copy to Clipboard: Easily copy enhanced prompts
- Responsive Design: Works seamlessly on desktop and mobile devices
- Vercel-Ready: Deploy instantly with no backend configuration needed
Try it now: https://prompt-wizard-seven.vercel.app
- Features
- Live Demo
- Tech Stack
- Installation
- Usage
- Generation Modes
- Project Structure
- Deployment
- Contributing
- License
- Author
- Frontend: React 18 with TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS with custom dark mode support
- Icons: Lucide React
- Deployment: Vercel with serverless functions
- AI Integration: OpenRouter API for AI-powered generation
- Node.js 18+
- npm or yarn
- Git
-
Clone the repository
git clone https://github.com/Justme017/Prompt-Wizard.git cd Prompt-Wizard -
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser
Navigate to
http://localhost:5173
- Enter your prompt in the text area
- Select your desired output format (Plain Text, JSON, Markdown, Code)
- Click "Generate Enhanced Prompt"
- Copy the enhanced prompt to use with any AI model
- Get your free API key from OpenRouter
- Enter the API key in the configuration section
- Toggle to "AI-Powered Mode"
- Select your preferred AI model (GPT-4o, Claude 3.5, Gemini Pro, etc.)
- Enter your prompt and generate
Use the "Add Skill to Chat" dropdown to instantly copy pre-configured prompts for:
- π¨ Image Generation
- π΅ Audio Generation
- π¬ Video Generation
- βοΈ Email Writing
- π Research
- πΆ ELI5 Explanations
- π Data Analysis
- π» Code Review
- π Translation
- βοΈ Creative Writing
- π Tutoring
- π Summarization
npm run buildManual Deployment:
# Build the project
npm run build
# Deploy to Vercel
npx vercel --prodNo environment variables required for the free mode. For AI-powered mode, users provide their own OpenRouter API keys directly in the UI.
src/
βββ components/
β βββ PromptEnhancer.tsx # Main AdvancedPromptGenerator component
βββ pages/
β βββ Index.tsx # Home page
β βββ NotFound.tsx # 404 page
βββ hooks/ # Custom React hooks
βββ lib/ # Utility functions
βββ main.tsx # Application entry point
public/ # Static assets
- β Instant generation with no API costs
- β Smart intent analysis and context-aware prompt structuring
- β Optimized for different content types (writing, coding, analysis, etc.)
- β No sign-up required
- π Uses OpenRouter API for intelligent prompt enhancement
- π Requires API key from openrouter.ai
- π§ Advanced prompt engineering with AI assistance
- π― Supports multiple AI models:
- OpenAI: GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo
- Anthropic: Claude 3.5 Sonnet
- Google: Gemini Pro, Gemma 3 12B (default)
The tool automatically analyzes your prompt to determine the intent:
| Intent | Description | Examples |
|---|---|---|
| π¨ Creative Writing | Stories, articles, narratives | "Write a sci-fi story" |
| π» Coding | Scripts, programs, algorithms | "Create a Python script" |
| π Analytical | Research, evaluation, comparison | "Analyze market trends" |
| π Data Science | Visualization, plotting, analysis | "Create a data dashboard" |
| π General | All other types of prompts | "Explain quantum physics" |
Choose from multiple output formats for your enhanced prompts:
- π Plain Text: Simple, readable format
- π JSON: Structured data format
- π Markdown: Formatted documentation
- π» Code: Programming-specific format
Contributions are welcome! Please feel free to submit a Pull Request.
- π΄ Fork the repository
- πΏ Create a 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
- Follow the existing code style
- Write clear commit messages
- Update documentation as needed
- Test your changes thoroughly
This project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
You are free to:
- β Share β copy and redistribute the material
- β Adapt β remix, transform, and build upon the material
Under the following terms:
- π Attribution β Give appropriate credit
- π ShareAlike β Distribute under the same license
Shubham Mehta
Special thanks to:
- π¨ Tailwind CSS - Utility-first CSS framework
- β‘ Vite - Next generation frontend tooling
- βοΈ React - JavaScript library for building user interfaces
- π Vercel - Deployment and hosting platform
- π Lucide - Beautiful & consistent icons
- π€ OpenRouter - Unified API for multiple AI models
To complete your GitHub repository setup, update the About section with:
Description:
Advanced AI-powered prompt generator with hybrid modes, multiple AI models, and smart intent detection. Built with React, TypeScript, and Tailwind CSS.
Website:
https://prompt-wizard-seven.vercel.app
Topics:
ai, prompt-engineering, openrouter, react, typescript, vite, tailwind-css, prompt-generator, llm, gpt-4, claude, gemini, ai-tools, prompt-optimization, vercel, openai, anthropic, google-ai, developer-tools, productivity
β If you find this project useful, please consider giving it a star! β
Made with β€οΈ by Shubham Mehta
