Build a Prompt Engineering Playground
Build a tool to test, compare, and iterate on AI prompts with side-by-side output comparison.
Requirements
Prompt editor with variables support ({{name}}, {{context}}, etc.)Variable input panel to fill in template variablesSend prompt to a mock AI endpoint (simulate responses with delay)Side-by-side comparison: run 2 prompt variants simultaneouslyToken count estimator (approximate based on word count x 1.3)Prompt history with timestamps and outputsSave favorite prompts with names and tagsTechnical Notes
Build a clean prompt template system. For the mock API, create a Next.js API route that returns simulated responses.
Bonus Points
Real API integration (OpenAI/Anthropic) with key inputA/B test mode comparing prompt performanceExport prompt library as JSON