>_

hn-cli

:newspaper: CLI to browse Hacker News

How to install hn-cli

npm install -g @rafaelrinaldi/hn-cli

hn-cli use case

Browse and interact with Hacker News stories from the terminal

When to use hn-cli

  • Quickly fetch and navigate top or latest Hacker News stories
  • Open story URLs or comment threads in default browser
  • Share stories on Twitter directly from the terminal

When not to use hn-cli

  • Need to programmatically extract raw data or JSON output
  • Require non-interactive, headless operation for scripting

hn-cli features

  • · Vim-style keyboard navigation (j/k, gg/G)
  • · Open story URLs or Hacker News comments in browser
  • · Share stories on Twitter with 't' key
  • · Sort by latest or default order, limit number of items

Want your agent to find this automatically?

Add the MCP server to your agent config and it will discover tools like hn-cli on its own.

Set up MCP →

Similar tools to hn-cli