Hi HN! I've built hnterminal, a Python package that lets you browse, upvote, and comment on Hacker News from your terminal.
To get started:
$ pip install hnterminal
$ hnterminal
hnterminal is an interactive REPL environment with commands like "get_front_page", "get_tree", "upvote", "reply_to", etc, each of which supports rich arguments and comes with full help documentation.
It uses pointer indexes for quick navigation and browsing, and integrates with vim for comment editing. The cli is responsive and adjusts to the size of your terminal, with colorized and styled output.
On the read side, hnterminal uses the HN API to construct front page and comment trees. On the write side, it reads the webpage and constructs an API response from parsed information. Unfortunately, a write API does not exist for HN (that I know of). Login is accomplished with a login cookie that is only stored in memory as it runs. Even without logging in, hnterminal provides full read/browse functionality.
It wouldn't make sense to not send this comment from the tool itself! I didn't incorporate submit yet, as that isn't used very often - but this comment is edited using vim and submitted from hnterminal.
To get started:
hnterminal is an interactive REPL environment with commands like "get_front_page", "get_tree", "upvote", "reply_to", etc, each of which supports rich arguments and comes with full help documentation.It uses pointer indexes for quick navigation and browsing, and integrates with vim for comment editing. The cli is responsive and adjusts to the size of your terminal, with colorized and styled output.
On the read side, hnterminal uses the HN API to construct front page and comment trees. On the write side, it reads the webpage and constructs an API response from parsed information. Unfortunately, a write API does not exist for HN (that I know of). Login is accomplished with a login cookie that is only stored in memory as it runs. Even without logging in, hnterminal provides full read/browse functionality.
It wouldn't make sense to not send this comment from the tool itself! I didn't incorporate submit yet, as that isn't used very often - but this comment is edited using vim and submitted from hnterminal.