A local app that turns rough ideas into clearer, better-structured prompts, organized by project with saved history.
This repository is public for viewing, learning, and non-commercial improvement.
Commercial use is not allowed without prior written permission from the repository owner.
See LICENSE.
For commercial licensing requests, contact:
brw.sudheer@gmail.com
- Do not commit
backend/.env - Do not commit
backend/prompts.db - Do not commit caches or build folders such as
frontend/.next,frontend/node_modules, orbackend/.kb_embeddings.pkl - Each contributor should use their own API keys
- Python 3.11 or newer recommended
- Node.js 18 or newer recommended
- npm installed
- Windows, macOS, or Linux with terminal access
Home screen:
Create project form:
Main editor:
- Copy
backend/.env.exampletobackend/.env - Add your own API keys to
backend/.env - Start the app with
Prompt_Optimizer.vbsorPrompt_Optimizer.bat - Open
http://localhost:3001
For non-technical users on Windows:
- Download this project as a ZIP from GitHub
- Extract it to a folder on your computer
- Install Python and Node.js if they are not already installed
- Open the
backendfolder and copy.env.exampleas.env - Add your own AI API keys inside the new
.envfile - Open a terminal in the
backendfolder and run:
pip install -r requirements.txt- Open a terminal in the
frontendfolder and run:
npm install- Double-click
Prompt_Optimizer.vbs - Open
http://localhost:3001in your browser
If the app does not start, check that your API keys were added correctly in backend/.env.
Create this file before running the backend:
backend/.envStart from this template:
ANTHROPIC_API_KEY=your_anthropic_key_here
OPENAI_API_KEY=your_openai_key_here
GEMINI_API_KEY=your_gemini_key_here
GROQ_API_KEY=your_groq_key_here
DATABASE_URL=sqlite:///./prompts.db
DEFAULT_MODEL=gemini-2.0-flash
OPTIMIZER_MODEL=gemini-2.0-flash
TOKEN_WARN_THRESHOLD=0.6
TOKEN_SUMMARIZE_THRESHOLD=0.75
TOKEN_HARD_LIMIT=0.90- OpenAI:
https://platform.openai.com/api-keys - Anthropic:
https://platform.claude.com/settings/keys - Google Gemini:
https://aistudio.google.com/app/apikey - Groq:
https://console.groq.com/keys
- Project-based prompt organization
- Prompt cleanup and restructuring
- Multi-provider AI support
- Local history and template reuse
- Token tracking and context management
- AI response speed depends on the selected provider and network quality
- Missing API keys can cause provider fallback errors
- First-time local setup may take longer because dependencies need to be installed
cd backend
pip install -r requirements.txt
python -m uvicorn main:app --port 8000 --reloadcd frontend
npm install
npm run dev -- -p 3001Prompt_Optimizer.vbsstarts the app quietlyPrompt_Optimizer.batpoints to the quiet launcherstart.ps1starts backend and frontend together
backend/ FastAPI + SQLite
routers/ API routes
services/ optimization and provider logic
frontend/ Next.js + Tailwind
app/ app routes
components/ UI components
lib/ API and store logic
SQLite data is stored locally in:
backend/prompts.db
Keep that file out of public commits unless you intentionally want to share local history data.


