Document Canvas
A CLI client-agnostic WYSIWYG editor and review engine for Markdown, HTML, and raster images, connecting browser edits and passage-anchored comments directly to Claude Code, Codex, or Antigravity.
Reviewing a report in a terminal diff is awkward. I want to read the page, change a sentence, or point at a passage and ask an agent to fix it.
Document Canvas does that with local files and whichever coding agent I’m using. It opens Markdown, HTML, and images in a browser, with an optional terminal drawer for Claude Code, Codex, or Antigravity.
How it works
Keep competing edits visible in WYSIWYG
Each prose edit includes the revision of the passage I changed. If an agent changed a different passage, the save can be rebased. If we changed the same passage, Canvas preserves the draft and shows a conflict.
That makes shared editing practical while keeping disagreements visible. Recoverable snapshots and image history let me inspect earlier versions.
Point, comment, revise in lazy mode
Select a passage and leave feedback. Canvas keeps the reviewed text and revision with the comment, then queues it for an agent to claim and address. The agent replies with what changed; I decide whether to resolve the thread.
Shared engine
Reports Pipeline uses the review engine for its human checkpoints.
Niu Prototyper uses the shared terminal engine for reviewing live interfaces.
Stack
| Part | Tool |
|---|---|
| Review server and block reconciler | Python 3.10+ (standard library HTTP server and parser) |
| Comments, batches, and write journal | SQLite and .document-canvas/history/ snapshots |
| Browser editor | Vanilla JavaScript and CSS (WYSIWYG prose, source blocks, passage highlights) |
| Raster image editing | Pintura |
| Terminal drawer | Node.js, tmux, node-pty, ws, and xterm.js |