Back to News
Advertisement
aahmd-sh about 3 hours ago 35 commentsRead Article on github.com

DE version is available. Content is displayed in original English for accuracy.

hi there! i'd like you to try out a tui i made for browsing hackernews. it's built using opentui and also effect (learning experiment). i really like it and i think you will too!
Advertisement

⚡ Community Insights

Discussion Sentiment

91% Positive

Analyzed from 605 words in the discussion.

Trending Topics

#https#github#com#zig#without#news#browser#ram#maybe#why

Discussion (35 Comments)Read Original on HackerNews

sho_hn•about 2 hours ago
"Zig with TypeScript bindings and React components" for a TUI is definitely the wildest, weirdest stack for a given job I've seen.
markild•about 2 hours ago
Where are you seeing any mention of Zig? All I see is TypeScript?
tom1337•about 2 hours ago
It uses OpenTUI which is build in Zig: https://github.com/anomalyco/opentui
keiejfiejcjej•1 minute ago
So how is it a weird stack given the TUI framework itself was written in Zig?
rootnod3•about 1 hour ago
That is a wild stack to use for a RSS feed.
ChaseRensberger•30 minutes ago
I've been using https://github.com/bensadeh/circumflex for a while now, I like it a lot.
dhanushnehru•about 1 hour ago
I'd recommend saving actual HN item IDs rather than feed positions. Since the front page reorders constantly, relying on item IDs makes returning to a saved thread completely predictable.
shalaev_s•about 1 hour ago
Without Claude code demo it would be impossible to see how it works, nicely done
sparrowidle•about 1 hour ago
Piping through readability before rendering is what made mine usable, raw html to markdown on news sites is mostly nav junk.
KPGv2•35 minutes ago
Made me think of a cool way to burn tokens: browser that reports websites you visit to an agent, which then writes a TUI for that site, ultimately leading you to a collection of low-resource UIs for the five or so websites you actually visit. Then you stop needing to use a browser and your 16GB RAM with a browser using 64GB of RAM becomes a system with free RAM for the first time in years.

Think: Lynx but pretty.

(Also bonus, bot checks that flag you as one means you have more free time to not get advertised to or sucked into Internet drama.)

ByteJoseph•about 1 hour ago
Does it support account login ?
codetiger•about 1 hour ago
I was searching for upvote shortcut and realized it does not support login
KPGv2•26 minutes ago
Great! Get the News part of Hacker News without the Drama part of Hacker News. It's always better to increase friction to help you wean yourself off destructive habits like this one, where I'm spending time sending text to a stranger who will immediately discount my thoughts since I'm not them.

Long time ago I had an extension for my browser that would "pause" every social media comment I made and do analysis to see if I was acting like a dick. Maybe I should get it working again.

It all started when I found some website where you'd give it your Reddit account, and it'd do a bunch of processing and produce a report about how much you swore, if you had net favorability or not with up/down votes, sentiment analysis to see if you were coming from a place of friendship, etc. It really drove my behavior in a more positive direction.

I'm a kind, not just nice, person IRL. But the Internet turns humans into text, and I was taught as a child to engage harshly and critically with all text. That is to say, I had good English lit teachers.

milhan00•about 2 hours ago
It would be nice to read the articles in the terminal as well, maybe just as an markdown output.
glitchc•about 3 hours ago
Thank you, I've been looking for a meaningful way to browse HN on my cyberdeck and this looks perfect.
keel-control•about 3 hours ago
why not use ratatui
ErenayDev•about 2 hours ago
maybe, the author isnot interested in low-level langs

Edit: sorry, i was wrong. https://github.com/holo-q/ratatui-ts

keel-control•about 2 hours ago
I just rewrote it on my device in ratatui using codex in 16 minutes and it uses 10x less RAM 150MB -> 15MB
Advertisement
nottorp•about 2 hours ago
How many fps can it do?
edweis•about 3 hours ago
Can you make an interactive ssh instead?
suzukivenom•about 3 hours ago
just why
Yakobeen•about 2 hours ago
thanks for sharing! gonna try it out
grim_io•about 2 hours ago
That's a lot of deps to read HN.

Maybe your clanker can do it without.

MisterMunchkin•about 2 hours ago
And this is why people aren’t going out of the loop any time soon. A normie asks the bot to make a project, it produces nonsensical complexity like this.
TeMPOraL•about 1 hour ago
Except why would you waste your time on projects like these, if an LLM can zero-shot them for you?
nateb2022•about 1 hour ago
You're restating their point. Normies' output will still be bad compared to the output that good engineers would produce, with or without AI. You wouldn't want to use poorly built software regardless of origin.
dmos62•about 2 hours ago
Are you comparing with `curl | lynx` or with Chrome?
nateb2022•about 2 hours ago
HN data is accessible through the Firebase API: https://github.com/hackernews/api

You don't need to as much as parse HTML to read it. Building a client by hand in C even should be pretty painless as long as you don't write your JSON parser yourself.

dmos62•about 1 hour ago
That's fair criticism.
tantalor•about 2 hours ago
In the old days, you would telnet into a host machine that just serves this up to you. No need to install anything.
nateb2022•about 2 hours ago
charm makes some awesome libraries for building/serving CLIs over SSH: https://github.com/charmbracelet/wish
tamimio•about 3 hours ago
Loved it, thanks for sharing! If you can add logins and posting it would be great!
ligarota•about 3 hours ago
YaHnTui