{"id":47812671,"url":"https://github.com/voska/hn-cli","last_synced_at":"2026-04-05T20:00:30.706Z","repository":{"id":348753055,"uuid":"1195674985","full_name":"voska/hn-cli","owner":"voska","description":"Agent-friendly Hacker News CLI via the Algolia API","archived":false,"fork":false,"pushed_at":"2026-04-02T16:59:29.000Z","size":780,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-03T19:42:46.551Z","etag":null,"topics":["algolia","cli","go","golang","hacker-news","hackernews","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voska.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-30T00:20:49.000Z","updated_at":"2026-04-03T13:35:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/voska/hn-cli","commit_stats":null,"previous_names":["voska/hn-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/voska/hn-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voska%2Fhn-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voska%2Fhn-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voska%2Fhn-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voska%2Fhn-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voska","download_url":"https://codeload.github.com/voska/hn-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voska%2Fhn-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31409471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algolia","cli","go","golang","hacker-news","hackernews","terminal"],"created_at":"2026-04-03T18:17:14.338Z","updated_at":"2026-04-04T19:02:01.727Z","avatar_url":"https://github.com/voska.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\".github/banner.svg\" alt=\"hn cli\" width=\"600\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/voska/hn-cli/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/voska/hn-cli/actions/workflows/ci.yml/badge.svg\" alt=\"CI\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/voska/hn-cli/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/voska/hn-cli\" alt=\"Release\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://go.dev/\"\u003e\u003cimg src=\"https://img.shields.io/github/go-mod/go-version/voska/hn-cli\" alt=\"Go\" /\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\" alt=\"License: MIT\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nAgent-friendly CLI for [Hacker News](https://news.ycombinator.com) via the [Algolia API](https://hn.algolia.com). Data goes to stdout (parseable), hints/progress to stderr. No authentication required.\n\n- **Fast** — direct Algolia API, no scraping or HTML parsing\n- **Agent-friendly** — `--json` on every command, structured exit codes, stderr-only progress\n- **Zero config** — no API keys, no auth, no rate limits\n- **Single binary** — install via Homebrew, Scoop, or `go install`\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"demo.gif\" alt=\"hn cli demo\" width=\"700\" /\u003e\n\u003c/p\u003e\n\n```bash\n$ hn search \"local LLMs\" -n 3\n5632 results:\n1. [2127pts 963c] Running Local LLMs Is a Waste of Time  @dang  3mo ago\n   https://example.com/local-llms\n   HN: https://news.ycombinator.com/item?id=43163011\n2. [891pts 412c] Ollama: Run LLMs Locally  @thunderbong  8mo ago\n   https://ollama.ai\n   HN: https://news.ycombinator.com/item?id=42591244\n3. [654pts 287c] How I Run LLMs on a Raspberry Pi  @tosh  1y ago\n   https://example.com/rpi-llms\n   HN: https://news.ycombinator.com/item?id=41023547\n\n$ hn front -n 3\n1. [312pts 142c] Show HN: I built a CLI for everything  @pg  2h ago\n   https://example.com/cli\n2. [198pts  87c] Why SQLite Is So Great for the Edge  @dang  4h ago\n   https://example.com/sqlite\n3. [145pts  53c] The death of microservices  @mfiguiere  6h ago\n   https://example.com/microservices\n\n$ hn read 43163011 --json | jq '.comments | length'\n963\n```\n\nRun `hn --help` for the full command tree.\n\n## Install\n\n**Homebrew** (macOS / Linux):\n\n```bash\nbrew install voska/tap/hn\n```\n\n**Scoop** (Windows):\n\n```bash\nscoop bucket add voska https://github.com/voska/scoop-bucket\nscoop install hn\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eOther install methods\u003c/summary\u003e\n\n**Go**:\n\n```bash\ngo install github.com/voska/hn-cli/cmd/hn@latest\n```\n\n**Binary**: download from [Releases](https://github.com/voska/hn-cli/releases).\n\n\u003c/details\u003e\n\n## Quick Start\n\n```bash\n# Search stories\nhn search \"distributed systems\" --min-points 100\n\n# Search comments\nhn search \"Go vs Rust\" --comments\n\n# Recent stories sorted by date\nhn search \"WASM\" --sort date --after 2026-01-01\n\n# Current front page\nhn front\n\n# Read a story with comments (3 levels deep)\nhn read 43163011\n\n# Read with all comments expanded\nhn read 43163011 --expand\n\n# User profile\nhn user pg\n\n# API health check\nhn status\n```\n\n## Agent Skill\n\nInstall as a [Claude Code skill](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/skills) for AI-assisted HN research:\n\n```bash\nnpx skills add -g voska/hn-cli\n```\n\n## API\n\nUses the [HN Algolia API](https://hn.algolia.com/api/v1/) -- free, public, no authentication or API keys required.\n\n## Output Modes\n\n| Flag | Description |\n|------|-------------|\n| (default) | Compact plaintext to stdout |\n| `--json` | Structured JSON to stdout |\n\n## Commands\n\n| Command | Alias | Description |\n|---------|-------|-------------|\n| `search \u003cquery\u003e` | `s` | Search stories or comments |\n| `front` | `f` | Current front page stories |\n| `read \u003cid\u003e` | `r` | Story with threaded comments |\n| `user \u003cusername\u003e` | `u` | User profile and karma |\n| `status` | | API health check with latency |\n| `version` | | Version, commit, build date |\n\nAll commands support `--json`.\n\n## Exit Codes\n\n| Code | Name | Meaning |\n|------|------|---------|\n| 0 | success | Operation completed |\n| 1 | error | General error |\n| 3 | empty | No results found |\n| 5 | not_found | Invalid ID or username |\n| 8 | retryable | Transient error, safe to retry |\n\n## Development\n\n```bash\nmake build    # Build to bin/hn\nmake test     # Run tests with race detector\nmake lint     # Run linter\nmake fmt      # Format code\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoska%2Fhn-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoska%2Fhn-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoska%2Fhn-cli/lists"}