Skip to content

🔑Promptly is an outcome-driven prompt engineering workbench. You define a task spec and a small test set; Promptly searches, evaluates, and iterates prompts to converge on your ideal output. Built-in KPIs, version evolution, and one-click exports turn results into clear, shareable evidence.

Notifications You must be signed in to change notification settings

MaxonT/Promptly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title author output
Promptly — Outcome‑First Prompt Engineering
Promptly Contributors
html_document
toc toc_depth number_sections theme df_print
true
2
false
readable
paged

What is Promptly?

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.

Why it matters

  • 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.

Core Features

  • 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.

Architecture

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.

Project Structure (Cloud)

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.html at the root for one‑click preview.
  • Cloud version: must include top‑level folders backend/, frontend/, others/.

Quickstart

A) Demo (Static UI)

  1. Download the demo package and open index.html in your browser.
  2. Load the sample Spec and Tests to preview the workflow.
  3. KPIs and charts render placeholders until linked to backend data.

B) Cloud (Vercel + Render)

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 start

Frontend

cd frontend
npm install
# Configure API base
echo "VITE_API_BASE=http://localhost:10000" > .env
npm run dev

Deploy

  • Vercel (Frontend) — import repo → set VITE_API_BASE → deploy.
  • Render (Backend) — add environment variables → use platform $PORT → deploy.

Environment Variables

# 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

Usage Flow

  1. Define Spec — Goal, constraints, quality bar, and tolerances.
  2. Write Tests — A compact but representative set with gold answers.
  3. Run Optimize — Explore prompts/parameters and score candidates automatically.
  4. Review Evidence — Inspect KPI cards, trend charts, and the ΔAccuracy evolution timeline.
  5. Export & Share — Package the winning prompt and evidence as Markdown/PDF/PPTX.

KPIs

  • Accuracy · F1 · Pass Rate · Token Cost · Progress%
  • Optional: A/B comparisons and cost‑quality trade‑offs.

Roadmap

  • v0.5.x — UI polish, evolution timeline, data binding, export templates.
  • v0.6 — A/B testing, team collaboration, audit trails.

Contributing

Issues and PRs are welcome. Please include a minimal repro with screenshots/screencasts.


🪪 License

© 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.


MIT License

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.


Acknowledgments

Lucide icons · Inter font · Vercel · Render.

About

🔑Promptly is an outcome-driven prompt engineering workbench. You define a task spec and a small test set; Promptly searches, evaluates, and iterates prompts to converge on your ideal output. Built-in KPIs, version evolution, and one-click exports turn results into clear, shareable evidence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published