All shelves / Mods / Review
doc-preview
By radumarias
doc-preview is a Claude Code review mod by radumarias.
Draws a Preview band above the prompt when Claude writes a Markdown or Mermaid file or a mermaid block, and opens it in a side panel with the diagrams drawn.
Draws
Install
The marketplace name is xorio.
/plugin marketplace add radumarias/xorio-claude-plugin /plugin install doc-preview@xorio
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.2.0
- License
- MIT
- Repo stars
- 3
- Last change
- 2026-10-20
What it can reach
- Draws in the session
- Reads this turn's file edits
- Calls another program on this machine
Built and tested against Claude Code 2.1.291; the author says the function-hooks API is early access and may change between releases. The panel and band show in the terminal, the desktop app, and Claude Code for VS Code, not in the web app at claude.ai/code. Diagrams show as images in the desktop app, and in kitty or Ghostty with resvg, rsvg-convert, or mmdc installed; elsewhere mermaid-ascii draws them as text, and without it the diagram's source shows with a hint to press b. Run /reload-plugins after installing one of those tools. Paths with any other extension are refused, so a secrets file such as .env is never shown.
The marketplace, xorio, also holds the xorio plugin, whose /xorio:preview command this mod answers; without xorio, the mod registers plain /preview instead. Reading Claude's docs and diagrams is why this page files it under review. md-preview, by hamzafer, draws the before and after of a Markdown edit beside the session, rendered the way GitHub does. mdview, by xuanji86, opens a clicked Markdown path as a rendered pane. This one also takes plan-mode plans and mermaid blocks in replies, and draws Mermaid with pele, a renderer vendored in the mod. In the panel, w and n change its width, z goes full screen, f opens the file picker, and b writes a page to ~/.cache/claude-doc-preview/ and opens it in your browser, which loads marked, DOMPurify, and pele from jsDelivr. A shown file reloads by itself when Claude edits it.
Demo

What it hooks into
session.startWhen a session startsconfig.setA Claude Code eventcommand.runWhen you run its slash commandtool.callAround a tool call, where it can hold oneWriteEditsession.appendWhen an entry is written to the transcriptui.renderDraws into the sessionAbovePromptPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- radumarias
- Category
- Review
- Marketplace
- xorio
- Folder
- mods/doc-preview
- Version
- 0.2.0
- License
- MIT
- Repo stars
- 3
- Last change
- 2026-10-20
- Language
- TypeScript
- Files
- 25