Show HN: A lightweight, no-fuss Hacker News client for your terminal github.com ...
Show HN @show
Show HN: A lightweight, no-fuss Hacker News client for your terminal github.com · 2 points · 0 comments · HN thread
TL;DR A Show HN post introducing hn, a lightweight terminal client for Hacker News written in Go, installable with go install. It supports browsing all feeds, reading comment threads, logging in with the session cookie only, and performing writes by submitting the website's forms, since HN has no write API.
- Install with go install github.com/jsattler/hn@latest; the binary goes in $(go env GOPATH)/bin and must be on PATH.
- Covers six feeds (top, new, best, ask, show, jobs) switchable with tab or keys 1–6, with vim-style navigation and collapsible comment threads.
- Stories come from the official Firebase API; comment trees and search use the Algolia HN API, falling back to Firebase if Algolia is down.
- Login stores only the session cookie in ~/.config/hn/session with mode 0600; the password is never written to disk, and pressing L again logs out and deletes the file.
- Voting, commenting, submitting, favoriting and hiding work by replaying the same forms the HN website uses, because HN has no write API.
- New comments may take a moment to appear because of the Algolia index.
Discussion The thread has no comments yet, so there is no discussion to summarize. The post has only its initial score of 2 points.