面向年轻程序员的 AI×开发者情报聚合站,每天 10 分钟掌握 AI 开发动态。
- 精选栏目:今日必看 / 工具开源 / 工程实践 / 国内动态 / 论文速递 / 产品动态
- 多源聚合:GitHub Trending、Hacker News、arXiv、Dev.to、Hugging Face、机器之心、36氪、InfoQ
- AI 摘要(可选):英文内容自动生成中文摘要
- 自动更新:GitHub Actions 每 6 小时自动抓取
- 零成本部署:GitHub Pages 静态托管
# 安装依赖
npm install
# 抓取数据
npm run fetch
# 本地预览
npm run dev
# 或使用 http-server
npx http-server -p 8080然后访问 http://localhost:3000 或 http://localhost:8080
- Fork 本仓库
- 进入仓库 Settings → Pages
- Source 选择 "GitHub Actions"
- 手动触发一次 Actions 或等待自动运行
如果你想启用英文内容的 AI 摘要功能:
- 进入仓库 Settings → Secrets and variables → Actions
- 添加以下 Secrets:
| Secret 名称 | 说明 | 示例值 |
|---|---|---|
AI_SUMMARY_ENABLED |
是否启用 | true |
AI_PROVIDER |
提供商 | openai 或 anthropic |
AI_API_KEY |
API 密钥 | sk-xxx... |
AI_MODEL |
模型名称 | gpt-4o-mini 或 claude-3-haiku-20240307 |
A_news/
├── index.html # 前端页面
├── fetch-data.js # 数据抓取脚本
├── server.js # 本地开发服务器
├── package.json # 项目配置
├── data/
│ └── latest.json # 抓取的数据
└── .github/
└── workflows/
└── fetch.yml # GitHub Actions 自动化
编辑 .github/workflows/fetch.yml 中的 cron 表达式:
schedule:
- cron: '0 0,6,12,18 * * *' # 每 6 小时在 fetch-data.js 中添加新的抓取函数,参考现有的 fetchXxx() 函数格式。
- 前端:纯 HTML/CSS/JS(无框架依赖)
- 数据抓取:Node.js + axios + cheerio + rss-parser
- 部署:GitHub Pages + GitHub Actions
MIT
