abbas-cli
v1.0.5
Published
Abbas_CLI for Reddit/Substack news and Pomodoro study sessions
Maintainers
Readme
Abbas_CLI
A lightweight CLI tool to aggregate and display news from Reddit and Substack in your terminal, plus a Pomodoro study timer with ASCII clock output.
Features
- ✅ Subscribe to Reddit subreddits
- ✅ Subscribe to Substack newsletters
- ✅ Fetch latest posts from all subscriptions
- ✅ Beautiful terminal formatting with colors and boxes
- ✅ Local JSON configuration storage
- ✅ No API keys required (uses public APIs)
- ✅ Configurable Pomodoro timer (25-50 minute focus sessions)
- ✅ Red ASCII tomato + box-drawing digital clock
- ✅ Pause / resume (in-session keys or
abbas pomodoro pause/resumefrom another terminal)
Installation
npm install -g abbas-cliQuick Start
Subscribe to a subreddit:
abbas reddit subscribe worldnews
abbas reddit subscribe Anthropic
abbas reddit subscribe technologyList your subscriptions:
abbas reddit listFetch latest posts:
abbas reddit updateUnsubscribe:
abbas reddit unsubscribe worldnewsSubstack
Subscribe to a newsletter (use the subdomain name or full URL):
abbas substack subscribe paulgraham
abbas substack subscribe https://example.substack.comList your subscriptions:
abbas substack listFetch latest posts:
abbas substack updateFor paywalled content (if you have a Substack session):
abbas substack update --cookie YOUR_CONNECT_SID_COOKIEUnsubscribe:
abbas substack unsubscribe paulgrahamCombined
Fetch from both Reddit and Substack at once:
abbas updatePomodoro
Show your current study/break plan:
abbas pomodoro planSet a default study duration (between 25 and 50 minutes):
abbas pomodoro set-study 40Start a Pomodoro sequence (tomato + digital clock):
abbas pomodoro start
abbas pomodoro start --study 50 --cycles 4While the timer is running:
- Press
pto pause,rto resume,qto quit (or Ctrl+C). - From another terminal:
abbas pomodoro pauseandabbas pomodoro resume.
Configuration
Your settings are stored in ~/.abbas-cli/subscriptions.json:
{
"subreddits": ["worldnews", "Anthropic", "technology"],
"substacks": ["https://paulgraham.substack.com"],
"pomodoro": {
"studyMinutes": 25
}
}You can edit this file directly if needed.
Usage
abbas --help
abbas reddit --help
abbas substack --help
abbas update --help
abbas pomodoro --helpExamples
# Subscribe to popular subreddits
abbas reddit subscribe worldnews
abbas reddit subscribe programming
abbas reddit subscribe golang
# Subscribe to tech newsletters
abbas substack subscribe paulgraham
# View all subscriptions
abbas reddit list
abbas substack list
# Fetch new posts
abbas reddit update
abbas substack update
# Fetch from all sources
abbas update
# Study with Pomodoro
abbas pomodoro set-study 45
abbas pomodoro start --cycles 4Popular Subreddits
worldnews— Global newstechnology— Tech newsprogramming— Programming newspython— Python contentgolang— Go programmingwebdev— Web developmentlearnprogramming— Learning resourcesAnthropic— Claude/Anthropic news
Technical Details
- Reddit API: Uses public Reddit JSON API (
reddit.com/r/{subreddit}/new.json) - Substack API: Uses public Substack API (
{newsletter}.substack.com/api/v1/posts) - Storage: JSON file stored in
~/.abbas-cli/subscriptions.json - Pomodoro: Adaptive profile based on focus duration (25-50 minutes)
- Requirements: Node.js 18+
License
MIT
