Papi

Swagger, but better

Papi does the job OpenAPI does: it describes an HTTP API. It adds the things OpenAPI never had. A review workflow. A diff that understands schemas. Comments that survive the next version. A mock server that answers real requests.

A schema is one line

Objects, arrays, unions, optional attributes and references to named entities, in a grammar you can read out loud. The whole schema is one string.

Papi
{id:number,customer:Customer,tags?:[string]}
OpenAPI
type: object
required: [id, customer]
properties:
  id:
    type: number
  customer:
    $ref: '#/components/schemas/Customer'
  tags:
    type: array
    items:
      type: string

A spec change is a pull request

Nothing lands because someone committed it. A change opens as a candidate against the current version, gets read, argued over and approved, and only then merges into a version of its own.

  1. 1

    Open

    A candidate carries one draft version, edited in place. There is no per-edit history to wade through.

  2. 2

    Review

    Threads sit beside the thing they are about. A reordered object never asks to be reviewed.

  3. 3

    Approve

    One thumbs up per reader, and never the author's own.

  4. 4

    Merge

    An admin promotes the draft, and it becomes the published version everyone reads.

A change, read by the tool

One candidate against the version it came from, laid out the way Papi lays it out.

v3
rc4
1 {
2 id: number
3 email: string
4 status: string
5 legacyRef: string
6 }
1 {
2 id: number
3 email: string
4 status: Status
5 trialEndsAt?: string
6 }

status went from a bare string to a named entity, legacyRef is gone, and an optional attribute arrived. The blank rows are the diff holding both columns in step, so a line and the line it replaced sit level with each other.

A thread anchored to a line

[email protected] Author 4 Sep 2026
Making status an entity means every endpoint that returns one moves together. That is the point, but it is a breaking change for anyone parsing the string.
[email protected] 5 Sep 2026
Agreed. Worth its own version rather than riding along with the trial field.

The thread is fixed to that line of that response, by what it is rather than by a row id. Cutting a new version copies every record and gives it fresh ids; the thread is still on the line it was about.

The spec answers

$ curl "…/candidates/rc4/customers/42"
{ "id": 0, "email": "abc", "status": { "code": "abc" }, "trialEndsAt": "abc" }

The declared responses are a running mock server. A published version serves under its own URL and so does an open candidate, so this proposal is callable while it is still being argued about.

Free to start

  • 2 projects, the sample included
  • 10 endpoints and 10 entities per version
  • 30 candidates per project
  • 10 members, counting the invited

It never expires. Need more? Write to me