{"id":24956851,"url":"https://github.com/andrewstuart/hn","last_synced_at":"2025-04-09T16:19:29.008Z","repository":{"id":16897743,"uuid":"19658568","full_name":"andrewstuart/hn","owner":"andrewstuart","description":"A hackernews ncurses CLI written in GO","archived":false,"fork":false,"pushed_at":"2023-03-17T16:13:37.000Z","size":652,"stargazers_count":276,"open_issues_count":0,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-09T16:19:18.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/andrewstuart.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2014-05-11T04:38:23.000Z","updated_at":"2024-12-20T16:43:43.000Z","dependencies_parsed_at":"2024-01-14T09:11:19.365Z","dependency_job_id":"dce147a4-930d-45ee-bf1b-b7a2f2321eec","html_url":"https://github.com/andrewstuart/hn","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fhn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fhn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fhn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fhn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewstuart","download_url":"https://codeload.github.com/andrewstuart/hn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065281,"owners_count":21041872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-02-03T06:41:24.620Z","updated_at":"2025-04-09T16:19:28.984Z","avatar_url":"https://github.com/andrewstuart.png","language":"Go","funding_links":[],"categories":["Apps"],"sub_categories":["Command Line"],"readme":"## About\n\nA 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.\n\nRight 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.\n\n![Story view](https://raw.github.com/andrewstuart/hn/master/readme/stories.png)\n\n![Comment view](https://raw.github.com/andrewstuart/hn/master/readme/comments.png)\n\n## Installation\n\nAssuming you have your GOPATH and PATH set appropriately:\n\nUnfortunately, 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.\n\n```bash\ngo get github.com/andrewstuart/hn\n```\n\n## Usage\n\n```bash\n$ hn\n```\n\n### Story view\n- n) Go to next page\n- p) Go to previous page\n- (num)c) View comments for story (num)\n- (num)o) Open story (num) in default browser\n- q) Quit hn\n\n### Comments view\n- d) Go down 30 lines\n- u) Go up 30 lines\n- j) Go down 1 line\n- k) Go up 1 line\n- n) Go down 1 page\n- p) Go up 1 page\n- q) Go back to story view\n\n## API (unfinished/deprecated/idk)\n\nThis basically only works for page 1 in its current state, IIRC.\n\n```bash\n$ hn -s -p 3000 \u0026 \n\n$ curl localhost:3000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewstuart%2Fhn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewstuart%2Fhn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewstuart%2Fhn/lists"}