←back to thread

387 points shiomiru | 3 comments | | HN request time: 0.008s | source

A terminal-based web browser in Nim.[1] Has acceptable (YMMV) CSS rendering, some JS support, and inline images (sixel/kitty). It can also use various protocols other than http(s) such as (s)ftp, gopher, gemini, ...

Chawan started out as a w3m clone, and the UI still resembles it. However, the architecture has turned out quite different, with pages loaded in separate processes, and protocol/file type handling separated out into external binaries. An interesting result is that you can even register decoders for custom inline image formats, although practical use cases of this are rather minimal.

There is a gallery showcasing some websites being rendered here: https://chawan.net/gallery/index.html

[1]: https://nim-lang.org

1. desireco42 ◴[] No.44295932[source]
I think making markdown browser would totally make sense for terminal and would work really well. Come to think about it, you can even, Netscape style even allow editing of the pages. Now that would be something.

Nim is wonderful language and I am glad to see it used for this.

replies(1): >>44298569 #
2. ralgozino ◴[] No.44298569[source]
glow is kinda that: https://github.com/charmbracelet/glow
replies(1): >>44299374 #
3. desireco42 ◴[] No.44299374[source]
Thanks, this is a good find