
What it isRead PDFs, Markdown and web pages in the terminal, review diffs, select text and ask the agent
Why it grewChinese blogger Ding's Rex plugin post (47K views) named it, and the author quote-posted it right away
What to takeRaced to build a native plugin for the new platform during its closed beta, tagged the platform in every post, so even a small account borrowed its traffic

| Similar product | How it differs from this one |
|---|---|
| glowRenders Markdown in the terminal, 28K stars | Markdown only, no PDF or diff, no agent connection |
| tdfTerminal PDF viewer, about 2,000 stars | PDF only; leaf converts PDFs into selectable text |
| tuicrTerminal code review TUI, about 3,600 stars | Diff review only; leaf adds doc reading, a PR list and plan review |
| plannotatorAnnotates agent plans, about 12K stars | It started earlier and is 45x bigger; leaf puts the same thing in a terminal pane |
Can it hold?Can't be defended: MIT open source, and every feature has a bigger counterpart; all that's left is first-mover goodwill in the Rex circle
Created the repo, published to crates.io the next day, only reading PDFs and Markdown in the terminal ↗
Demo video on X: 607 likes, 29K views; only 64 stars by 11-05 ↗

Added GitHub diff viewing and line comments, starting the shift toward code review; post got 588 views ↗
v0.9 became a native Rex plugin and tagged the official account: 20K views, +18 stars the next day ↗

Added a PR viewer (24K views) and started shipping prebuilt binaries; got first sponsor ↗

"leaf + Rex" screenshot post got 17K views; plan and change review launched the same day ↗
Ding's Rex plugin post named leaf (47K views), and the author quote-posted it right away ↗

Logged +83 stars that day, 265 total; another terminal, Termy, put it in its onboarding ↗
After leaf open paper.pdf, the terminal shows only the body text and a line with the page number. The PDF isn't pasted in as an image but converted to reflowed text: headings are detected by font size, paragraphs are rejoined, and figures are still drawn. So you can drag to select, highlight, search, and read aloud, and it reopens where you left off. EPUB, Markdown, web articles and arXiv links all work the same way.
The second step is its main selling point now: select a passage, press @, type a question, and leaf stuffs the file name, line numbers, context and question into Claude Code, Codex or opencode in the neighboring pane. leaf diff and leaf pr move the same action to code changes and PRs; Margin, which shipped 11-14, goes a step further: when the agent hands over a plan, it pops up in leaf first, and the human annotates it section by section, then approves or sends it back.
On launch day someone replied: "Can it work as a Claude Code plugin? That would be insane." Another user said they'd been using a Neovim plugin to review branches, "yours looks really polished," then asked whether a batch of annotations could be sent to the agent at once. A few days later that became Margin. Plenty of replies praised the design too. By contrast, posts about read-aloud and drawing on PDFs got only a few hundred views and no replies.
The launch post got 607 likes and brought fewer than 60 stars, and growth nearly stalled for the next two weeks. From 11-11 he made leaf a native Rex plugin and tagged the official Rex account in almost every post after that: five posts got 17K–27K views each, and stars went from 67 to 265. Rex is a terminal built by Superlogical, the new company from Ghostty's author; it has been in invite-only beta since early October, and users are hunting for plugins everywhere. At midday on 11-15 the Chinese blogger Ding posted a Rex plugin recommendation naming just two, leaf being one, with 47K views; the author thanked him in Chinese and quote-posted it an hour later for another round.
There are three discounts. One, the total is small: 265 stars, 15 forks. Two, the prebuilt binaries were downloaded about 1,200 times in four days, but that includes multiple platforms and repeated upgrades, so real users are far fewer. Three, the buzz belongs to Rex: under the posts some people are asking for invite codes and others say they're "still on the waitlist," so until Rex opens up, the pool is only this big.
It makes no money. MIT open source, no paid option anywhere on the site, only GitHub Sponsors, and the first sponsor came on 11-12. It looks more like the author's portfolio.
What you can copy is the sequence: build a single-purpose tool first, then fix on a platform that has just opened its beta and whose users are hunting for plugins, race to make it a "native integration," and tag the platform in every release post. Same product, same account of about 600 followers (estimated), and after doing this the cost of acquiring each star dropped by an order of magnitude. What to avoid: don't treat this as demand validation, since what grew was stars, not revenue; and you're betting on someone else's platform. Rex's plugin list already has around ten review and preview tools, and if the team builds its own, there's no room left for leaf.

