💡 Summary
AIGC Weekly is an AI-driven curated newsletter providing the latest in AI-generated content tools and resources.
🎯 Target Audience
🤖 AI Roast: “Powerful, but the setup might scare off the impatient.”
Risk: Medium. Review: shell/CLI command execution; outbound network access (SSRF, data egress); API keys/tokens handling and storage. Run with least privilege and audit before enabling in production.
Agili 的 AIGC 周刊
一个由 Agentic AI Agent 驱动的 AIGC(人工智能生成内容)精选周刊。本项目利用最新的 AI 和 Serverless 技术,为您提供最新的资讯、工具和资源。
在线阅读: https://aigc-weekly.agi.li
RSS订阅: https://aigc-weekly.agi.li/rss.xml
🚀 特性
- AI 智能策展:利用 Agentic AI Agent 自动发现和筛选内容。
- 现代技术栈:基于 Next.js 15、Payload CMS 3.0 和 Cloudflare 边缘基础设施构建。
- Serverless 架构:完全部署在 Cloudflare (Workers, D1, R2, Containers) 上,实现高性能和低延迟。
- Agent MCP 集成:使用模型上下文协议 (MCP) 允许 AI Agent 直接与 CMS 交互。
🛠 技术栈
- 框架:Next.js (App Router) & OpenNext
- CMS:Payload CMS (Headless)
- 数据库:Cloudflare D1 (SQLite)
- 存储:Cloudflare R2 (对象存储)
- Agent 框架:OpenCode
- Agent 运行时:Cloudflare Containers (需要付费套餐,或者在本地运行)
- 边缘运行时:Cloudflare Workers
🏗 架构
本项目包含三个主要组件:
- Next.js 应用 (
app/):负责面向读者的前端页面以及 Payload CMS 管理界面。 - OpenCode Agent (
agent/):一个独立的 Agent 服务,运行在 Cloudflare Containers 上,负责收集信息并通过 MCP 更新 CMS。 - Cloudflare Worker (
worker/):转发请求到 Container 并控制其生命周期。
🏁 快速开始
前置要求
- Node.js:v22 或更高版本
- pnpm:v10 或更高版本
- Cloudflare 账号:用于 D1、R2 和 Workers 部署。
安装
-
克隆仓库:
git clone https://github.com/miantiao-me/aigc-weekly.git cd aigc-weekly -
安装依赖:
pnpm install
配置
-
环境变量: 配置必要的环境变量:
- 复制
.env.example为.env.local并填写相应值。 - 复制
worker/.env.example为worker/.env.local并填写相应值。
确保你已经配置了必要的 Cloudflare 绑定, 你需要在
wrangler.jsonc中配置以下绑定:D1:数据库R2:对象存储PAYLOAD_SECRET:一个安全的随机字符串。
- 复制
-
生成类型:
pnpm generate:types -
配置 MCP 和 Agent: 你可以在
agent/opencode.json配置 MCP Server 和模型,在agent/.opencode/目录修改 Agent 的技能、子 Agent 和命令等配置。项目使用 Firecrawl 进行网页爬取和信息提取, 你需要在 Firecrawl 注册账号并获取 API Key,然后在
worker/.env.local中配置FIRECRAWL_API_KEY。
本地运行
-
Next.js 应用:
pnpm dev访问应用:
http://localhost:3000和http://localhost:3000/admin。 -
Cloudflare Worker(包含 Agent):
pnpm dev:worker需要安装 Docker 以运行本地沙箱。Worker 会自动启动 OpenCode Agent 容器。
🚀 部署
本项目设计为部署在 Cloudflare 上。
-
部署数据库和应用:
pnpm deploy此命令会运行
deploy:database(迁移)和deploy:app(OpenNext 构建与上传)。 -
部署 Worker:
pnpm deploy:worker
📂 项目结构
app/:Next.js 应用源代码。agent/:OpenCode Agent 配置和技能定义。worker/:Cloudflare Worker 源代码。collections/:Payload CMS 数据模型。migrations/:数据库迁移文件。public/:静态资源。
🤖 AI 代码助手
本项目包含 AGENTS.md 文件,为 AI 代码助手(如 Claude Code、Cursor、Copilot 等)提供开发指南,包括命令、代码风格和架构信息。
📄 许可证
本项目采用 GNU Affero General Public License v3.0 许可证。
Pros
- Utilizes cutting-edge AI technology
- Offers a curated selection of resources
- Supports serverless architecture for scalability
Cons
- Requires Cloudflare account for deployment
- Setup can be complex for beginners
- Dependency on external services like Firecrawl
Related Skills
luxor-claude-marketplace
A“Powerful, but the setup might scare off the impatient.”
Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.
Copyright belongs to the original author miantiao-me.
