An advanced prompt engineering assistant that transforms raw ideas into clear, powerful, and highly contextual prompts for various AI tools. Built with React, TypeScript, and powered by the Gemini API.
- Smart Prompt Generation: Transform simple ideas into sophisticated prompts
- Multi-Tool Support: Generate prompts optimized for different AI platforms
- Flexible Output Types: Support for single prompts and multi-step workflows
- Tone Customization: Choose from 6 different tones (Casual, Formal, Cinematic, Poetic, Technical, Witty)
- Expertise Levels: Adapt prompts for Beginner, Intermediate, or Expert users
- Multi-language Support: Generate prompts in any language
- Negative Prompting: Specify what to exclude from generated content
- Context Enhancement: Add additional context for more specific results
- Modern UI: Clean, responsive design with animated elements
- Interactive Canvas: Dynamic particle effects on the landing page
- API Key Management: Secure local storage of your Gemini API key
- Real-time Generation: Fast prompt crafting with loading states
- Copy to Clipboard: One-click copying of generated prompts
- Error Handling: Comprehensive error messages and validation
- Frontend: React 19+ with TypeScript
- Build Tool: Vite 6+
- AI Integration: Google Gemini API (@google/genai)
- Styling: Tailwind CSS (via utility classes)
- State Management: React Hooks (useState, useCallback)
- Development: Hot Module Replacement (HMR)
- Node.js 18+
- npm or yarn
- Gemini API key from Google AI Studio
-
Clone the repository
git clone https://github.com/your-username/promptcrafter-ai.git cd promptcrafter-ai
-
Install dependencies
npm install
-
Environment Configuration Create a
.env
file in the root directory:GEMINI_API_KEY=your_gemini_api_key_here
-
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:5173
- Visit Google AI Studio
- Sign in with your Google account
- Create a new API key
- Copy the key and add it to your
.env
file or enter it in the application
- Enter Your Idea: Describe what you want to achieve
- Select Target Tool: Choose the AI platform you'll use the prompt with
- Configure Settings:
- Prompt Type: Single prompt or multi-step workflow
- Tone: Match your desired communication style
- Expertise Level: Adjust complexity for your audience
- Language: Generate prompts in any language
- Add Context (Optional): Provide additional details or examples
- Set Exclusions (Optional): Specify what to avoid
- Generate: Click "Craft My Prompt" to create your optimized prompt
- Content Creation: "Create a blog post about sustainable living"
- Code Generation: "Build a React component for user authentication"
- Creative Writing: "Write a sci-fi short story with time travel"
- Business Analysis: "Analyze market trends for electric vehicles"
- Educational Content: "Explain quantum physics for high school students"
promptcrafter/
โโโ components/
โ โโโ icons/ # SVG icon components
โ โโโ pages/ # Page components
โ โ โโโ LandingPage.tsx
โ โ โโโ GeneratorPage.tsx
โ โ โโโ AdvantagesPage.tsx
โ โ โโโ CoreFeaturesPage.tsx
โ โ โโโ BenchmarksPage.tsx
โ โโโ ApiKeyModal.tsx # API key input modal
โ โโโ Header.tsx # Navigation header
โ โโโ PromptForm.tsx # Main form component
โ โโโ ResultDisplay.tsx # Generated prompt display
โโโ services/
โ โโโ geminiService.ts # Gemini API integration
โโโ App.tsx # Main application component
โโโ types.ts # TypeScript type definitions
โโโ constants.ts # Application constants
โโโ index.tsx # Application entry point
โโโ vite.config.ts # Vite configuration
โโโ tsconfig.json # TypeScript configuration
โโโ package.json # Dependencies and scripts
npm run dev
- Start development server with HMRnpm run build
- Build for productionnpm run preview
- Preview production build locally
Edit types.ts
to add new tone options:
export enum Tone {
CASUAL = 'Casual',
FORMAL = 'Formal',
// Add your custom tone here
CREATIVE = 'Creative'
}
The core prompt engineering logic is in services/geminiService.ts
. You can customize the meta-prompt to change how prompts are generated.
The project uses Tailwind CSS utility classes. Modify component files to change the appearance.
npm run build
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod
# Build the project
npm run build
# Upload the dist/ folder to Netlify
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini API for powerful AI capabilities
- React team for the excellent framework
- Vite for lightning-fast development experience
- The open-source community for inspiration and tools
If you encounter any issues or have questions:
- Check the Issues page
- Create a new issue with detailed information
- Contact the maintainers
- Support for more AI providers (OpenAI, Claude, etc.)
- Prompt templates and presets
- Prompt history and favorites
- Team collaboration features
- Advanced prompt optimization analytics
- Integration with popular AI tools
Made with โค๏ธ by the PromptCrafter team
Transform your ideas into powerful prompts with PromptCrafter AI