{"id":13623579,"url":"https://github.com/rafaelrinaldi/hn-cli","last_synced_at":"2025-04-06T01:06:08.370Z","repository":{"id":38325273,"uuid":"50540758","full_name":"rafaelrinaldi/hn-cli","owner":"rafaelrinaldi","description":":newspaper: CLI to browse Hacker News","archived":false,"fork":false,"pushed_at":"2018-07-21T22:34:38.000Z","size":565,"stargazers_count":464,"open_issues_count":5,"forks_count":18,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-30T00:09:03.443Z","etag":null,"topics":["cli","hacker-news","hn","terminal"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rafaelrinaldi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-27T21:57:54.000Z","updated_at":"2025-02-23T08:48:08.000Z","dependencies_parsed_at":"2022-08-25T04:50:23.991Z","dependency_job_id":null,"html_url":"https://github.com/rafaelrinaldi/hn-cli","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrinaldi%2Fhn-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrinaldi%2Fhn-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrinaldi%2Fhn-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrinaldi%2Fhn-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelrinaldi","download_url":"https://codeload.github.com/rafaelrinaldi/hn-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419859,"owners_count":20936012,"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":["cli","hacker-news","hn","terminal"],"created_at":"2024-08-01T21:01:33.343Z","updated_at":"2025-04-06T01:06:08.349Z","avatar_url":"https://github.com/rafaelrinaldi.png","language":"JavaScript","readme":"# hn-cli [![Build Status](https://semaphoreci.com/api/v1/projects/b264dc61-16ef-44f3-8130-4fbb5dd25169/676578/badge.svg)](https://semaphoreci.com/rafaelrinaldi/hn-cli)\n\n\u003e CLI to browse [Hacker News](http://news.ycombinator.com)\n\n[![demo](./demo.png)](https://cloudup.com/iUsrpNT00WI)\n\n## Install\n\n```sh\n$ npm install -g @rafaelrinaldi/hn-cli\n```\n\n## Usage\n\n```sh\nUsage: hn [OPTIONS]\n\n  CLI to browse Hacker News\n\nExample:\n  $ hn --limit 10 --keep-open\n\nOptions:\n  -v --version              Display current software version\n  -h --help                 Display help and usage details\n  -l --limit                Limit the number of items to display (defaults to 150)\n  -k --keep-open            Wether or not to keep the list open after selecting an item (defaults to false)\n     --latest               Sort the list by submission date (defaults to false)\n```\n\n## Features\n\n* By default it will list stories using the same order as seen on HN\n* You can change the list order to display the most recent ones by runnig the program with the `--latest` flag\n* You can use Vim arrow keys \u003ckbd\u003ej\u003c/kbd\u003e and \u003ckbd\u003ek\u003c/kbd\u003e to navigate through the list\n* Use \u003ckbd\u003egg\u003c/kbd\u003e to scroll to the first item of the list and \u003ckbd\u003eG\u003c/kbd\u003e to scroll to the last one\n* Hitting the \u003ckbd\u003eenter\u003c/kbd\u003e key will open the URL in your default browser\n* Hitting the \u003ckbd\u003ec\u003c/kbd\u003e key will open the HN comments for that story on your default browser\n* Share an item on Twitter by hitting the \u003ckbd\u003et\u003c/kbd\u003e key\n* Hitting the \u003ckbd\u003er\u003c/kbd\u003e key will refresh the stories and update the current list\n* A status bar is fixed on the bottom of the screen to provide visual feedback about updates and reading progress\n* Use \u003ckbd\u003eesc\u003c/kbd\u003e, \u003ckbd\u003e⌃C\u003c/kbd\u003e or \u003ckbd\u003eq\u003c/kbd\u003e to close the program\n\n## License\n\nMIT © [Rafael Rinaldi](http://rinaldi.io)\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://buymeacoff.ee/rinaldi\" title=\"Buy me a coffee\"\u003eBuy me a ☕\u003c/a\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":["JavaScript","Clients","Tools","Applications"],"sub_categories":["CLI \u0026 TUI","Node","Directory Navigation"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelrinaldi%2Fhn-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelrinaldi%2Fhn-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelrinaldi%2Fhn-cli/lists"}