Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewstuart/hn
A hackernews ncurses CLI written in GO
https://github.com/andrewstuart/hn
Last synced: 16 days ago
JSON representation
A hackernews ncurses CLI written in GO
- Host: GitHub
- URL: https://github.com/andrewstuart/hn
- Owner: andrewstuart
- License: mit
- Created: 2014-05-11T04:38:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T16:13:37.000Z (over 1 year ago)
- Last Synced: 2024-04-14T03:59:43.800Z (3 months ago)
- Language: Go
- Size: 637 KB
- Stars: 274
- Watchers: 9
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-hacker-news - Hacker News ncurses CLI
README
## 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.
![Story view](https://raw.github.com/andrewstuart/hn/master/readme/stories.png)
![Comment view](https://raw.github.com/andrewstuart/hn/master/readme/comments.png)
## 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.
```bash
go get github.com/andrewstuart/hn
```## Usage
```bash
$ 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.
```bash
$ hn -s -p 3000 &$ curl localhost:3000
```