| title | author | output | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Promptly — Outcome‑First Prompt Engineering |
Promptly Contributors |
|
Promptly is a visualization‑first, outcome‑driven prompt engineering workbench. You define the task spec and test cases; Promptly then searches, tests, and improves prompts so model behavior converges toward the ideal output you define. It replaces ad‑hoc prompting with evidence‑backed iteration.
- Outcome‑first — Align generation with your acceptance criteria.
- Evidence over intuition — KPIs and tests tell you what works.
- Reusable pipeline — Templated Spec, Tests, KPIs, and Version Evolution.
- Prompt Enhancer — Structures intent, optionally injects CoT for reasoning tasks, supports parameterized placeholders.
- Validator & KPIs — Accuracy, F1, Pass Rate, Token Cost, Progress (extensible scoring).
- Version Evolution — Logs each change and its ΔAccuracy contribution.
- Dashboard — Line/Bar/Pie/Gauge charts with consistent legends/units and accessible defaults.
- Exports — One‑click Markdown/PDF/PPTX for shareable evidence.
UI (Vercel) → API (Render) → Evaluator → Metrics Store → KPI Dashboard
↑ ↓ ↓ ↑
Prompt Enhancer → Candidate Generation → Scoring → Version Evolution
- Enhancer converts user intent into structured prompts and can auto‑enable CoT when needed.
- Evaluator runs the test suite and emits scores (Accuracy, F1, etc.).
- Dashboard visualizes KPIs and the evolution timeline.
Promptly/
├─ frontend/ # React/Vite (or similar) UI
├─ backend/ # Node/Express (or similar) API & evaluator
└─ others/ # Docs, diagrams, samples, scripts
Demo mode — Static UI preview (index.html can be opened directly).
Cloud mode — Split frontend/backed; deploy frontend on Vercel and backend on Render.
Packaging convention
- Demo version: must include an
index.htmlat the root for one‑click preview.- Cloud version: must include top‑level folders
backend/,frontend/,others/.
- Download the demo package and open
index.htmlin your browser. - Load the sample Spec and Tests to preview the workflow.
- KPIs and charts render placeholders until linked to backend data.
Backend
cd backend
cp .env.example .env
# Add keys you plan to use:
# OPENAI_API_KEY=... (optional) ANTHROPIC_API_KEY=... GEMINI_API_KEY=...
# If using a database: DATABASE_URL=...
npm install
npm run dev # or: npm run startFrontend
cd frontend
npm install
# Configure API base
echo "VITE_API_BASE=http://localhost:10000" > .env
npm run devDeploy
- Vercel (Frontend) — import repo → set
VITE_API_BASE→ deploy. - Render (Backend) — add environment variables → use platform
$PORT→ deploy.
# Common
NODE_ENV=production
PORT= # use platform-injected PORT on Render
# Providers (pick what you use)
OPENAI_API_KEY=...
ANTHROPIC_API_KEY=...
GEMINI_API_KEY=...
# Optional
DATABASE_URL=...
JWT_SECRET=...
METRICS_WRITE_KEY=...
VITE_API_BASE=https://your-backend.onrender.com
- Define Spec — Goal, constraints, quality bar, and tolerances.
- Write Tests — A compact but representative set with gold answers.
- Run Optimize — Explore prompts/parameters and score candidates automatically.
- Review Evidence — Inspect KPI cards, trend charts, and the ΔAccuracy evolution timeline.
- Export & Share — Package the winning prompt and evidence as Markdown/PDF/PPTX.
- Accuracy · F1 · Pass Rate · Token Cost · Progress%
- Optional: A/B comparisons and cost‑quality trade‑offs.
- v0.5.x — UI polish, evolution timeline, data binding, export templates.
- v0.6 — A/B testing, team collaboration, audit trails.
Issues and PRs are welcome. Please include a minimal repro with screenshots/screencasts.
© 2025 Tiger Yang— Released under the MIT License.
Use, modify, distribute, or remix freely under the same open terms.
Attribution is appreciated but not required.
This project embodies an open-source spirit — designed to inspire,
build upon, and evolve through collective creativity.
Copyright (c) 2025 Tiger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Lucide icons · Inter font · Vercel · Render.