A simple Rust CLI tool for fetching data from reddit, and hacker news with AI chat.
- Reddit: Fetch posts from any subreddit
- Hacker News: Get top stories from Hacker News
- AI Chat: Interact with AI models via HackClubAI
cargo install trendy-cliOr build from source:
# COPY AND PASTE (if you have rust installed).
git clone https://github.com/theawakener0/trendy-cli.git
t
cd trendy-cli
cargo build --release
e
trendy-cli --helpOptions:
-a, --api-key HackClubAI API key
-l, --limit Number of items to fetch [default: 10]
-s, --subreddit Subreddit to fetch [default: rust]
-n, --hn Fetch Hacker News top stories
-r, --rd Fetch Reddit posts
-h, --help Print help
Print help
help
trendy-cli -r -l 5 -s programmingtrendy-cli -n -l 10Run without flags to enter interactive mode:
trendy-cli| Command | Description |
|---|---|
/help |
Show available commands |
/clear |
Clear the screen |
/rd |
Fetch posts from a subreddit |
/hn |
Fetch top Hacker News stories |
/model |
Change the AI model |
/models |
List available AI models |
/quit |
Exit the program |
Set your HackClubAI API key via:
- Command line:
-aor--api-keyflag - JSON config:
~/.config/trendy-cli/config.json - Environment variable:
HACKCLUB_API_KEY .envfile in the project directory
The default AI model is moonshotai/kimi-k2.5. Change it using the /model and /models to view the available models command in REPL mode.