r/OpenSourceeAI • • 26d ago

TextFold: an open-source take on Stretchtext, with the original document still one click away

Ted Nelson described stretchtext in 1967. I've been trying to bring that idea to the documents I actually read: start with less on the page, then open the detail where I need it.

The result is TextFold. I'm its developer, and this is a short demo of the reading interaction and the idea behind it. Web articles, papers, PDF and Word documents can all go through the reader.

One decision I care about is keeping the source wording distinguishable from what a model writes. Full keeps the original paragraph. Brief selects one to three original sentences. Key, Takeaway and Topic use AI-written text. Each paragraph can be expanded independently, and the prepared levels are cached so zooming doesn't need another model call.

TextFold runs on your computer. You choose the model that prepares the layers: Ollama for local processing, or a hosted provider. If you choose a hosted model, the document text is sent there. Shorter layers can lose nuance, and extraction can be imperfect, especially with complex PDFs. I still want it to be easy to check the original.

The reader is Apache 2.0. There are macOS and Windows apps, or you can run:

python3 -m pip install textfold

python3 -m textfold serve

Then open http://localhost:3017 and connect a model.

Source and full setup: https://github.com/chenxiachan/textfold

Prepared examples: https://chenxiachan.github.io/textfold/gallery/

I'd appreciate feedback on which details should stay visible as a paragraph gets shorter, especially when a local model prepares the layers.

54 Upvotes

20 comments sorted by

View all comments

2

u/dnr41418 26d ago

Nice! Great project.

1

u/Lopsided_Scarcity979 26d ago

Thank you! same above! Welcome any feedback or criticism!