GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ggerganov/hnterm: :page_with_curl: Hacker News in the terminal

BranchesTags
Open more actions menu

Latest commit

 

History

81 Commits
81 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cmake
cmake
 
 
media
media
 
 
snap
snap
 
 
src
src
 
 
third-party
third-party
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

HNTerm : Hacker News in terminal

Actions Status HNTerm on Snapcraft HNTerm v0.4 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

Mac OS

brew install ggerganov/ggerganov/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
  • Ubuntu 20.04 might need prerequisites: sudo apt install cmake libncurses-dev libcurl4-openssl-dev

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)

About

📃 Hacker News in the terminal

hnterm.ggerganov.com

Topics

hacker-newsnewsterminaltui

Resources

Readme
MIT license
Activity

Stars

322 stars

Watchers

6 watching

Forks

16 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.