Projects

Own product / open source

PromptZero: AI prompt management

Platform to create, version, run and compare prompts across OpenAI, Anthropic, Gemini and OpenRouter, with cost and latency analytics and A/B experiments.

Case
prompt zero
Code
Open source
Stack
Next.js 16 / React 19 / NestJS 11
prompt zero / DashboardLive app
PromptZero: AI prompt management
4
AI providers
15+
supported models
3
interface languages
100%
of routes in Swagger

§ Overview

Teams using AI keep prompts in docs, spreadsheets and scattered through code, with no history, no visible cost and locked into one provider. PromptZero covers the whole lifecycle: every edit becomes a version, runs stream back live, A/B experiments pick the best variation with statistics, and the dashboard shows usage, cost and latency per model. Underneath it is a real production product: NestJS with Clean Architecture, JWT with refresh token rotation, encrypted API keys, full observability with metrics, logs and traces, unit and E2E tests, CI/CD and automated deploys.

  • Next.js 16
  • React 19
  • NestJS 11
  • Prisma
  • PostgreSQL
  • TypeScript
  • Redis
  • Tailwind CSS v4
  • OpenTelemetry
  • Grafana
  • Docker
  • Playwright

B/01

Challenges

  • Prompts scattered across docs, spreadsheets and code, with no history
  • No visibility on cost and latency per model
  • Comparing variations without an objective criterion
  • Lock-in to a single AI provider

B/02

Solutions

  • Automatic versioning with soft delete and full history
  • Provider-agnostic layer with retry, backoff and circuit breaker
  • A/B experiments with traffic split and statistical analysis
  • Observability with Prometheus, Loki, Tempo and Grafana

B/03

Features

  • Response streaming via Server-Sent Events
  • Templates with typed variables
  • Workspaces, categories and favorites
  • Public explore and prompt forking
  • JWT with refresh token in an httpOnly cookie and AES-256-GCM on keys
  • UI in Portuguese, English and Spanish

§ Inside, screen by screen

07 screens
  1. prompt zero / DashboardLive app
    PromptZero: AI prompt management: Dashboard

    T/01

    Dashboard

    The account overview: prompts, runs, tokens, estimated cost, workspaces and categories, with runs per day and a ranking of the most used prompts.

    • 7, 30 and 90 day periods
    • Runs per day as an area chart
    • Top prompts by usage
  2. prompt zero / Cost per modelLive app
    PromptZero: AI prompt management: Cost per model

    T/02

    Cost per model

    How much each model cost in the period, side by side, plus the A/B experiment history. This is where it becomes clear when switching models pays off.

    • Estimated cost per model
    • A/B experiment history and ranking
    • Same period across every metric
  3. prompt zero / PromptsLive app
    PromptZero: AI prompt management: Prompts

    T/03

    Prompts

    The prompt library, with search, filters, public or private visibility and colored categories. Favorites stay pinned in the sidebar.

    • Fast search and filters
    • Public or private prompts
    • Favorites in the sidebar
  4. prompt zero / Editor and runnerLive app
    PromptZero: AI prompt management: Editor and runner

    T/04

    Editor and runner

    Edit, version and run in one place. The editor accepts template variables, and the runner lets you tune temperature, top P, top K and token limits before streaming.

    • Variables like {{company}} and {{main_pain}}
    • Advanced model parameters
    • Every save creates a new version
  5. prompt zero / WorkspacesLive app
    PromptZero: AI prompt management: Workspaces

    T/05

    Workspaces

    Prompts organized by project or team, with a default workspace and a description for each space.

    • Create, edit and remove workspaces
    • Default workspace per user
    • Clear separation between contexts
  6. prompt zero / CategoriesLive app
    PromptZero: AI prompt management: Categories

    T/06

    Categories

    Color-coded categories to spot prompts at a glance, created from a ready palette or a custom color.

    • Ready palette or hex color
    • Inline edit and delete
    • Filter by category in the library
  7. prompt zero / Sign inLive app
    PromptZero: AI prompt management: Sign in

    T/07

    Sign in

    Sign in and sign up with the product's visual identity. Sessions use access and refresh tokens with rotation and reuse detection.

    • httpOnly cookies against XSS
    • Brute force protection and rate limiting
    • Redirects to the browser's language

PromptZero screens running locally with the project's own demo data.

§ And there is more

  • +01

    A/B experiments

    Two variants side by side, configurable traffic split, voting and results with win rate and confidence.

  • +02

    Public explore

    Public prompts browsable without login, filtered by language, model and popularity, and forkable into your account.

  • +03

    Observability

    Metrics in Prometheus, structured logs in Loki and OpenTelemetry traces in Tempo, all correlated in Grafana.

  • +04

    Quality

    Jest and Vitest for unit tests, Supertest and Playwright for E2E, zero lint errors and strict TypeScript.

  • +05

    Deploy

    Docker Compose to run everything, GitHub Actions on every push and automated Railway deploys with migrations.

  • +06

    Security

    Per-route rate limiting, AES-256-GCM encryption of API keys and OWASP practices.