Printing TUI websites

Continuing the discussion from Launching AreWeTUIYet:

I asked Orhun about the same thing on Discord yesterday, so I’ll repost his response for posterity and continuation here:

Orhun said:

hmm I see. I guess we need to come up with a standardized way for websites to be viewed in the terminal, or put simply, a new file format that will represent a terminal/website. Needs a bit of brainstorming :smiley: :brain:

a first step towards that would be converting a static website to a terminal website maybe (e.g. rendering markdown in the terminal and making it browsable)

I always wanted to make the TUI version of my blog which shouldn’t be really hard

but as for dynamic content, I’m not sure

So, it should at the very least be quite straight forward to match the essential functionality as well as form of a simple static site. Just gotta parse the folder structure and render .md files.

As for dynamic content, if it’s possible to do a discourse-tui then it’s possible to make most other kinds of web-tuis as well, it just takes more work.

2 Likes

There’s an interesting protocol similar to Gopher from the 90s called Gemini that maybe what you’re looking for. https://geminiprotocol.net/

That really needs to be converted to Ratatui …

1 Like

I also had a long standing plan of creating a Ratatui tutorial for the terminal by simply rendering the markdown files from ratatui-website. I can make this “website2tui” tool available for any other similar repo via a couple of customization options (such as title, toolbar options, about page etc.) and we can see how it will turn out.

2 Likes

Another useful reference: