Repository navigation
Releases
hn 0.2.2
hn v0.2.2
hn is a terminal reader for Hacker News. This release fixes how the age of older stories and comments is shown.
Changes
- Anything a week or older now shows its age as
1w,2wand so on, matching5m,3hand6d. It used to read1 weeks ago.
Install
With Homebrew:
brew install shaance/tap/hnOr download the tar.gz and matching .sha256 for your system from the release assets. Verify the archive with shasum -a 256 -c <archive>.sha256, extract it, and put hn on your PATH.
To build from source with Rust 1.88 and Cargo:
cargo install hn-reader --lockedRequirements and optional setup
- macOS binaries target macOS 13 or newer on Apple Silicon and Intel. macOS may need network access the first time it checks the notarization ticket.
- Linux binaries are built on Ubuntu 22.04 for x86-64 and ARM64, with glibc 2.35 and OpenSSL 3. Install the OpenSSL 3 runtime if it is missing.
- Browsing and saving stories work without an API key. Summaries need an OpenRouter or Anthropic API key in the
Msettings form,OPENROUTER_API_KEY, orANTHROPIC_API_KEY.
hn 0.2.1
hn v0.2.1
hn is a terminal reader for Hacker News. This release changes what h does, stops a broken summary from reaching the screen, and adds two ways to install.
Changes
hnow folds the selected comment's replies, as in the Mac app, both in the discussion and in a citation's source view. To go back, use Esc,qor ←.- If the model returns a discussion summary whose overview or point is a single word, such as "placeholder",
hnshows "Discussion summary came back incomplete. M → Enter Retry" instead of displaying it. hnis now on crates.io ashn-reader. The installed command is stillhn.
Install
With Homebrew:
brew install shaance/tap/hnOr download the tar.gz and matching .sha256 for your system from the release assets. Verify the archive with shasum -a 256 -c <archive>.sha256, extract it, and put hn on your PATH.
To build from source with Rust 1.88 and Cargo:
cargo install hn-reader --lockedRequirements and optional setup
- macOS binaries target macOS 13 or newer on Apple Silicon and Intel. macOS may need network access the first time it checks the notarization ticket.
- Linux binaries are built on Ubuntu 22.04 for x86-64 and ARM64, with glibc 2.35 and OpenSSL 3. Install the OpenSSL 3 runtime if it is missing.
- Browsing and saving stories work without an API key. Summaries need an OpenRouter or Anthropic API key in the
Msettings form,OPENROUTER_API_KEY, orANTHROPIC_API_KEY.
hn 0.2.0
hn v0.2.0
hn is a terminal reader for Hacker News. This release adds downloadable binaries for macOS and Linux and makes it easier to follow long discussions.
Highlights
- Reopen folded branches without fetching their replies again. In deep threads, choose “continue thread” to start at that comment. The reader shows the ancestor trail, Backspace steps back up it, and
fdims comments outside the selected chain. - Open a summary citation to read the cited comment in context and browse its replies. Replies loaded here also appear in the main discussion.
- Pick up saved article and discussion summaries after restarting
hn. The app can reuse these summaries without another provider request. Article extraction also works better on GitHub release pages and the Cloudflare blog. - On terminals 160 columns or wider, the feed shows its stories in two columns; ← and → move between them and turn the page at the edge.
- Move across feed pages with
jandk. UsegandGto jump to the first and last story on the page, or use Space, Page Down, and Page Up to turn pages. PressMto open summary settings from any view.
Install
Download the tar.gz and matching .sha256 for your system from the release assets. Verify the archive with shasum -a 256 -c <archive>.sha256, extract it, and put hn on your PATH.
With Homebrew:
brew install shaance/tap/hnTo build from source with Rust 1.88 and Cargo:
cargo install --git https://github.com/Shaance/hn --tag tui-v0.2.0 --locked hnRequirements and optional setup
- macOS binaries target macOS 13 or newer on Apple Silicon and Intel. macOS may need network access the first time it checks the notarization ticket.
- Linux binaries are built on Ubuntu 22.04 for x86-64 and ARM64, with glibc 2.35 and OpenSSL 3. Install the OpenSSL 3 runtime if it is missing.
- Browsing and saving stories work without an API key. Summaries need an OpenRouter or Anthropic API key in the
Msettings form,OPENROUTER_API_KEY, orANTHROPIC_API_KEY.
HN desktop 1.1.0
New
- Redesigned summary settings. The dialog is wider and split into two panels. Provider holds the provider, your key and where it's saved. Summaries holds the automatic switch and two quality tiles, Fast and Thorough, each showing the model it uses.
- Select and copy what you're reading. Drag across a comment, a cited comment, the summary or the extracted article, then press ⌘C. A click still selects a comment or opens a citation.
- The window reopens where you left it, at the same size and position.
Fixes
- Going back to the feed animates again when a live page is showing: the feed slides in from the left as the story leaves. Esc, mouse back and trackpad swipe all do this.
- Returning from a citation animates the same way, and no longer outlines the whole summary afterwards.
- A selected citation is now visible before you press Enter: its point gets an amber rule and the chip fills.
- Articles extract correctly on GitHub release pages and the Cloudflare blog.
- The "More below" label under a long summary is gone. A taller fade at the bottom edge shows there's more to scroll.
Under the hood
- Rune moves from
55ef526to78efd4a.
Apple Silicon, macOS 13 or later. Signed and notarized.
HN desktop 1.0.0
What's Changed
Full Changelog: https://github.com/Shaance/hackernews-cli/commits/desktop-v1.0.0
hn v0.1.0
hn v0.1.0
hn is a terminal reader for Hacker News, written in Rust. It is for people who want to browse stories and read full comment threads without leaving the terminal.
Highlights
- Browse Top, New, and Best stories with paging, and read full comment threads with expand/collapse, sibling and parent navigation, and a reading position that is restored when you reopen a discussion in the same run.
- Save stories for later with
sand revisit them in the Saved view (4). Saved stories persist across restarts and need no account. - Optional AI summaries of the article and discussion through OpenRouter or Anthropic, with Fast and Thorough profiles, automatic summaries when you open a story, and numbered citations that jump to the cited comment.
- On macOS with Ghostty, open the original article in a companion browser pane beside the discussion. Other setups open it in the default browser.
- Automatic light/dark colour detection with
HN_THEMEoverride,NO_COLORsupport, andHN_REDUCED_MOTION=1to disable animations.
Install
git clone https://github.com/Shaance/hackernews-cli.git
cd hackernews-cli
cargo install --path . --locked
hncargo install places the hn binary in $CARGO_HOME/bin, normally ~/.cargo/bin. Keep that directory on your shell's PATH.
Requirements and optional setup
- Rust and Cargo, version 1.88 or newer.
- Browsing and saving stories work without an API key.
- Summaries need an OpenRouter or Anthropic API key, entered once in the
Msettings form or supplied asOPENROUTER_API_KEYorANTHROPIC_API_KEY. - The Ghostty article pane is macOS-only and needs Ghostty plus terminal-browser v0.13.4. See
scripts/ghostty/README.mdfor setup.
Known limitations
- Summaries send extracted article text and sampled comment excerpts to the selected provider using your API credits. Article extraction can be partial, and discussion summaries use a sample of comments.
- The Ghostty companion pane requires macOS, Ghostty, and a terminal at least 110 columns wide. Otherwise the article opens in the default browser.
- Summaries, captured sources, and reading positions are kept in memory for the current run only. Restarting
hnstarts a new reading session, while saved stories and summary settings persist.