Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
/ aigc-weekly Public template

Agili 的 AIGC 周刊 - 一个由 Agentic AI Agent 驱动的 AIGC(人工智能生成内容)精选周刊。

License

Notifications You must be signed in to change notification settings

miantiao-me/aigc-weekly

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agili 的 AIGC 周刊

一个由 Agentic AI Agent 驱动的 AIGC(人工智能生成内容)精选周刊。本项目利用最新的 AI 和 Serverless 技术,为您提供最新的资讯、工具和资源。


在线阅读: https://aigc-weekly.agi.li

RSS订阅: https://aigc-weekly.agi.li/rss.xml

aigc-weekly

🚀 特性

  • AI 智能策展:利用 Agentic AI Agent 自动发现和筛选内容。
  • 现代技术栈:基于 Next.js 15、Payload CMS 3.0 和 Cloudflare 边缘基础设施构建。
  • Serverless 架构:完全部署在 Cloudflare (Workers, D1, R2, Containers) 上,实现高性能和低延迟。
  • Agent MCP 集成:使用模型上下文协议 (MCP) 允许 AI Agent 直接与 CMS 交互。

🛠 技术栈

🏗 架构

本项目包含三个主要组件:

  1. Next.js 应用 (app/):负责面向读者的前端页面以及 Payload CMS 管理界面。
  2. Claude Agent (agent/):一个独立的 Agent 服务,运行在 Cloudflare Containers 上,负责收集信息并通过 MCP 更新 CMS(WIP)。
  3. Cloudflare Worker (worker/):控制 Container 运行。

🏁 快速开始

前置要求

  • Node.js:v22 或更高版本
  • pnpm:v10 或更高版本
  • Cloudflare 账号:用于 D1、R2 和 Workers 部署。

安装

  1. 克隆仓库:

    git clone https://github.com/miantiao-me/aigc-weekly.git
    cd aigc-weekly
  2. 安装依赖:

    pnpm install

配置

  1. 环境变量: 配置必要的环境变量:

    • 复制 .env.example.env.local 并填写相应值。
    • 复制 worker/.env.exampleworker/.env.local 并填写相应值。

    确保你已经配置了必要的 Cloudflare 绑定, 你需要在 wrangler.jsonc 中配置以下绑定:

    • D1:数据库
    • R2:对象存储
    • PAYLOAD_SECRET:一个安全的随机字符串。
  2. 生成类型

    pnpm generate:types
  3. 配置 MCP 和 Agent: 你可以在 agent/mcp.json 配置更多的 MCP Server , 在 agent/.claude 修改 Agent 的技能、子 Agent 等配置。

    项目使用 Firecrawl 进行网页爬取和信息提取, 你需要在 Firecrawl 注册账号并获取 API Key,然后在 worker/.env.local 中配置 FIRECRAWL_API_KEY

本地运行

  • Next.js 应用

    pnpm dev

    访问应用:http://localhost:3000http://localhost:3000/admin

  • Claude Agent

    pnpm dev:agent

    使用 POST 请求 测试 Agent:

    curl -v 'http://localhost:2442/chat' \
      -X POST \
      --data-raw '{
        "prompt": "/weekly"
      }'
    

    或者使用 WebSocket 连接 ws://localhost:2442/ws, 并发送相同的 JSON 数据,更多请求参数请参考 Claude Agent SDK 文档

  • Cloudflare Worker

    pnpm dev:worker

    需要安装 Docker 以运行本地沙箱。访问 API:http://localhost:8787/chat 或者 ws://localhost:8787/ws

🚀 部署

本项目设计为部署在 Cloudflare 上。

  1. 部署数据库和应用

    pnpm deploy

    此命令会运行 deploy:database(迁移)和 deploy:app(OpenNext 构建与上传)。

  2. 部署 Worker

    pnpm deploy:worker

📂 项目结构

  • app/:Next.js 应用源代码。
  • agent/:Claude Agent 源代码和配置。
  • worker/:Cloudflare Worker 源代码。
  • collections/:Payload CMS 数据模型。
  • migrations/:数据库迁移文件。
  • public/:静态资源。

📄 许可证

本项目采用 GNU Affero General Public License v3.0 许可证。

About

Agili 的 AIGC 周刊 - 一个由 Agentic AI Agent 驱动的 AIGC(人工智能生成内容)精选周刊。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.