Desktop App Productivity ★ 2,495 stars on GitHub

leaf

Preview Markdown files and inspect code changes directly inside your command-line terminal with a smooth graphical feel.

Guide and Overview

What it does in plain English

Leaf brings a comfortable, graphical-style preview experience right into your command-line interface. It renders rich Markdown text, math formulas, code snippets, and diagrams with clean formatting and live auto-reload as you type. You can also browse project file histories, search through your documents instantly, and review code changes side-by-side without leaving your terminal.

Who it’s for

  • Writers and technical documentation creators who want to review documents instantly without opening heavy applications.
  • Developers and system administrators who love working entirely inside the command-line terminal.
  • AI workflow users who generate text files with artificial intelligence tools and want a live-updating preview screen.

Key features

  • Live auto-reload: Automatically updates the document view whenever the source file is saved.
  • Git diff inspection: Explore code changes and file histories with syntax highlighting and side-by-side views.
  • Fuzzy file picker: Quickly find and open documents using fast keyword searches.
  • Rich formatting support: Renders tables, task lists, code syntax highlighting, math formulas, and charts.
  • Custom themes: Personalize colors easily using simple configuration files.

How to install (Download)

You can download the application directly for Windows using the official installer below:

You can also install it via popular package managers like Homebrew (brew install leaf-markdown-viewer), Cargo (cargo install leaf-markdown-viewer), or npm (npm install -g @rivolink/leaf).

Pros and Cons

  • Pros: Extremely fast and lightweight, works completely offline, supports live auto-reload, and offers rich text formatting inside text terminals.
  • Cons: Requires a terminal environment to run, and Windows users may need to install the Microsoft Visual C++ runtime if not already present.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.