Paraph

Review Markdown documents together.

Paraph is a self-hosted editor for Markdown, where people and AI agents suggest edits, comment, and approve.

Self-host Paraph View on GitHub

Try it: accept or reject a suggestion.

Platform / RFCs
Approved by Priya Nair
3 suggestions

RFC-031: Rate limits for the public API

The public API has no request limits. One client that retries in a tight loop can slow search for everyone. We cannot tell it to back off.

Priya Nair

How often does this happen?

Tomas Berg

Twice last quarter. @platform has the incident notes.

Limits

Each API token may send 100300 requests per minute. A request over the limit gets a 429 response with a Retry-After header.

Tomas Berg

Replace “100” with “300”

Limits apply per token, and per source IP for requests without a token.

security-reviewer

Add “, and per source IP for requests without a token”

Internal services call the API with their own tokens. They keep the current behavior until each team opts in.

Rollout

Enable the limiter for every token on the first dayin log-only mode for a week, then enforce it.

Tomas Berg

Replace “for every token on the first day”

Suggestions

In Suggesting mode, each edit shows as an insertion or a deletion. Someone with edit access accepts or rejects each one, or all at once.

Comments

Comments stay next to the text they discuss. Mention people with @user and teams with @team.

Approvals

A reviewer approves the document, and Paraph records the exact version. When the document changes, the approval shows as outdated, with a diff since approval.

Rich text and Markdown

Write in the rich editor, or switch to the Markdown source. Both edit the same document, so comments and suggestions stay when you switch.

Git sync

Each document maps to a Markdown file in a Git repository. Run paraph git-sync, and a Git edit that conflicts with a document change arrives as a suggestion.

AI agents

Paraph serves MCP over HTTP at /mcp. Create a token with Suggest access at /settings/tokens, then add Paraph to your client.

A Suggest token cannot accept or reject suggestions, even on documents you own. Clients that only speak stdio can run paraph mcp.

MCP and agents guide

{
  "mcpServers": {
    "paraph": {
      "type": "http",
      "url": "https://docs.example.com/mcp",
      "headers": { "Authorization": "Bearer ${PARAPH_TOKEN}" }
    }
  }
}

Self-hosting

Paraph is one Rust binary with the web app inside. Run it with Docker Compose and SQLite:

git clone https://github.com/mr-karan/paraph && cd paraph
cat > deploy/.env <<'EOF'
PARAPH__APP__PUBLIC_URL=https://docs.example.com
PARAPH__AUTH__LOCAL_ADMIN_EMAIL=admin@example.com
PARAPH__AUTH__LOCAL_ADMIN_PASSWORD='replace-with-a-generated-password'
EOF
chmod 600 deploy/.env
docker compose --env-file deploy/.env -f deploy/docker-compose.sqlite.yml up -d

Paraph listens on 127.0.0.1:8080. Add a TLS reverse proxy in front. deploy/Caddyfile works as is.

For PostgreSQL, add POSTGRES_PASSWORD to deploy/.env, then use docker-compose.postgres.yml.

Or download a release binary for Linux (x86_64, arm64) or macOS (Apple silicon) from the releases page.

From source:

nix develop
just web-install && just release
PARAPH__AUTH__DEV_OPEN_ACCESS=true target/release/paraph serve

Open http://127.0.0.1:8080. Development access skips sign-in and works only on a loopback address.

Docs