Skip to content
📃 Hacker News in the terminal
C++ CSS HTML CMake
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
cmake
media
snap
src
third-party
.gitignore
.gitmodules
CHANGELOG.md
CMakeLists.txt
LICENSE
README.md

README.md

HNTerm : Hacker News in terminal

Actions Status HNTerm on Snapcraft Snap Status HNTerm v0.2 badge MIT License Badge

Browse Hacker News interactively in your terminal

hnterm-demo

Details

HNTerm is a small console application written in C++ for browsing Hacker News. It queries the official HN API and interactively displays the current stories and comments. It uses libcurl to perform the GET requests to the API. The UI is rendered with ImTui. HNTerm fetches only the content that is currently visible on the screen. The window splits allow browsing multiple stories/comment sections at the same time.

Installing

Get it from the Snap Store

Linux

sudo snap install hnterm

Building from source

Linux and Mac:

git clone https://github.com/ggerganov/hnterm --recursive
cd hnterm
mkdir build && cd build
cmake ..
make

./bin/hnterm

Emscripten:

git clone https://github.com/ggerganov/hnterm --recursive
cd hnterm
mkdir build && cd build
emconfigure cmake ..
make

Live demo in the browser

The Emscripten port of HNTerm uses Emscripten's Fetch API instead of libcurl to perform requests to the HN API.

Demo: hnterm.ggerganov.com (not suitable for mobile devices)

You can’t perform that action at this time.