5 ms·
HN-text: an easy-to-use, text-first Hacker News terminal client
- sockbot 2y agoWould you consider adding armhf as a build target? This would make it useful for a wide range of older devices including Raspberry Pi 1 or 0, which are more likely to be used via console interface.
- lexoj 2y agoGood point, will look into it, thanks!
- Zambyte 2y ago> distraction-free Hacker News terminal client. This seems contradictory :)
- andai 2y agoI have been working out plans for making an interesting subset of the internet available offline (along with a search engine). However, I realized that my entire motivation for working offline was that it eliminates distraction. So it would defeat the purpose! However I'd still much rather be distracted on Wikipedia (or even HN) than other sites (esp. those with primarily images, gifs or video). I might need to segment it into "tiers", and have more fun parts come "online" as the day progresses...
- Zambyte 2y agoThat sounds awesome. I have actually been working on something similar myself. I have been building a distributed NATS[0] cluster to funnel data down from the internet and index it locally. I also have a local Ollama box wired up to try to do some NLP on it. I started with Benthos to pull in, but since the recent license changes[1] I am rethinking that :( If you would like to collaborate feel free to shoot me an email! [0] https://nats.io/ https://nats.io/ [1] https://news.ycombinator.com/item?id=40537911 https://news.ycombinator.com/item?id=40537911
- wormius 2y agoNo more e-worms! https://www.youtube.com/watch?v=Y5BZkaWZAAA https://www.youtube.com/watch?v=Y5BZkaWZAAA Hope you call it the Innernette :)
- alchemist1e9 2y agoIf you’re looking at that along with a text based interface then be sure to checkout offpunk [1] if you haven’t already. [1] https://sr.ht/~lioploum/offpunk/ https://sr.ht/~lioploum/offpunk/
- fragmede 2y agoHave you seen https://devdocs.io/ https://devdocs.io/ ? Even has an offline mode.
- helpfulContrib 2y ago[dead]
- arcastroe 2y agoI used to enjoy this alternative CLI https://github.com/donnemartin/haxor-news https://github.com/donnemartin/haxor-news But the docker image seemed to dissapear from docker hub so I stopped using it.
- lexoj 2y agoI’ve tried this one and I found it a bit unpleasant UX to type numbers to select the story I want to read. (Hence I wrote something like hn-text that I can navigate/open articles using only one hand and visually)
- j7ake 2y agoHaxor news is the best way to browse HN.
- Sn0wCoder 2y agoHaxor-news was the first terminal client I used for HN. Since then, I have tried a few of the others but haxor is the one I used the most. When I worked in the office and people see you fiddling around in the terminal, they usually leave you alone assuming you are on the HPC or doing other work. Now that I work from home have not used a terminal client even once. Maybe check this one out just for fun. PS – thanks for the reminder of this one, was searching to post the exact same comment….
- cristoperb 2y agoIs there a way to refresh from the front page? or do you just quit and start it again?
- lexoj 2y agoVery good feature request, will definitely implement next :) (So for now, yes, press q to quit and run it again)
- austinjp 2y agoWhen launching it, the user can just wrap it in 'while true ; do .... ; done' and hey presto, 'q' is the refesh key.
- lexoj 2y agoThat's pretty clever and works quite nicely (i just tried)!
- username135 2y agoI love simple solutions because my default settiing is usually to build out the hardest thing possible, lol
- johnmw 2y agoThanks, I've been looking for something like this for a while! Hope you don't mind a few additional suggestions/feature requests! - Single key scroll up/down a page of text (can work around it on my laptop keyboard with fn-down but would prefer not to have to use two hands). - Maybe customizable key bindings? (i.e, I'm used to hitting space to scroll down a page of text, and don't need to open the story in a browser so often) - Key binding to toggle "best", or even better, filters to view only the top N stories (I use this[1] site a lot for that). [1] https://hckrnews.com/ https://hckrnews.com/
- lexoj 2y ago
- shayonj 2y agocool project! nice
- andai 2y agoNice! I spent a few months in a bandwidth constrained environment (bluetooth tunnel to free Cafe wifi across the town square...). I generally got a few KB/s. The recent article on Antarctica's internet reminded me of those days. HN was one of the only sites that was reasonably pleasant to use during that time. Still, I found it more fun and faster to surf via a VPS. So the VPS itself would load and render the page, and only send me the bytes over Mosh (a more efficient SSH protocol). I tried a few terminal based browsers using this setup. The one that worked best for HN (especially comment indentation!) was w3m. Here's the current thread in w3m: https://files.catbox.moe/zuabb4.png https://files.catbox.moe/zuabb4.png I did have fast mobile data but it was expensive and limited. I watched a lot of videos on YouTube and one day realized that almost everything I watched was actually just lectures or discussions. So I could just stream the audio and save 80% of the bandwidth. I set up a little PHP script* that took a YouTube URL and ran `youtube-dl -g f bestaudio` to give you the URL of an audio-only stream. (Directly from YouTube's servers!) I could then just load it directly in my browser, or download it for later. (I think I should have used `worstaudio` instead.) * That little utility page is not up anymore, but others found it very useful so I should probably make another one... Another benefit of this is to battery life (decoding video is expensive) and being able to turn off the screen (a feature that Google banned from the app store, years before making their own (paid) version available...) Later I learned about f-droid and newpipe... good times :)
- fragmede 2y agoThe Antarctica Internet one reminded me of http://hn.zip http://hn.zip, which caches as much as it can for spotty connections.
- codetrotter 2y agoThe https://www.hn.zip/ https://www.hn.zip/ website links to a GitHub repo https://github.com/lukeschaefer/hn.zip https://github.com/lukeschaefer/hn.zip but that repo link currently gives a 404. Maybe owner of the site forgot to make the repo public or something. Can’t find any other repo on their profile that appears to be for that project either.
- dkga 2y agoInteresting, congratulations! I'm very fond of these hobby projects. By the way, my one and only wish for HN maintainers is to have a dark mode - please...
- password4321 2y agoUntil an official dark mode: https://news.ycombinator.com/item?id=40351227 https://news.ycombinator.com/item?id=40351227 with 8 comments links to last year's discussion with 90 comments: https://news.ycombinator.com/item?id=36342085 https://news.ycombinator.com/item?id=36342085
- koolala 2y agois unicode text hidden in the web client, scrubbed out client side on submission, or erased when being received by the server? does your client let us read and write full unicode? test string: ;
- AbraKdabra 2y agoI mean really cool, but I don't need 20+ hacker news tabs in my terminal too, I have enough in my Chrome lol.
- bgdkbtv 2y agoThanks for sharing! Browsed the source code and Go seems like a pleasant language! Either that or the author wrote very pretty code
- christophilus 2y agoLooks pretty standard to me. I do tend to find Go quite pleasant.
- bgdkbtv 2y agoFor sure! I don't work with Go so looking at it from a noob perspective
- bool3max 2y agoGo code has a tendency to look the same no matter who writes it.
- guilhas 2y agoVery good, something I would have written as side project if I had the motivation Same language and libraries Just don't understand why web scrapping, wasn't there an API?
- wglb 2y agoIf you have an account showdead is turned on, you will see text from flagged but not dead stories through the web interface. You don’t get those through firebase.
- nico 2y agoLooks cool. Love terminal apps. Currently still fascinated and happy with Spotify Terminal Great work. Would love to have the options of following someone and getting a feed of their comments/or stories
- leeman2016 2y agoGot a (hopefully false-positive) virus alert on Windows 11 from Defender: > Trojan:Win32/Sabsik.FL.A!ml > Details: This program is dangerous and executes commands from an attacker. Maybe due to UPX?
- kgeist 2y agoI see it's written in Go and some antiviruses love to mark Go executables as viruses because Go bundles the whole Go runtime inside the executable, and so the antivirus' heuristics marks it as a virus, just because it shares the same Go runtime inside as some other random unrelated virus written in Go (the antivirus has no idea it's just runtime code, it just sees that the executables' machine code matches by something like ~95%)
- ecliptik 2y agoReminds me of HN Gopher[1], which is also a great text-only way of reading, although not necessarily browsing, HN. 1. https://github.com/michael-lazar/hn-gopher https://github.com/michael-lazar/hn-gopher
- alberth 2y agoLynx Or you could just use the terminal browser Lynx, that will display all sites as text-only. https://en.wikipedia.org/wiki/Lynx_(web_browser) https://en.wikipedia.org/wiki/Lynx_(web_browser)
- omoikane 2y agoUnfortunately the hierarchical comments are not indented properly with Lynx. The topic listings work just fine though. Although if I were using Lynx just for the headlines, I might start at https://brutalist.report/ https://brutalist.report/ instead of hacker news.
- fellerts 2y agoThat's because comments are indented with an invisible gif (https://news.ycombinator.com/s.gif https://news.ycombinator.com/s.gif), not with CSS. Maybe you could add a custom stylesheet to Lynx to make the indent work? Some prior art: https://news.ycombinator.com/item?id=12098017 https://news.ycombinator.com/item?id=12098017
- zimpenfish 2y ago> Maybe you could add a custom stylesheet to Lynx to make the indent work? Lynx Style Sheets (LSS) don't really cover that kind of scenario from what I remember[1] - they're more "apply this ncurses/slang-style to this element".[2] [1] I wrote the original code but I am old and increasingly senile. [2] I've not really been involved for ~20 years but unless the internal "renderer" has been radically overhauled, supporting anything like "real" CSS isn't really doable.
- gitinit 2y agoWhat about using browsh[0] over SSH/Mosh/HTTP? [0]: https://www.brow.sh/ https://www.brow.sh/
- langsoul-com 2y agoThis reminds me of a HN post way back, there was an article about Min versions of websites. With images and large media filtered out, so it's the bare minimum, usually just text.
- simonebrunozzi 2y agoThanks for doing this. I'll give it a try. I took a quick look at your website, and your photography looks really beautiful. Are you based in Copenhagen?
- lexoj 2y agoThanks! Yes, Copenhagen :)
- kuschkufan 2y agoWould be nice to publish a docker image or have a nix flake to run this as an alternative to the binaries.
- orlandrescu 2y agoCould this be done for DOS as well?
- nyc111 2y agoEmacs browser eww does the same thing.
- dominick-cc 2y agoI made a similar project https://github.com/dominickp/hn https://github.com/dominickp/hn But I really like how your version shows a text version of the article in the UI.
- EricE 2y agoVery nice! Now if it could just support offline use like the .qwk readers from the BBS days.
- baq 2y agoA few more steps and we’ll have HN over NNTP. Which would give me a reason to dust off my slrn config from god knows where it is now.
- mathfailure 2y agoI keep seeing HN clients again and again to the point that... its tiresome. Why do you think there's a need to create a client for a website?
- schrodinger 2y agoI just came here to say, sincerely, that I love that you kept this so simple and just put everything in one single main package, with well-named files, rather than googling "the proper go project structure" and ending up with something unnecessary like: ⌞ app ⌞ cli.go <- actual package main ⌞ internal // (or pkg, or pkg/internal) ⌞ parser ⌞ parser.go ⌞ parser_test.go ⌞ ui ...etc
- chfritz 2y agoGreat companion tool to tailhn (https://github.com/chfritz/tailhn https://github.com/chfritz/tailhn), which allows you to `tail` all new HN posts on the terminal where you can use `grep` and other things to filter, e.g., `tailhn | grep -r robot` to see all new posts about robotics.