{"id":46695626,"url":"https://github.com/codeeagle/autoclip","last_synced_at":"2026-03-12T19:19:09.069Z","repository":{"id":343053177,"uuid":"1176101299","full_name":"CodeEagle/autoclip","owner":"CodeEagle","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-08T17:08:04.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-08T20:09:39.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeEagle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-08T16:10:24.000Z","updated_at":"2026-03-08T17:08:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/CodeEagle/autoclip","commit_stats":null,"previous_names":["codeeagle/autoclip"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/CodeEagle/autoclip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2Fautoclip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2Fautoclip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2Fautoclip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2Fautoclip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeEagle","download_url":"https://codeload.github.com/CodeEagle/autoclip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2Fautoclip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30283703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-09T05:04:44.145Z","updated_at":"2026-03-09T05:05:09.458Z","avatar_url":"https://github.com/CodeEagle.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoClip - 懒猫微服迁移项目\n\n\u003e [!NOTE]\n\u003e 本项目是 [zhouxiaoka/autoclip](https://github.com/zhouxiaoka/autoclip) 的懒猫微服迁移骨架，目标是在 LazyCat 中提供可访问的前端页面、FastAPI 后端、Celery Worker 与 Redis。\n\n\u003e [!IMPORTANT]\n\u003e 上游仓库当前没有稳定 release/tag；本迁移首版采用源码内声明的 `1.0.0` 作为应用版本，并在工作流里用提交 SHA 作为镜像标签来源。\n\n## 上游项目\n\n- 上游仓库: [zhouxiaoka/autoclip](https://github.com/zhouxiaoka/autoclip)\n- Homepage: [https://github.com/zhouxiaoka/autoclip](https://github.com/zhouxiaoka/autoclip)\n- License: MIT\n- 作者: zhouxiaoka\n\n## 应用简介\n\nAutoClip 是一个 AI 视频智能切片系统，支持视频下载、片段分析、自动切片、合集管理和异步任务处理。上游项目使用 React + Vite 前端、FastAPI 后端、Celery Worker、Redis 与 SQLite。\n\n## 本次迁移的保留服务\n\n- `web`: 自定义构建镜像，内部同时运行 `nginx + FastAPI`，对外提供单一 Web 入口\n- `worker`: 复用同一镜像，执行 Celery 异步任务\n- `redis`: 任务队列与缓存\n\n本次没有保留：\n\n- `celery-beat`: 上游定时任务服务，非最小可运行路径必需\n- `flower`: 调试/监控用途，可选，不纳入首版迁移\n\n## 访问方式\n\n- 应用入口: `https://autoclip.${LAZYCAT_APP_DOMAIN}`\n- 前端页面: `/`\n- FastAPI 文档: `/docs`\n- 健康检查: `/api/v1/health/`\n\n## 环境变量\n\n| 变量 | 必填 | 说明 |\n| --- | --- | --- |\n| `API_DASHSCOPE_API_KEY` | 是 | 通义千问 API Key，AI 处理能力依赖该变量 |\n| `API_MODEL_NAME` | 否 | 默认 `qwen-plus` |\n| `API_MAX_TOKENS` | 否 | 默认 `4096` |\n| `API_TIMEOUT` | 否 | 默认 `30` 秒 |\n| `CELERY_CONCURRENCY` | 否 | Worker 并发数，默认 `2` |\n\n## 数据目录\n\n| 懒猫路径 | 容器内路径 | 用途 |\n| --- | --- | --- |\n| `/lzcapp/var/data/autoclip` | `/app/data` | SQLite、项目数据、上传文件、输出文件、临时文件 |\n| `/lzcapp/var/log/autoclip` | `/app/logs` | 应用日志 |\n| `/lzcapp/var/data/autoclip/redis` | `/data` | Redis 持久化数据 |\n\n上游在 `docker-compose.yml` 中额外挂载了 `./uploads:/app/uploads`，但从配置与目录初始化逻辑看，最小可运行路径主要使用 `/app/data/uploads`，因此首版统一收敛到 `/app/data`。\n\n## 首次启动说明\n\n1. 配置 `API_DASHSCOPE_API_KEY`\n2. 首次启动时容器会自动初始化 SQLite 数据库\n3. `web` 服务会在内部启动 FastAPI (`8000`) 与 nginx (`3000`)\n4. 访问应用首页后即可使用 Web UI\n\n## 迁移说明\n\n- 上游 Dockerfile 只默认启动 FastAPI，虽然暴露了 `3000` 端口，但没有真正提供前端服务\n- 本迁移通过自定义 `Dockerfile.template`、`nginx` 配置和启动脚本，将构建好的前端静态资源与 API 汇聚到同一个 Web 入口\n- 工作流默认只负责构建并推送 `ghcr.io/\u003cowner\u003e/autoclip:\u003ccommit-sha\u003e` 主镜像，以兼容 `lzcat-trigger`\n\n## 待验证项\n\n- `registry.lazycat.cloud/...` 镜像地址需要在触发正式构建并完成 `copy-image` 后回写\n- Redis 懒猫镜像标签需要在真实构建/安装阶段替换为已复制到 LazyCat Registry 的地址\n- 本地或目标仓库完成首轮 Actions 构建后，需继续执行 `.lpk` 下载、安装与入口验收\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeeagle%2Fautoclip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeeagle%2Fautoclip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeeagle%2Fautoclip/lists"}