Hn
A hackernews ncurses CLI written in GO
Install / Use
/learn @andrewstuart/HnREADME
About
A Hacker News ncurses CLI reader written in Go. Currently known to work on Linux, and a few people have gotten it to work on OSX.
Right now it's able to view articles, view comments, and open a page in your default browser, all done directly from the site using goquery (jquery-like library for Go), goncurses, and xdg-open for opening pages.


Installation
Assuming you have your GOPATH and PATH set appropriately:
Unfortunately, you'll also need mercurial installed, for packages hosted at code.google.com. If you're working with Go, you've probably already done that.
go get github.com/andrewstuart/hn
Usage
$ hn
Story view
- n) Go to next page
- p) Go to previous page
- (num)c) View comments for story (num)
- (num)o) Open story (num) in default browser
- q) Quit hn
Comments view
- d) Go down 30 lines
- u) Go up 30 lines
- j) Go down 1 line
- k) Go up 1 line
- n) Go down 1 page
- p) Go up 1 page
- q) Go back to story view
API (unfinished/deprecated/idk)
This basically only works for page 1 in its current state, IIRC.
$ hn -s -p 3000 &
$ curl localhost:3000
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
