展示 HN:Marky – 一个轻量级的 Markdown 查看器,用于代理编码。
Show HN: Marky – A lightweight Markdown viewer for agentic coding

原始链接: https://github.com/GRVYDEV/marky

## Marky:一款快速、原生的 macOS Markdown 查看器 Marky 是一款轻量级且高效的桌面 Markdown 查看器,基于 Tauri v2、React 和 markdown-it 构建,旨在提供流畅的阅读体验。它优先考虑速度,并美观地渲染 Markdown 功能,例如表格、代码块(通过 Shiki 和 VS Code 主题进行语法高亮)、数学公式(KaTeX)、图表(Mermaid)和 GFM 元素。 主要功能包括:**实时重新加载**,以便在编辑时立即更新;**文件夹工作区**(Obsidian 风格),具有持久的侧边栏访问;以及**命令面板**,用于快速文件搜索。Marky 是**CLI 优先**的,可以直接从终端使用文件或文件夹启动。 目前仅支持 macOS ARM,计划支持 x86 macOS 和 Linux。它是一个小型(小于 15MB)且安全的应用程序,使用 DOMPurify 对 HTML 进行清理。目前通过 `brew` 安装,但已签名二进制文件正在等待 Apple 审核。该项目欢迎贡献,详情请参见 GitHub 仓库。

## Marky:适用于人工智能代理时代的 Markdown 查看器 GRVYDEV 分享了 **Marky**,这是一款新的轻量级桌面应用程序,旨在方便地查看和跟踪 Markdown 文件——随着代理编码和人工智能生成文档的兴起,这项任务变得越来越普遍。 由于对现有工具(如 Obsidian)的限制以及基于终端查看器的可读性感到沮丧,GRVYDEV 构建了 Marky,它具有简单的界面和方便的 CLI,以便快速访问文件。 开发者计划未来增加与人工智能编码工具(Claude、Codex)集成以及本地 Git diff 审查器的功能。 演示视频可在 [这里](https://www.youtube.com/watch?v=nGBxt8uOVjc) 观看。 另一位用户的早期反馈赞赏这款工具,但也指出已经存在优秀的(但商业的)替代品,例如 Typora。 Marky 使用 Tauri 构建。 GRVYDEV 欢迎 Hacker News 社区的反馈和功能建议。
相关文章

原文

A fast, native markdown viewer for macOS built with Tauri v2, React, and markdown-it. Beautiful rendering of tables, code blocks, task lists, math, and diagrams — with live reload.

Stars Badge Forks Badge

View DemoInstallRequest Features

Marky screenshot

  1. About The Project
  2. Install
  3. Usage
  4. Keyboard Shortcuts
  5. Development
  6. Built With
  7. Roadmap
  8. Contributing
  9. Contact Me

Marky is a desktop markdown viewer designed for one thing: opening .md files from the terminal and getting beautiful, instant rendering. Launch it with marky FILENAME to view a file or marky FOLDER to open a folder as a persistent workspace (Obsidian-style). Files reload live as they change on disk — perfect for viewing Claude-generated plans, documentation, or notes as they're being written.

  • CLI-firstmarky README.md opens a window. marky ./docs/ opens a folder.
  • Live reload — edits on disk (from your editor, Claude, etc.) update the view instantly.
  • Folders — add folders as persistent workspaces (Obsidian-style). They appear in a sidebar and restore on launch.
  • Cmd+K command palette — fuzzy-search files across all open folders, powered by nucleo.
  • Syntax highlightingShiki with VS Code themes for accurate, beautiful code blocks.
  • Math — KaTeX rendering for $inline$ and $$display$$ math.
  • Mermaid diagrams — fenced mermaid blocks render as SVG.
  • GFM — tables, task lists, strikethrough, autolinks, footnotes.
  • Light & dark themes — follows system preference or toggle manually.
  • Sanitized rendering — all HTML is run through DOMPurify. Safe to view untrusted markdown.
  • Small & fast — native webview, no Electron. Production .dmg is under 15 MB.

NOTE: I am currently waiting for apple developer review so for the time being the app is not signed. This will be fixed soon.

brew tap GRVYDEV/tap
brew install --cask GRVYDEV/tap/marky
# This is temporary until I can sign the binary
xattr -cr /Applications/Marky.app

Requires Rust, Node.js, and pnpm.

git clone https://github.com/GRVYDEV/marky.git
cd marky
pnpm install
pnpm tauri build
./scripts/install-cli.sh

The install script symlinks marky to ~/.local/bin/. Make sure that's on your PATH:

# bash/zsh
export PATH="$HOME/.local/bin:$PATH"

# fish
set -Ux fish_user_paths $HOME/.local/bin $fish_user_paths
# Open a single file
marky README.md

# Open a folder as a workspace
marky ./docs/

# Open with no args — restores your last session
marky
Shortcut Action
Cmd+K Command palette (fuzzy file search)
Cmd+O Open file
Cmd+Shift+O Add folder
Cmd+F Search in page
pnpm install
pnpm tauri dev       # dev server with HMR
# Frontend
pnpm test

# Rust
cd src-tauri && cargo test
src-tauri/       Rust backend — CLI, file I/O, file watching, folder registry, fuzzy search
src/             React frontend — markdown pipeline, UI components, theme
src/components/  App components (Viewer, Sidebar, CommandPalette, etc.)
src/components/ui/  shadcn/ui primitives
src/lib/         Core logic (markdown-it config, Shiki, Tauri IPC wrappers)
src/styles/      Tailwind base + markdown prose styles
scripts/         Install helpers
  • x86 & Linux support — currently macOS ARM only; expanding to x86 macOS and Linux
  • Built-in AI chat — chat with Claude Code or Codex directly inside your markdown documents
  • Git diff review — view and review local git diffs without leaving the app

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch: git checkout -b feature/AmazingFeature
  3. Commit your Changes: git commit -m 'Add some AmazingFeature'
  4. Push to the Branch: git push origin feature/AmazingFeature
  5. Open a Pull Request

Before submitting a PR:

  • Run pnpm test and cd src-tauri && cargo test
  • Run pnpm typecheck
  • Actually open a markdown file with pnpm tauri dev and verify it renders correctly

GitHub @GRVYDEV  ·  Twitter @grvydev

联系我们 contact @ memedata.com