logoalt Hacker News

Show HN: Chawan TUI web browser

153 pointsby shiomiru06/16/202519 commentsview on HN

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


Comments

isaacvando06/16/2025

This is super cool! Bravo. Awesome to see it written in Nim too.

When I do `cha example.com` I can't figure out how to use any of the commands (hjkl, etc). The only keys I've found that have any effect are typing numbers which show up in the bottom left. Haven't figured out how to do anything with those. Am I missing something obvious about how to use this or could this be a bug?

I built from source on MacOS Sequoia 15.5 Apple Silicon using Nim 2.24. Pages load correctly, I just can't get the commands to work. Thanks!

show 1 reply
lucideer06/17/2025

Absolutely incredible. And it even supports gopher.

greenspam06/16/2025

Finally a good tool to view HN in terminal. Thank you! Where can I find the keyboard shortcuts? I can move with vim key binding, but can go back.

show 1 reply
elcritch06/16/2025

I recommend perusing the code. Since it’s in Nim it’s pretty approachable (and performant). There’s still lots of gnarly bits like implementing HTML DOM and web specs, but it doesn’t take you days to grasp the basic setup.

ijustlovemath06/16/2025

My jaw dropped when HN loaded first try from Termux! Nice work!

show 1 reply
hecanjog06/16/2025

I love this browser, thank you for building it!

show 1 reply
mikeponders06/16/2025

Gotta love Nim

corv06/16/2025

Awesome and in Nim!

etaioinshrdlu06/16/2025

I rabbit-holed a little and apparently Chrome and Safari no longer even fully pass Acid2 and Acid3?

show 1 reply
agumonkey06/16/2025

as a tiny web fan, it's lovely to see projects like these, *claps*

marcodiego06/16/2025

GPM support?

show 2 replies