Thursday, January 2, 2026
【免费下载链接】smaugArchive your Twitter/X bookmarks to markdown with AI-powered analysis. Supports Claude Code and OpenCode for multi-model flexibility. Like a dragon hoarding treasure, Smaug collects the valuable things you bookmark.项目地址: https://gitcode.com/gh_mirrors/sma/smaug
@simonw - Gist Host Fork for Rendering GitHub Gists
I forked the wonderful gistpreview.github.io to create gisthost.github.io
- Tweet:https://x.com/simonw/status/123456789
- Link:https://gisthost.github.io/
- Filed:gisthost-gist-rendering.md
- What:Free GitHub Pages-hosted tool that renders HTML files from Gists.
@tom_doerr - Whisper-Flow Real-time Transcription
This is amazing - real-time transcription with Whisper
- Tweet:https://x.com/tom_doerr/status/987654321
- Link:https://github.com/dimastatz/whisper-flow
- Filed:whisper-flow.md
- What:Real-time speech-to-text using OpenAI Whisper with streaming support.
### knowledge目录结构 Smaug将不同类型的内容组织到`knowledge`目录下的不同子目录中,形成一个结构化的知识库: #### knowledge/tools/*.md GitHub仓库会生成单独的文件,包含丰富的元数据和关键信息: ```markdown --- title: "whisper-flow" type: tool date_added: 2026-01-02 source: "https://github.com/dimastatz/whisper-flow" tags: [ai, transcription, whisper, streaming] via: "Twitter bookmark from @tom_doerr" --- Real-time speech-to-text transcription using OpenAI Whisper... ## Key Features - Streaming audio input - Multiple language support - Low latency output ## Links - [GitHub](https://github.com/dimastatz/whisper-flow) - [Original Tweet](https://x.com/tom_doerr/status/987654321)knowledge/articles/*.md
文章类内容同样会生成带有元数据的Markdown文件,保存在knowledge/articles/目录下。
快速开始指南
只需几个简单步骤,即可开始使用Smaug管理你的书签和知识:
安装bird CLI(Twitter API包装器)请参考https://github.com/steipete/bird获取安装说明
克隆并安装Smaug
git clone https://gitcode.com/gh_mirrors/sma/smaug cd smaug npm install运行设置向导
npx smaug setup安装向导将:
- 创建所需目录
- 指导你获取Twitter凭证
- 创建配置文件
运行完整任务(获取+使用Claude处理)
npx smaug run
高级使用与自动化
Smaug提供了丰富的命令行选项和自动化功能,让你可以根据自己的需求定制使用方式。
手动运行命令
# 完整任务(获取+使用Claude处理) npx smaug run # 从书签获取(默认) npx smaug fetch 20 # 获取所有书签(分页 - 需要git版本的bird CLI) npx smaug fetch --all npx smaug fetch --all --max-pages 5 # 限制为5页 # 从点赞获取 npx smaug fetch --source likes # 同时从书签和点赞获取 npx smaug fetch --source both # 处理已获取的推文 npx smaug process # 强制重新处理(忽略重复) npx smaug process --force # 检查待处理内容 node -e "console.log(require('./.state/pending-bookmarks.json').count)"自动化设置
Smaug可以设置为每30分钟自动运行,确保你的书签及时得到处理和归档:
选项A:PM2(推荐)
npm install -g pm2 pm2 start "npx smaug run" --cron "*/30 * * * *" --name smaug pm2 save pm2 startup # 设置开机启动选项B:Cron
crontab -e # 添加: */30 * * * * cd /path/to/smaug && npx smaug run >> smaug.log 2>&1成本优化与令牌跟踪
使用AI服务会产生一定成本,Smaug提供了令牌使用跟踪功能,帮助你监控和优化支出。
令牌使用跟踪
使用-t标志跟踪API成本:
npx smaug run -t # 或 npx smaug run --track-tokens运行结束时会显示详细的使用情况:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📊 TOKEN USAGE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Main (sonnet): Input: 85 tokens <$0.01 Output: 5,327 tokens $0.08 Cache Read: 724,991 tokens $0.22 Cache Write: 62,233 tokens $0.23 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💰 TOTAL COST: $0.53 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━【免费下载链接】smaugArchive your Twitter/X bookmarks to markdown with AI-powered analysis. Supports Claude Code and OpenCode for multi-model flexibility. Like a dragon hoarding treasure, Smaug collects the valuable things you bookmark.项目地址: https://gitcode.com/gh_mirrors/sma/smaug
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考