랭킹으로 돌아가기

bensadeh/circumflex

Go

🌿 It's Hacker News in your terminal

hacker-newsterminalclituiycombinatorconsolecommand-linehackernewsreaderclienthackernews
스타 성장
스타
2k
포크
47
주간 성장
이슈
0
1k2k
2020년 9월2022년 8월2024년 8월2026년 7월
아티팩트Go Modulesgo get github.com/bensadeh/circumflex
README

circumflex

circumflex is a command line tool for browsing Hacker News in your terminal

Main view

Main features

  • 🛋 Everything in one place — read both the comment section and articles in Reader Mode
  • 🌈 Syntax highlighting — syntax-aware formatting for comments and headlines
  • ⚡️ Vim-style navigation — scroll through, jump between and collapse threads with familiar keybindings

You might also like:

  • 🔍 Search — quickly find old submissions by searching all of HN
  • 🪟 Wide view — story list and content side by side on wide terminals
  • 🤹 Native terminal colors — you bring your own color scheme, circumflex does the rest
  • 💎 Nerd Fonts — full support for Nerd Fonts as icons
  • ❤️ Add to favorites — save interesting submissions for later

Installing

The binary name for circumflex is clx.

# Homebrew
brew install circumflex

# Nix
nix-shell -p circumflex

# AUR
yay -S circumflex

# Go
go install github.com/bensadeh/circumflex/cmd/clx@latest

# From source
go run ./cmd/clx

Features

Comment section

Press Enter to view the comment section.

The comment section has two modes: read mode and navigate mode.

In read mode, you can scroll using the usual vim bindings. You can also jump between top-level comments ( n/N), and you can expand and collapse threads by quote level (h/l) or all at once (Enter).

In navigate mode, you can individually select comments and collapse specific threads.

comment section comment section

circumflex is read-only and does not support logging in, voting or commenting.

Reader Mode

Press Space to read the linked article in Reader Mode. Just like in the comment section, you can jump between headers using n/N, and you can scroll using the usual vim bindings.

reader mode reader mode

Wide view

On wide terminals, the comment section and Reader Mode open in a pane next to the front page instead of replacing it. The split kicks in at 180 columns; tune the threshold (or force it with always/never) using -w/--wide-view:

clx --wide-view always

Press / to search all of Hacker News, powered by Algolia. Sort by popularity or date with s and narrow the date range with d.

The comment section and Reader Mode also support search in the content with /: search for the term and jump between matches with n/N.

Favorites

Press f to add the highlighted submission to your favorites. Remove it with x.

You can also add a submission by ID from the command line:

clx add [id]

Favorites are stored in favorites.toml in the config directory, human-readable and VCS-friendly. A favorites.json from earlier versions is migrated automatically.

History

Visited submissions are marked as read, and comments added since your last visit are highlighted.

History is stored in history.json in the cache directory. Disable tracking with -d/--no-history, or clear it with:

clx clear

Categories

Switch between categories with Tab. The header shows top, best, ask, show and favorites by default. Pick which ones appear (and in what order) with the --categories flag:

clx --categories top,new,best

Available categories are top, best, new, ask, show, jobs and favorites.

Configuration

Every flag can be set persistently in config.toml. To customize, write out the default config:

clx default-config

Flags take precedence over the config file.

The config directory is ~/.config/circumflex on Linux and ~/Library/Application Support/circumflex on macOS; the cache directory is ~/.cache/circumflex and ~/Library/Caches/circumflex.

Theme

circumflex uses your terminal's color scheme by default. To customize, write out the default config and edit it:

clx default-theme

The theme lives in theme.toml in the config directory.

Keymaps

Main view keybindings — press i in any view for the full list, including comment and reader mode.

Key Action
Enter View comments
Space Reader Mode
Tab Next category
/ Search Hacker News
r Refresh stories
o Open story in browser
c Open comments in browser
f Add to favorites
x Remove from favorites
u Toggle read
q Quit

Usage

Run clx help or man clx for a full list of available commands and flags.

관련 저장소
goq/telegram-list

List of telegram groups, channels & bots // Список интересных групп, каналов и ботов телеграма // Список чатов для программистов

telegramtelegram-group
5k842
clintonwoo/hackernews-react-graphql

Hacker News clone rewritten with universal JavaScript, using React and GraphQL.

TypeScriptnpmMIT Licensehnhacker-news
4.5k552
donnemartin/haxor-news

Browse Hacker News like a haxor: A Hacker News command line interface (CLI).

PythonPyPIOtherclipython
4.1k168
iSimar/HackerNews-React-Native

Hacker News iOS and Android App - Made with React Native.

JavaScriptnpmMIT Licensejavascriptandroid
i.imgur.com/3ijCDTL.png
3.7k601
miantiao-me/hacker-podcast

一个基于 AI 的 Hacker News 中文播客项目,每天自动抓取 Hacker News 热门文章,通过 AI 生成中文总结并转换为播客内容。

TypeScriptnpmGNU Affero General Public License v3.0aiai-agent
hacker-podcast.agi.li
2.6k239
hidroh/materialistic

A material-design Hacker News Android reader

JavaMavenApache License 2.0androidjava
play.google.com/store/apps/details
2.3k512
insin/react-hn

React-powered Hacker News client

JavaScriptnpmOtherreactreact-app
insin.github.io/react-hn
2.2k327
Livinglist/Hacki

An open-source Hacker News client built with Flutter.

DartGNU General Public License v3.0flutter-appandroid
livinglist.github.io/Hacki/
1.6k128
cheeaun/awesome-hacker-news

Awesome Hacker News: a collection of awesome Hacker News apps, libraries, resources and shiny things.

hacker-newshn
1.4k133
amitburst/HackerNews

A Hacker News reader iOS app written in Swift.

SwiftMIT Licensehacker-newsswift
1.3k235
nemild/hack-the-media

This repo collects examples of intentional and unintentional hacks of media sources

social-mediasocial-network
nemil.com/musings/hack-an-engineer.html
1.3k63
ccbikai/hacker-news

一个基于 AI 的 Hacker News 中文播客项目,每天自动抓取 Hacker News 热门文章,通过 AI 生成中文总结并转换为播客内容。

TypeScriptnpmGNU Affero General Public License v3.0aiai-agent
hacker-news.agi.li
1.3k109