A minimal application for browsing Hacker News on the terminal
A command-line interface (CLI) tool that allows users to browse the Top, New, and Best stories on Hacker News. The tool includes a minimalist text-based user interface (TUI) that is developed using Bubble Tea, Lip Gloss, and Bubble libraries.
- with Homebrew:
brew install karoloslykos/tap/hackertea
- Binaries for Linux, macOS, windows
Or just install it with go
:
go install github.com/KarolosLykos/hackertea@latest
Or just build it yourself (requires Go 1.1x+):
git clone https://github.com/KarolosLykos/hackertea.git
cd hackertea
go build .
- Read Top, New and Best stories.
- Fetch stories concurrently. (You can set the number of workers in the config file)
- In-memory thread-safe cache for caching news.
- A shiny UI to gaze your eyes upon.
- Tabs
- Separate pagination for each tab
- Fetch next pages
- Vim-like movements
- Bubbletea: The fun, functional and stateful way to build terminal apps.
- Bubbles: Common Bubble Tea components such as text inputs, viewports, spinners and so on
- Lip Gloss: Style, format and layout tools for terminal applications
The default theme is already loaded by default, but the good news is that you have the option to add any theme of your choice! Simply take a look at the "config-example.yaml" file to see the available options.
- Add more screens
- Add Comments screen
- Add User profile screen
- Add Ask HN screen
- Add Jobs screen
- Add Changelog
- Add additional styling options w/ Examples
- Multi-language Support
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
You can open issues for bugs you've found or features you think are missing. You can also submit pull requests to this repository. To get started, take a look at CONTRIBUTING.md