Go CLI for Hacker News via the Algolia API. No auth required.
make build: buildsbin/hnmake install: copies to$GOPATH/bin/hnmake fmt: format Go filesmake lint: golangci-lintmake test: unit tests with race detectormake ci: fmt + lint + test + build
cmd/hn/main.go-- thin entrypoint, version embedding via ldflagsinternal/cmd/root.go-- all CLI commands (cobra)internal/api/client.go-- HN Algolia API clientinternal/output/format.go-- compact plaintext and JSON formattersskills/hn/SKILL.md-- agent skill definition
- Go stdlib + cobra only. Minimal dependencies.
- stdout for data (compact plaintext or JSON). stderr for errors/progress.
--jsonflag for structured output on all commands.- Conventional commits:
feat(scope):,fix(scope):,chore:.
HN Algolia API at https://hn.algolia.com/api/v1/. Free, no auth, no rate limits.