chenxiachan / textfold
git clone https://github.com/chenxiachan/textfold.git
v0.10.18 · 2d ago
Fold papers, web pages, files, and AI replies into five levels of detail. Zoom from an overview to the original text.
+4
stars, 24h · #3,264
+~28
stars, 7 days · #4,018
+405
stars, 30 days · #1,287
419
★ total · +7% this week
36
forks · 5 open issues
Star history (as recorded here)
LanguagePython
LicenseApache-2.0
Created2026-10-04 (18d ago)
Last push1d ago
Watchers2
OwnerUser
GitHub topics
Links
- GitHub: github.com/chenxiachan/textfold
- Homepage: https://chenxiachan.github.io/textfold/
- Releases · Issues · Hacker News mentions
README excerpt
# TextFold **Fold any text, from a one-screen map to every word** Formerly PaperFold **English** · 简体中文 **Paste a link:** any web page · arXiv · PubMed Central · bioRxiv · medRxiv · Wikipedia · GitHub **Drop files, one or several:** PDF · Word · PowerPoint · Excel · EPUB · HTML · CSV · pictures · Markdown · text **Try the demo →** or **download the app ↓** · What's new ↓ ## Read with less in your head Choose the level of detail you need, and lower your cognitive load. | | Level | Each paragraph becomes | In whose words | |:-:|---|---|---| | **1** | **Full** | the paragraph as written | the author's | | **2** | **Brief** | its one to three key sentences, verbatim | the author's | | **3** | **Key** | its point and the reason for it | AI, resting on the Brief sentences | | **4** | **Takeaway** | one line on the spine of its section | AI | | **5** | **Topic** | a few words; the text becomes a map of section cards | AI | ## Also for agent output Your agent writes more than you have time to read. A Claude Code mod folds every reply the same way, one key per level, and an extension does the same in Pi. More ↓ ## One fold, three places - **Read.** Paste a link or drop a file; it opens as a map of its sections that you zoom into. Get started ↓ - **Fold your agent's replies.** One key per level in Claude Code and in Pi, with no second model. In Claude Code and Pi ↓ - **Plug it into your workflow.** `python3 -m textfold get` hands your agent or script a document one level at a time, and an open format lets any program read and write folded text. For agents ↓ ## What you get - **Words that travel.** As you zoom, every word that stays slides to its new place and the rest fade around it. - **Zoom under your fingers.** Stop halfway, turn back, or open one paragraph alone. - **Beside the original.** Open a paper's or a PDF's own pages next to the text, each paragraph shown where it stands on its page. - **Ask AI about exactly what you read.** Select a passage, or ask about the whole text. The answer comes structured: the short answer first, then the evidence, each point citing the paragraph it rests on, one click away. - **Notes that zoom with the text.** Highlight and write in the margin; what you marked stays as you zoom out, and is saved with the page. - **Your language.** Read in many languages, translated sentence by sentence, with every formula as typeset. - **Your library, in order.** Search it with ⌘K, keep documents in folders (drag one in, or right-click it), and list it by kind, by when each came in, or by when you last opened it. Highlight and write in the margin… …and keep what you marked as you zoom out. ## Works on your Zotero Click **Zotero library**, under the drop zone, and your library is there as Zotero shows it: your collections, your group libraries, a search. **Read** opens any item. - **An item on arXiv** opens from arXiv. Any other opens from its PDF, with the PDF beside the text, or from the EPUB, saved web page or Word file it h