Transform your prompts into masterpieces with AI-powered enhancement techniques
A premium, scalable prompt enhancement studio built with cutting-edge AI technology and modern web development practices
Prompt Forge is an advanced AI prompt enhancement platform that transforms your basic prompts into sophisticated, high-performing instructions using proven AI techniques. Whether you're a developer, researcher, content creator, or AI enthusiast, Prompt Forge empowers you to craft prompts that deliver exceptional results.
π― 8 Advanced Enhancement Techniques - From Chain of Thought to Tree of Thought reasoning
π€ 5 Premium AI Models - DeepSeek v3, Gemini 2.5 Pro, Claude Opus 4.1, and more
π 4 Output Formats - Plain Text, Markdown, JSON, XML with smart templating
β‘ Real-time Streaming - See your prompts enhance live with AI SDK v5
π¨ Beautiful UI - Modern design with AI Elements and shadcn/ui components
π Secure Authentication - Powered by Clerk with seamless user experience
|
Step-by-step reasoning for complex problems with logical progression and error-checking. Learn from 2-3 high-quality examples that demonstrate the desired input-output pattern. Direct, crystal-clear instructions without examples for immediate results. AI adopts specific expert personas with professional methodologies and domain knowledge. |
Self-improving prompts that critique and refine their own approach iteratively. Explore multiple reasoning paths simultaneously, backtrack, and synthesize the best insights. Generate multiple solutions and pick the consensus answer with confidence scoring. Enforce specific schemas and formats with validation rules and error handling. |
| Model | Provider | Context | Cost/1k | Specialty |
|---|---|---|---|---|
| DeepSeek v3 | DeepSeek | 128k | FREE π | Advanced reasoning |
| Gemini 2.5 Pro | 1M | $0.0075 | Premium performance | |
| Claude Opus 4.1 | Anthropic | 200k | $0.015 | Analytical precision |
| Gemini 2.5 Flash | 1M | $0.002 | Lightning-fast | |
| Claude Sonnet 4 | Anthropic | 200k | $0.003 | Context handling |
React 19 β’ TypeScript β’ Vite β’ Tailwind CSS
Vercel AI Elements β’ shadcn/ui β’ Motion β’ Remix Icons
AI SDK v5 β’ OpenRouter β’ Streaming β’ Real-time Enhancement
Clerk β’ TanStack Query β’ React Hook Form β’ Custom Hooks
- Node.js 18+ and pnpm
- OpenRouter API key (Get one here)
- Clerk account (Free tier available)
git clone https://github.com/SujalXplores/prompt-forge.git
cd prompt-forge
pnpm install# Copy environment template
cp .env.example .envAdd your keys to .env:
# OpenRouter API Configuration (Server-side only)
OPENROUTER_API_KEY=your_openrouter_api_key_here
# Clerk Authentication (Client-side safe)
VITE_CLERK_PUBLISHABLE_KEY=pk_test_your_publishable_key# Start development server
pnpm dev
# Visit http://localhost:5173That's it! π You're ready to forge amazing prompts!
- Responsive Design - Perfect on desktop, tablet, and mobile
- Dark/Light Theme - Automatic system detection with manual toggle
- Real-time Streaming - Watch prompts enhance live with smooth animations
- Intelligent Layout - Split-screen workspace with configuration panel
- Model Selection - Choose from 5 premium AI models with cost optimization
- Technique Picker - 8 enhancement methods with detailed descriptions
- Output Formatting - Text, Markdown, JSON, XML with schema validation
- Custom Instructions - Add your own enhancement guidelines
- Streaming Responses - Real-time text generation with cancellation support
- Error Handling - Graceful fallbacks and informative error messages
- Token Optimization - Smart prompt construction to minimize costs
- Abort Control - Cancel long-running enhancements anytime
Input: "Write a blog post about AI"
Enhanced (Chain of Thought):
"As an expert content writer with 10+ years of experience in technology journalism,
create a comprehensive blog post about AI following this structure:
<thinking>
1. Identify target audience (tech-savvy professionals, beginners, or mixed)
2. Determine key AI topics to cover (current state, applications, challenges)
3. Plan logical flow from introduction to conclusion
4. Consider recent developments and trends
</thinking>
Write a 1500-word blog post that:
- Opens with a compelling hook about AI's current impact
- Covers 3-4 main applications with specific examples
- Addresses common misconceptions
- Concludes with future implications
- Uses accessible language with technical accuracy
- Includes data and statistics where relevant"{
"summary": "Enhanced prompt with clear structure and expert persona",
"improvements": [
"Added expert role assignment",
"Included structured thinking process",
"Specified word count and format",
"Added quality criteria"
],
"confidence": 0.95,
"technique": "chain-of-thought"
}- Connect Repository - Link your GitHub repo to Vercel
- Configure Environment - Add your API keys in Vercel dashboard
- Deploy - Zero-config deployment with automatic builds
# Deploy via Vercel CLI
npx vercel --prod- Netlify - With serverless functions support
- Railway - Full-stack deployment platform
- Render - Auto-deploy from Git
- Any Node.js Host - Platform-agnostic design
Customize available models in src/lib/ai-config.ts:
export const AI_MODELS: Record<string, ModelConfig> = {
'custom/model': {
id: 'custom/model',
name: 'Custom Model',
provider: 'Custom',
maxTokens: 100000,
costPer1kTokens: 0.01,
description: 'π Your custom model description',
},
// Add more models...
};Add custom techniques:
export const ENHANCEMENT_TECHNIQUES: Record<string, EnhancementTechnique> = {
'custom-technique': {
id: 'custom-technique',
name: 'Custom Technique',
description: 'Your innovative enhancement method',
icon: 'RiMagicFill',
systemPrompt: `You are a specialist in...
Your custom enhancement instructions here...`,
},
};Create custom output templates:
export const OUTPUT_FORMATS: Record<string, OutputFormat> = {
'custom': {
id: 'custom',
name: 'Custom Format',
description: 'Your structured format',
template: `Respond with your custom structure:
- Field 1: Value
- Field 2: Value`,
},
};src/
βββ components/
β βββ ai-elements/ # AI-powered UI components
β βββ auth/ # Authentication components
β βββ enhancement/ # Core prompt enhancement features
β βββ layout/ # App layout components
β βββ ui/ # shadcn/ui components
βββ hooks/ # Custom React hooks
βββ lib/ # Utilities & configurations
βββ pages/ # Application pages
Key Files:
βββ ai-config.ts # Models, techniques, formats
βββ system-prompts.ts # Enhancement instructions
βββ use-ai-enhancement.ts # Core enhancement logic
# Start development
pnpm dev
# Type checking
pnpm type-check
# Linting & formatting
pnpm lint
pnpm format
# Build for production
pnpm build
# Preview production build
pnpm preview
# Run all validations
pnpm validate// Add to src/lib/ai-config.ts
'your-technique': {
id: 'your-technique',
name: 'Your Technique',
description: 'What it does',
icon: 'RiIcon',
systemPrompt: `Your enhancement logic...`,
}// src/components/enhancement/YourComponent.tsx
import { useAIEnhancement } from '@/hooks/use-ai-enhancement';
export function YourComponent() {
const { enhance, isEnhancing } = useAIEnhancement();
// Your component logic
}// src/hooks/use-your-feature.ts
import { useState, useCallback } from 'react';
export function useYourFeature() {
// Your custom hook logic
}We welcome contributions! Here's how to get started:
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
- Follow TypeScript best practices
- Use existing hooks and components when possible
- Add tests for new functionality
- Update documentation for API changes
- Follow the existing code style and structure
Found a bug? Please include:
- Steps to reproduce
- Expected vs actual behavior
- Browser and OS information
- Screenshots if applicable
This project is licensed under the MIT License - see the LICENSE file for details.
- π Bug Reports - GitHub Issues
- π¬ Feature Requests - GitHub Discussions
- οΏ½ Documentation - [Coming Soon]
- π§ Email Support - sujal@promptforge.dev
Special thanks to the amazing tools and services that make Prompt Forge possible:
OpenRouter β’ Clerk β’ Vercel β’ shadcn/ui
Tailwind CSS β’ Motion β’ React β’ TypeScript
Built with β€οΈ by Sujal Singh
Transform your prompts. Amplify your results. Forge the future of AI.