Skip to content

Releases: tamnd/hackernews-cli

v0.1.0

13 Jun 18:04
v0.1.0
6a4b00e

Choose a tag to compare

First release of hn, a command line for Hacker News.

Reads the official Firebase v0 API (live data) and the Algolia search API (full-text search). Both are open, no key required.

Commands

  • hn top, best, new, ask, show, jobs — story lists with rank
  • hn item <id> — one item with its comment tree (--depth)
  • hn user <name> — profile with optional --submissions
  • hn search <query> — full-text search via Algolia (--tags, --sort, --since, --points)
  • hn updates — recently changed items and profiles
  • hn maxitem — current maximum item id

Output

Every command supports -o table|json|jsonl|csv|tsv|url|raw, --fields, --template, -n/--limit.

Install

go install github.com/tamnd/hackernews-cli/cmd/hn@v0.1.0

Or grab a prebuilt binary below (Linux amd64/arm64/armhf, macOS arm64, Windows amd64, plus deb/rpm/apk packages).