A command-line interface for browsing and searching your Factory Feed directly from the terminal.
npm install
npm run feed helpnpm link
feed help# Show 20 most recent posts
npm run feed list
# Show 10 posts
npm run feed list -- --limit 10
# Verbose output with URLs and engagement
npm run feed list -- -vBy Source:
npm run feed list -- --source twitter
npm run feed list -- --source reddit
npm run feed list -- --source githubBy Category:
npm run feed list -- --category love
npm run feed list -- --category bug
npm run feed list -- --category mention
npm run feed list -- --category questionBy Author:
npm run feed list -- --author bentossell
npm run feed list -- --author "jason" --limit 5Combine Filters:
npm run feed list -- --source twitter --category love --limit 5 -vnpm run feed search "supabase"
npm run feed search "bug report"npm run feed view twitter_2000539163565973531
npm run feed view 2000539163565973531 # ID suffix also worksnpm run feed statsShows:
- Total posts count
- Posts by source (Twitter, Reddit, GitHub)
- Posts by category (mention, bug, love, question, other)
- Top 10 authors
| Command | Description |
|---|---|
feed list |
List recent posts (default) |
feed stats |
Show feed statistics |
feed view <id> |
View single post details |
feed search <query> |
Search posts |
feed help |
Show help |
| Option | Description |
|---|---|
--source <name> |
Filter by source (twitter|reddit|github) |
--category <name> |
Filter by category (mention|bug|love|question|other) |
--author <name> |
Filter by author username |
--limit <number> |
Limit results (default: 20) |
-v, --verbose |
Show detailed output |
# Show recent Twitter mentions
npm run feed list -- --source twitter --category mention --limit 5
# Find bug reports
npm run feed list -- --category bug -v
# Search for specific topics
npm run feed search "authentication"
npm run feed search "@supabase"
# Get detailed stats
npm run feed stats
# View a specific post
npm run feed view twitter_2000539163565973531The CLI uses colored output for better readability:
- 🐦 Twitter posts in blue
- 🔴 Reddit posts in red
- 🔧 GitHub posts
- Categories color-coded (mentions in cyan, bugs in red, love in magenta, questions in yellow)
Optional Supabase integration (for future features):
SUPABASE_URL=your_project_url
SUPABASE_ANON_KEY=your_anon_keyThe CLI reads from docs/data/feed.json which is updated by the scraper:
npm run scrape # Update feed data
npm run feed list # View updated feedThe CLI source is in src/feed-cli.js. To modify:
- Edit
src/feed-cli.js - Test changes:
node src/feed-cli.js list - Add new commands by following existing patterns
- Use
--limitto control output size for large feeds - Use
-vfor detailed post information including engagement metrics - Search includes both post content and author names
- Post IDs are stable across feed refreshes (safe to bookmark)
- Archive posts from CLI
- Mark posts as read
- Export filtered results
- Real-time feed updates
- Interactive mode with arrow key navigation