An open API service indexing awesome lists of open source software.

https://github.com/kedhareswer/platform-prompt-alchemy-lab

An open-source web app that enhances and refines AI prompts using advanced prompt engineering techniques like Chain of Thought, Few-Shot Learning, Persona Injection, and more. Supports multiple LLM providers and domains with a modern, intuitive UI built with React, TypeScript, and Tailwind CSS.
https://github.com/kedhareswer/platform-prompt-alchemy-lab

ai chain-of-thought deep-learning dl machine-learning mixture-of-experts ml prompt prompt-engineering

Last synced: 2 months ago
JSON representation

An open-source web app that enhances and refines AI prompts using advanced prompt engineering techniques like Chain of Thought, Few-Shot Learning, Persona Injection, and more. Supports multiple LLM providers and domains with a modern, intuitive UI built with React, TypeScript, and Tailwind CSS.

Awesome Lists containing this project

README

          


PromptForge Logo

# 🚀 PromptForger
### *AI Prompt Engineering Platform*

[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=for-the-badge)](LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-96.3%25-blue?style=for-the-badge&logo=typescript)](https://www.typescriptlang.org/)
[![React](https://img.shields.io/badge/React-18.3.1-61DAFB?style=for-the-badge&logo=react)](https://reactjs.org/)
[![Vite](https://img.shields.io/badge/Vite-Latest-646CFF?style=for-the-badge&logo=vite)](https://vitejs.dev/)

[![GitHub Stars](https://img.shields.io/github/stars/Kedhareswer/platform-prompt-alchemy-lab?style=for-the-badge&logo=github&color=yellow)](https://github.com/Kedhareswer/platform-prompt-alchemy-lab/stargazers)
[![GitHub Issues](https://img.shields.io/github/issues/Kedhareswer/platform-prompt-alchemy-lab?style=for-the-badge&logo=github)](https://github.com/Kedhareswer/platform-prompt-alchemy-lab/issues)
[![Last Commit](https://img.shields.io/github/last-commit/Kedhareswer/platform-prompt-alchemy-lab?style=for-the-badge&logo=github)](https://github.com/Kedhareswer/platform-prompt-alchemy-lab/commits/main)

**Transform your AI prompts with advanced optimization techniques for better responses across any platform.**

[🎯 **Try Demo**](https://prompt-enhancer-hazel.vercel.app/) • [📚 **Documentation**](#-documentation) • [🤝 **Contribute**](#-contributing) • [⭐ **Star this repo**](https://github.com/Kedhareswer/platform-prompt-alchemy-lab/stargazers)

---

## 📋 Table of Contents

- [✨ Features](#-features)
- [🏗️ Architecture](#️-architecture)
- [🚀 Quick Start](#-quick-start)
- [🔧 Tech Stack](#-tech-stack)
- [🤖 Supported Platforms](#-supported-platforms)
- [⚙️ Optimization Techniques](#️-optimization-techniques)
- [📊 Performance Metrics](#-performance-metrics)
- [🎯 Usage Examples](#-usage-examples)
- [🤝 Contributing](#-contributing)
- [📄 License](#-license)

---

## ✨ Features

| 🎯 **Core Features** | 🔧 **Advanced Tools** | 📊 **Analytics** |
|---------------------|----------------------|------------------|
| Multi-platform AI support | Chain of Thought prompting | Token optimization |
| Real-time prompt analysis | Few-shot learning integration | Performance scoring |
| Domain specialization | Persona injection | Quality indicators |
| System/Normal modes | Constraint optimization | Improvement metrics |

### 🌟 Key Capabilities

- **🧠 Intelligent Analysis**: Real-time prompt quality assessment with complexity scoring
- **🎭 Multiple Modes**: System prompts for structured AI instructions or normal chat-ready prompts
- **🔐 Secure API Management**: Safe storage and management of API keys
- **📱 Responsive Design**: Modern UI built with shadcn/ui and Tailwind CSS
- **⚡ Real-time Optimization**: Instant feedback and optimization suggestions
- **📈 Performance Tracking**: Token count comparisons and improvement metrics

---

## 🏗️ Architecture

```mermaid
graph TD
A[User Input] --> B[Prompt Analyzer]
B --> C[Quality Assessment]
B --> D[Domain Detection]
C --> E[Optimization Engine]
D --> E
E --> F[Technique Selection]
F --> G[AI Platform API]
G --> H[Optimized Output]
H --> I[Performance Metrics]
```

---

## 🚀 Quick Start

### Prerequisites

![Node.js](https://img.shields.io/badge/Node.js-18.0+-339933?style=flat-square&logo=node.js)
![npm](https://img.shields.io/badge/npm-8.0+-CB3837?style=flat-square&logo=npm)

### Installation

```bash
# 1️⃣ Clone the repository
git clone https://github.com/Kedhareswer/platform-prompt-alchemy-lab.git

# 2️⃣ Navigate to project directory
cd platform-prompt-alchemy-lab

# 3️⃣ Install dependencies
npm install

# 4️⃣ Start development server
npm run dev
```

### 🌐 Access the Application

Open [http://localhost:5173](http://localhost:5173) in your browser.

---

## 🔧 Tech Stack

| **Frontend** | **Styling** | **Tools** | **APIs** |
|-------------|-------------|-----------|----------|
| ![React](https://img.shields.io/badge/React-18.3.1-61DAFB?logo=react) | ![Tailwind](https://img.shields.io/badge/Tailwind-CSS-38B2AC?logo=tailwind-css) | ![Vite](https://img.shields.io/badge/Vite-Build-646CFF?logo=vite) | ![OpenAI](https://img.shields.io/badge/OpenAI-API-412991?logo=openai) |
| ![TypeScript](https://img.shields.io/badge/TypeScript-5.0-3178C6?logo=typescript) | ![shadcn/ui](https://img.shields.io/badge/shadcn/ui-Components-000000) | ![ESLint](https://img.shields.io/badge/ESLint-Linting-4B32C3?logo=eslint) | ![Anthropic](https://img.shields.io/badge/Anthropic-Claude-D2691E) |
| ![TanStack Query](https://img.shields.io/badge/TanStack-Query-FF4154?logo=react-query) | ![Lucide](https://img.shields.io/badge/Lucide-Icons-F56565?logo=lucide) | ![Prettier](https://img.shields.io/badge/Prettier-Formatting-F7B93E?logo=prettier) | ![Google](https://img.shields.io/badge/Google-Gemini-4285F4?logo=google) |

---

## 🤖 Supported Platforms

### 🧠 AI Models

Provider
Models
Capabilities
Status

OpenAI
GPT-4o, GPT-4 Turbo, o1-preview, o3-mini
Advanced reasoning, code generation
🟢 Active

Anthropic
Claude 3.5/4 Sonnet, Claude 3 Opus
Long context, analysis
🟢 Active

Google
Gemini 2.0 Flash, Gemini 1.5 Pro
Multimodal, fast inference
🟢 Active

Meta
LLaMA 3.3 70B, LLaMA 3.1 405B
Open source, efficient
🟢 Active

Mistral
Mistral Large 2, Mixtral 8x22B
European AI, multilingual
🟢 Active

### 🛠️ AI Builders & Tools

Category
Tools
Description

Web Builders
Lovable, Vercel v0, Bolt.new
AI-powered web application builders

Code Editors
Cursor, Windsurf, Continue
AI-enhanced development environments

Code Assistants
GitHub Copilot, Codeium, Tabnine
Intelligent code completion and generation

Specialized Tools
Replit Agent, Phind, Aider
Domain-specific AI development tools

---

## ⚙️ Optimization Techniques

| Technique | Description | Use Case | Effectiveness |
|-----------|-------------|----------|---------------|
| **🧠 Chain of Thought** | Step-by-step reasoning | Complex problem solving | ⭐⭐⭐⭐ |
| **📚 Few-Shot Learning** | Example-based training | Pattern recognition | ⭐⭐⭐ |
| **🔄 ReAct** | Reasoning + Acting | Multi-step tasks | ⭐⭐⭐ |
| **🎭 Persona Injection** | Role-based responses | Specialized outputs | ⭐⭐⭐ |
| **📏 Constraint Integration** | Boundary setting | Controlled responses | ⭐⭐ |
| **🌳 Tree of Thoughts** | Multiple reasoning paths | Complex decisions | ⭐⭐⭐⭐ |
| **🎯 Token Optimization** | Efficiency improvement | Cost reduction | ⭐⭐ |
| **🔍 Self-Consistency** | Multiple sampling | Reliability boost | ⭐⭐⭐ |

---

## 📊 Performance Metrics

### 📈 Optimization Results

```
📊 Average Performance Improvements:
┌─────────────────────┬──────────┬──────────┐
│ Metric │ Before │ After │
├─────────────────────┼──────────┼──────────┤
│ Response Quality │ 65% │ 87% │
│ Token Efficiency │ 70% │ 92% │
│ Task Completion │ 78% │ 94% │
│ User Satisfaction │ 72% │ 89% │
└─────────────────────┴──────────┴──────────┘
```

### 🎯 Quality Scoring

- **🔴 Low (0-40)**: Needs significant improvement
- **🟡 Medium (41-70)**: Good with room for enhancement
- **🟢 High (71-100)**: Excellent optimization achieved

---

## 🎯 Usage Examples

### 💼 Business Use Case

```markdown
📝 Original Prompt:
"Write a marketing plan"

✨ Optimized Prompt:
"You are a senior marketing strategist with 15+ years of experience.
Create a comprehensive Q1 2024 marketing strategy for a B2B SaaS
startup in the project management space. Include:

1. Target audience analysis
2. Channel strategy (content, paid, social)
3. Budget allocation ($50K total)
4. Key performance indicators
5. Timeline with milestones

Format as an executive summary with actionable next steps."

📊 Improvement: +45% response quality, -23% tokens
```

### 💻 Technical Use Case

```markdown
📝 Original Prompt:
"Help me code"

✨ Optimized Prompt:
"Act as a senior full-stack developer. I'm building a React TypeScript
application with the following requirements:

Context: E-commerce product catalog
Goal: Create a reusable ProductCard component
Constraints: Must be accessible, mobile-responsive
Tech Stack: React 18, TypeScript, Tailwind CSS

Please provide:
1. Component interface definition
2. Complete implementation with error handling
3. Unit test examples
4. Usage documentation

Code style: Functional components, custom hooks where appropriate."

📊 Improvement: +52% code quality, +38% completeness
```

---

## 🎨 Screenshots


Dashboard
Results

---

## 🤝 Contributing

We welcome contributions! Here's how you can help:

### 🐛 Bug Reports
- Use GitHub Issues
- Include reproduction steps
- Provide system information

### 💡 Feature Requests
- Check existing issues first
- Describe the use case
- Provide mockups if applicable

### 🔧 Development

```bash
# Fork the repository
# Create a feature branch
git checkout -b feature/amazing-feature

# Make your changes
# Add tests if applicable
# Commit with conventional commits
git commit -m "feat: add amazing feature"

# Push and create PR
git push origin feature/amazing-feature
```

### 📋 Contribution Guidelines

- Follow TypeScript best practices
- Use conventional commit messages
- Add tests for new features
- Update documentation as needed

---

## 🎉 Community & Support

[![GitHub Discussions](https://img.shields.io/badge/GitHub-Discussions-181717?style=for-the-badge&logo=github)](https://github.com/Kedhareswer/platform-prompt-alchemy-lab/discussions)

---

## 🏆 Contributors



---

## 📄 License

[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=for-the-badge)](LICENSE)

This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.

---

**⭐ If you find PromptForge useful, please consider [starring the repository](https://github.com/Kedhareswer/platform-prompt-alchemy-lab/stargazers) to support development!**