🦀 ClawHub
daily-digest-ai
by @richball876
Fetches RSS feeds from 92 top Hacker News blogs (curated by Karpathy) plus 3 Chinese tech media (36氪, 少数派, InfoQ中文), uses AI to score and filter articles, an...
⚡ When to Use
💡 Examples
One-command run (with saved config)
npx -y bun {baseDir}/scripts/digest.ts --hours 48 --top-n 15 --lang zh
> The script auto-generates the output file as ./digest-YYYYMMDD.md in the current directory. Use --output to customize.
With environment variables (first run)
export OPENAI_API_KEY=""
export OPENAI_API_BASE="https://api.deepseek.com/v1" # Optional, default: https://api.openai.com/v1
export OPENAI_MODEL="deepseek-chat" # Optional, auto-detected if omitted
Optional fallback:
export GEMINI_API_KEY=""npx -y bun {baseDir}/scripts/digest.ts --hours 48 --top-n 15 --lang zh
📋 Tips & Best Practices
"OPENAI_API_KEY not set"
Provide an OpenAI-compatible API Key (e.g. DeepSeek, OpenAI). Optionally setOPENAI_API_BASE for custom endpoints."OpenAI API request failed"
The script automatically falls back to Gemini. Make sureGEMINI_API_KEY is set."Failed to fetch N feeds"
Some RSS sources may be temporarily unavailable. The script skips failed sources and continues."No articles found in time range"
Try expanding the time range (e.g., from 24 hours to 48 hours).TERMINAL
clawhub install daily-digest-ai