Skip to content
hn

v0.1.1

A quality pass over the first release: a real data fix, a richer updates, a full test suite, and complete docs.

Fixed

  • HTML entities in text are now decoded. Comment and story bodies came through with raw entities, so a link looked like https://example.com. Text fields are now fully decoded, including the numeric and hex forms Hacker News uses heavily, and paragraph breaks are preserved.

Changed

  • hn updates now emits structured records that render in every output format, and it honors -n to cap the firehose like the story lists do.
  • Search story hits no longer carry a redundant story_id. Comment hits still include the story_id and story_title of their parent thread.

Under the hood

  • A full test suite covering the HTTP client (story lists, comment-tree walking, search filters, retries), the data conversions, the renderer across all seven formats, and the command wiring.
  • The docs deploy workflow now runs with least-privilege permissions.

Install

go install github.com/tamnd/hackernews-cli/cmd/[email protected]

Or download a prebuilt binary from the releases page. See installation for packages and one-line installers.