Live Markdown Viewer
See your AI’s edits live as it writes. Real-time markdown preview in your browser. Works with any AI and any web browser.How It Works
- Tell your AI to install
@wipcomputer/markdown-viewerglobally - Tell your AI to open any .md file in the viewer
- Your AI opens the file in your browser
- Every save re-renders the page instantly. No refresh needed.
Install
For Your AI
Open your AI and say:npm
mdview command anywhere.
Options
Works With All Your AIs
This works with any AI that can run shell commands and edit files.| AI App | Instruction file | How to add support |
|---|---|---|
| Claude Code | CLAUDE.md | Add the snippet below to your project’s CLAUDE.md |
| OpenAI Codex CLI | AGENTS.md | Add the snippet below to your project’s AGENTS.md |
| Cursor | .cursorrules | Add the snippet below to .cursorrules |
| Windsurf | .windsurfrules | Add the snippet below to .windsurfrules |
| OpenClaw | SKILL.md | Install the live-viewer skill |
| Any other AI | Whatever config it reads | Add the snippet below |
Features
- Live reload: SSE-powered, works in all browsers including Safari
- Multi-file: each tab watches its own file independently
- GitHub Flavored Markdown: tables, task lists, strikethrough
- Syntax highlighting: 180+ languages via highlight.js
- Dark mode: light and dark themes
- Table of contents: auto-generated from headings
- Mermaid diagrams: flowcharts, sequence diagrams, and more
- Math equations: KaTeX rendering for LaTeX
- Drag and drop: drop any .md file onto the homepage to view it
- Zero external requests: all dependencies bundled locally, no CDN calls
For Your AI
When the user asks you to set up the live markdown viewer, follow these steps.Step 1. Start the Server
If installed globally:http://127.0.0.1:3000 and stays running in the background.
Step 2. Add the Snippet to Your Project
Add the following to whatever instruction file your AI uses:Step 3. Every Time You Edit Markdown
- Run:
open "http://127.0.0.1:3000/view?path={absolute path to the file}" - Edit the file
- The user sees it update live in their browser
Security
- Server binds to
127.0.0.1only. It is not accessible from other machines. - Use
--rootto restrict file access to a specific directory tree.
Troubleshooting
Page shows the index instead of my file: The--root flag restricts which files can be viewed. Restart without --root to allow any path.
Safari shows a blank page or stalls: Safari aggressively caches SSE connections. Hard refresh with Cmd+Shift+R, or restart the server.