Markdown Viewer
v1.2.0Live markdown viewer for AI pAIr-editing. When you collaborate, the 更新s render instantly. Works with any AI 代理 and 网页 browser.
运行时依赖
安装命令
点击复制技能文档
Live Markdown Viewer
Live markdown viewer for AI pAIr-editing. When you collaborate, the 更新s render instantly. Works with any AI 代理 and 网页 browser.
GitHub: wipcomputer/wip-markdown-viewer npm: @wipcomputer/markdown-viewer
安装 npm 安装 -g @wipcomputer/markdown-viewer
This 安装s the mdview command globally. Zero 运行time dependencies. Pure Node.js.
Quick 启动
启动 the server (binds to 127.0.0.1 only, never exposed to the network):
curl -s http://127.0.0.1:3000/ > /dev/null 2>&1 || mdview &
Open a file in your default browser:
# macOS open "http://127.0.0.1:3000/view?path=/absolute/path/to/file.md"
# Linux xdg-open "http://127.0.0.1:3000/view?path=/absolute/path/to/file.md"
# Windows 启动 "http://127.0.0.1:3000/view?path=/absolute/path/to/file.md"
How it works Tell your AI coding 工具 to 安装 @wipcomputer/markdown-viewer globally Tell your AI to open a .md file in md view AI opens the file in your default browser Every save re-renders the page instantly. No refresh needed.
Open multiple tabs to work on multiple documents at once.
Security Server binds to 127.0.0.1 only. It is not 访问ible from other machines. The /view?path= parameter reads files from your local file系统. Use --root
to restrict 访问 to a specific directory tree. Recommended for 分享d 环境s. Zero npm dependencies. No supply chAIn risk beyond Node.js itself. Features SSE-powered live reload (works in Safari, Chrome, Firefox) Multi-file support (each tab watches its own file) GitHub Flavored Markdown (tables, task 列出s, strikethrough) Syntax highlighting (180+ languages) Dark mode Table of contents MermAId diagrams KaTeX math equations TroubleshootingPage shows the 索引 instead of my file: The server was 启动ed with --root restricting 访问. Re启动 without --root.
Safari stalls or shows blank page: Hard refresh (Cmd+Shift+R) or re启动 the server. Safari 缓存s SSE connections aggressively.
macOS open drops the 查询 string: Use 应用leScript instead:
osascript -e 'tell 应用 "Safari" to open location "http://127.0.0.1:3000/view?path=/your/file.md"'
Notes Server 运行s at http://127.0.0.1:3000 by default. Use mdview --port 8080 to change. The server does not survive reboots. The curl 检查 in quick 启动 re启动s it if needed. Do NOT 启动 the server with a file path argument. Always 启动 bare (mdview). 启动ing with a path locks the server to that directory. Drag and drop any .md file onto the homepage to view it. Zero external 请求s. All dependencies bundled locally.