惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
博客园 - Franky
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog
爱范儿
爱范儿
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
leaf : Terminal Markdown previewer — GUI-like experience.
RivoLink · 2026-05-31 · via Hacker News: Show HN

Markdown, beautifully rendered
in your terminal

A terminal-based Markdown previewer with a GUI-like experience. Rich rendering, interactive navigation, and editor integration — all without leaving your terminal.

leaf

════

Terminal Markdown previewer — GUI-like experience.

leaf lets you read Markdown files directly in the terminal with a clean, focused interface. Designed for developers, CLI users, and AI-assisted workflows.

Usage

─────

bash

12345

leaf README.md# Open a file

leaf -w README.md# Watch mode

leaf# Fuzzy picker

leaf --picker# Directory browser

cat file.md | leaf# Stdin

leaf leaf-summary.md ⟳ watch ctrl+e edit · ctrl+f find · t toc · ? help · q quit

Why leaf ?

Leave your terminal to preview?

Previewing Markdown shouldn't mean switching to a browser or a heavy GUI app.

Web viewers are overkill

For a quick preview, you don't need a full web application with login and setup.

CLI tools lack interactivity

Existing terminal tools dump Markdown as plain text — no navigation, no search, no style.

Syntax highlighting

Beautiful code blocks with syntax coloring for 40+ languages. Line numbers, decorative frames, and language labels included.

Syntax highlighting

Table rendering

Markdown tables rendered with Unicode box-drawing borders, column alignment, and inline code support.

Table rendering

LaTeX math

Inline and block math formulas converted to Unicode symbols — no external renderer needed.

LaTeX math

Mermaid diagrams

Flowcharts, sequence diagrams, and pie charts rendered as ASCII art directly in the terminal.

Mermaid diagrams

Watch mode

Auto-reload when the file changes on disk. Scroll position is preserved. Toggle with -w flag or press w.

Watch mode

Editor integration

Press Ctrl+E to open in your editor. leaf detects vim, nano, VS Code, and more — reloads preview on return.

Editor integration

File picker

Fuzzy finder with Ctrl+P or directory browser with --picker. Scan and open any Markdown file instantly.

File picker

Table of contents

Sidebar TOC with heading hierarchy and active section tracking. Toggle with t, jump with 1-9.

Table of contents

Full-text search

Press / to search. Matches are highlighted with a counter. Navigate with n/N.

Full-text search

Keyboard navigation

Vim-like keybindings — j/k, d/u, g/G. Mouse scroll and scrollbar click supported too.

Keyboard navigation

Theme picker

4 built-in themes — Arctic, Forest, Ocean, Solarized-Dark. Live preview with Shift+T.

Theme picker

Everything you need

Syntax Highlighting

40+ languages with beautiful color themes.

4 Built-in Themes

Arctic, Forest, Ocean, Solarized-Dark with live preview.

Full-text Search

Find anything with highlighted matches and keyboard navigation.

TOC Sidebar

Interactive table of contents with active section tracking.

Stdin Support

Pipe output from any tool — claude, aichat, cat — directly into leaf.

Secure Auto-update

One-command update with SHA256 verification.

Install in seconds

Built for developers

Preview AI output

Pipe output from Claude, ChatGPT, or any AI tool directly into a beautiful preview.

$ claude "explain Rust" | leaf

Read docs while coding

Preview your README, CHANGELOG, or any docs with live reload as you edit.

$ leaf --watch README.md

Explore Markdown projects

Open fuzzy finder, navigate directories, and preview any Markdown file instantly.

$ leaf

Frequently Asked Questions

What platforms does leaf support?

leaf runs on macOS (Intel & Apple Silicon), Linux (x64 & ARM), Windows, and Android via Termux.

How do I update leaf?

Run `leaf --update` — it downloads the latest release and verifies it with SHA256.

Can I customize the appearance?

Yes! leaf ships with 4 themes (Arctic, Forest, Ocean, Solarized-Dark). Switch with Shift+T or set a default in config.toml.

Does leaf support piping from stdin?

Absolutely. Pipe any Markdown content: `cat notes.md | leaf` or `claude "explain X" | leaf`.

Is leaf open source?

Yes, leaf is MIT licensed and hosted on GitHub.

Try leaf now

Install in one command and start previewing Markdown in your terminal.

$ curl -fsSL https://leaf.rivolink.mg/install.sh | sh