{"id":47605361,"url":"https://github.com/mxcoppell/mdp","last_synced_at":"2026-04-01T19:11:40.069Z","repository":{"id":345084922,"uuid":"1182887519","full_name":"mxcoppell/mdp","owner":"mxcoppell","description":"CLI tool that renders Markdown files in a native frameless macOS window with live reload, syntax highlighting, KaTeX math, and Mermaid diagrams. Designed for terminal-only agents like Claude Code.","archived":false,"fork":false,"pushed_at":"2026-03-18T02:20:22.000Z","size":1238,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-18T05:41:01.005Z","etag":null,"topics":["claude-code","cli","developer-tools","goldmark","katex","live-reload","macos","markdown","markdown-previewer","mermaid","native","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://github.com/mxcoppell/md-preview-cli","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mxcoppell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T03:53:35.000Z","updated_at":"2026-03-18T02:20:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mxcoppell/mdp","commit_stats":null,"previous_names":["mxcoppell/md-preview-cli"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mxcoppell/mdp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcoppell%2Fmdp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcoppell%2Fmdp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcoppell%2Fmdp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcoppell%2Fmdp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxcoppell","download_url":"https://codeload.github.com/mxcoppell/mdp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcoppell%2Fmdp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","cli","developer-tools","goldmark","katex","live-reload","macos","markdown","markdown-previewer","mermaid","native","syntax-highlighting"],"created_at":"2026-04-01T19:11:39.604Z","updated_at":"2026-04-01T19:11:40.061Z","avatar_url":"https://github.com/mxcoppell.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/dock-icon.png\" width=\"128\" height=\"128\" alt=\"mdp icon\"\u003e\n\u003c/p\u003e\n\n# mdp\n\nA CLI tool that renders markdown files in a native frameless macOS window. Designed for terminal-only agents like Claude Code.\n\n## Features\n\n- Native frameless window with rounded corners and shadow\n- CommonMark + GFM rendering with syntax highlighting (Chroma)\n- KaTeX math and Mermaid diagram support (lazy-loaded)\n- Live reload on file changes (fsnotify + polling fallback)\n- Multi-window support — each file opens in its own window (re-opening brings existing window to front)\n- Table of contents sidebar\n- Dark/light/system theme with CSS custom properties\n- Vim-inspired keyboard shortcuts\n- Pipe from stdin for fire-and-forget previews\n\n## Install\n\n### Homebrew (macOS)\n\n```bash\nbrew tap mxcoppell/tap\nbrew install mdp\n\n# Upgrade to latest version\nbrew update \u0026\u0026 brew upgrade mdp\n```\n\n### Build from source\n\nRequires Go 1.24+ and macOS (CGO + Cocoa).\n\n```bash\ngit clone https://github.com/mxcoppell/mdp.git\ncd mdp\nmake deps    # download vendored JS dependencies (first time only)\nmake build   # debug build → ./bin/mdp\n```\n\n## Usage\n\n```bash\n# Preview a file with live reload\nmdp README.md\n\n# Preview multiple files (each in its own window)\nmdp doc1.md doc2.md\n\n# Pipe from stdin\necho \"# Hello World\" | mdp\ncat README.md | mdp\n\n# Options\nmdp --theme dark README.md\nmdp --toc README.md\nmdp --browser README.md    # open in system browser instead\n```\n\n## Keyboard Shortcuts\n\n| Key | Action |\n|-----|--------|\n| `j` / `k` | Scroll down / up |\n| `n` / `p` | Next / previous heading |\n| `]` | Toggle table of contents |\n| `Cmd+F` | Search |\n| `T` | Toggle theme |\n| `+` / `-` | Zoom in / out |\n| `0` | Reset zoom |\n| `h` | Show shortcuts |\n| `Esc` | Close window |\n\n## Build\n\n```bash\nmake build     # debug build with symbols (~21 MB)\nmake release   # stripped release build (~16 MB)\nmake test      # run all tests\nmake clean     # remove build artifacts\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxcoppell%2Fmdp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxcoppell%2Fmdp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxcoppell%2Fmdp/lists"}