Markdown,
marked up.

Paraph is a self-hosted, real-time Markdown editor where people and AI agents propose changes as redlines, reviewers sign off in the margin, and the source stays plain Markdown in one Rust binary.

v0.1.0 AGPL-3.0

PlatformRFCs

RFC-014: Snapshot compaction

In review ยท v4 approved
2 open suggestions

Compaction policy

Active rooms buffer CRDT updates in memory and flush every 500 msflush every 250 ms or at 64 KiB before writing to SQLite WAL or PostgreSQL.

After 200 persisted updates, Paraph compacts the room, switching to a shallow snapshot once it is idle and above 10 MiB. Sign-off attestations survive compaction.

Compacted snapshots are readable by any workspace membermembers of this document.

Built like a native tool, not SPA bloat.

One Rust core runs on the server and, compiled to WebAssembly, in every browser tab. The same code validates a redline on both sides of the wire.

Deploy unit
1binary
Web client and WASM embedded with rust-embed.
Cold room load
1 to 3ms
Last snapshot plus the updates since compaction.
Idle memory
~24MB RSS
Rooms leave memory after five idle minutes.
Runtime dependencies
0Node or Redis
Browser tab Tiptap, CodeMirror 6 paraph-core.wasm, Loro, IndexedDB AI agents and scripts Streamable HTTP or stdio POST /mcp, paraph mcp WebSocket JSON-RPC paraph serve Axum, Loro CRDT rooms, OIDC, /admin, /metrics paraph-core (native) SQLite WAL or PostgreSQL FTS5 or Postgres full text Git work tree paraph git-sync, tar.zst backups
Loro CRDT with IndexedDB
Open tabs keep unsent edits in IndexedDB and replay them on reconnect.
SQLite WAL or PostgreSQL
One SQLite file by default; set db.url to use PostgreSQL instead.

Review for Markdown, without leaving Markdown.

Wikis render Markdown but cannot redline it. Docs can redline but lose the source. Pull requests keep the source but review line by line. Paraph does the review on the prose and keeps the file.

Criterion Paraph HedgeDoc Outline Google Docs GitHub PRs
Lossless rich and raw Markdown Both, same document Raw with preview Rich, Markdown import Rich only Raw with preview
Suggesting mode with validated redlines Server-validated No No Yes Line suggestions
AI agents propose via /mcp Suggest-capped tokens No No redlines No Agents open PRs
Staleness-aware sign-off Pinned to a version No No Approvals, paid plans Dismiss stale reviews
Bidirectional git-sync Conflicts become redlines Export only Export only No Native
Folders and [[wikilinks]] With backlinks Flat notes Collections, backlinks Drive folders Directories
Self-hosted ops One binary, SQLite Node.js and a database Node.js, Postgres, Redis Hosted only Enterprise Server

Give agents a red pen, not the keys.

Every token carries a role ceiling and a scope, so an agent’s work can wait in the margin for a person.

security-reviewer suggest
Scope
One document, RFC-014
Can
Read, comment, propose redlines
Cannot
Write with mode: "edit", resolve, share
release-notes-bot edit
Scope
Team @platform
Can
mode: "edit", guarded by expectedFrontiersHash
Audit
Sharing and review calls logged with the token id
  • doc_outline
  • doc_patch_section
  • suggestions_list
  • comment_reply
  • version_diff
  • review_request
{
  "mcpServers": {
    "paraph": {
      "type": "http",
      "url": "https://docs.example.com/mcp",
      "headers": {
        "Authorization": "Bearer ${PARAPH_TOKEN}"
      }
    }
  }
}

Create the token at /settings/tokens.

Up in sixty seconds, yours for good.

Upgrades are a new image or a new binary. The sample Caddyfile in deploy/ handles HTTPS.

Sign in your way
OIDC with PKCE (Authentik, Keycloak, Pocket ID, Google) and group sync to @teams, or email and password.
Docs that live in Git too
paraph git-sync --repo ./handbook --push pulls file edits in losslessly and turns conflicts into redlines.
Writing, not fighting
Type / for blocks, KaTeX math, Mermaid diagrams, tables and code with highlighting. Templates for RFCs, ADRs, postmortems and meetings.
Leave whenever
paraph backup writes a verified .tar.zst. paraph export-all hands you plain Markdown.
git clone https://github.com/mr-karan/paraph && cd paraph &&
ADMIN_PASSWORD=$(openssl rand -hex 24) &&
(set -C; umask 077; 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=$ADMIN_PASSWORD
EOF
) && docker compose --env-file deploy/.env \
  -f deploy/docker-compose.sqlite.yml up -d

Listens on 127.0.0.1:8080.

Mark up the next draft together.