HeadlinesBriefing favicon HeadlinesBriefing.com

hntui: Hacker News TUI for Terminal

Hacker News •
×

hntui is a terminal user interface for browsing Hacker News, built with OpenTUI and Effect. It supports all six HN feeds: Top, New, Best, Ask, Show, and Jobs. Users can navigate posts and comments with Vim-like keybindings or mouse, save posts for later, and open URLs in their browser.

The app features themes, a Knight Rider-style loader animation, and smooth scrolling. Installation is via a standalone binary (recommended) using curl to fetch and install to ~/.local/bin, or via Bun with `bun add -g @ahmd-sh/hntui`. Binaries are available for macOS (Apple Silicon) and Linux (x64, arm64).

Updates are handled automatically for binary installs or via Bun for package installs. The status bar hints at newer releases. Keybindings include j/k for navigation, Enter to open comments, o to open URLs, r to refresh, t to toggle themes, and q or Ctrl-C to quit.

Mouse support allows clicking tabs, stories, and comments, with right-click context menus for saving or opening links. Text selection requires holding Option (macOS) or Shift (Linux) during drag due to mouse capture. The dark theme uses black with orange accents; the light theme mirrors Hacker News' white background and orange topbar.