hn 0,0,0,0

A hackernews ncurses CLI written in GO

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

Comment view

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 Repositories

API

API

Documentation and Samples for the Official HN API ...

PlacesToPostYourStartup

PlacesToPostYourStartup

Compiled list of links from "Ask HN: Where can I post my startup to get beta users?" ...

pinyin

pinyin

:cn: 汉字拼音 ➜ hàn zì pīn yīn ...

react-hn

react-hn

React-powered Hacker News client ...

lamernews

lamernews

Lamer News -- an HN style social news site written in Ruby/Sinatra/Redis/JQuery ...


Top Contributors

andrewstuart kawakami-o3 heyalexej

Releases

-   v1.0.1 zip tar
-   v1.0.0 zip tar
-   v0.1.2 zip tar
-   v0.1.1 zip tar
-   v0.1.0 zip tar