{"id":19549390,"url":"https://github.com/hanbings/antares","last_synced_at":"2025-06-10T14:05:35.793Z","repository":{"id":149227446,"uuid":"621379126","full_name":"hanbings/antares","owner":"hanbings","description":"😶‍🌫️ Antares - 基于 Cloudflare Workers、Cloudflare KV 和 Cloudflare R2 的随机图片 API 服务端","archived":false,"fork":false,"pushed_at":"2023-05-25T08:13:58.000Z","size":15,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-26T20:33:56.463Z","etag":null,"topics":["cloudflare","cloudflare-kv","cloudflare-r2","cloudflare-workers","serverless"],"latest_commit_sha":null,"homepage":"https://cuteverse.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanbings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-03-30T14:43:24.000Z","updated_at":"2025-04-18T16:16:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"389cc53e-cc94-4786-9880-ef4cf2d51901","html_url":"https://github.com/hanbings/antares","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanbings%2Fantares","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanbings%2Fantares/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanbings%2Fantares/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanbings%2Fantares/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanbings","download_url":"https://codeload.github.com/hanbings/antares/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanbings%2Fantares/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259088555,"owners_count":22803657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cloudflare","cloudflare-kv","cloudflare-r2","cloudflare-workers","serverless"],"created_at":"2024-11-11T03:59:57.527Z","updated_at":"2025-06-10T14:05:35.785Z","avatar_url":"https://github.com/hanbings.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e😶‍🌫️ Antares 安塔尔斯\u003c/h1\u003e\n\n## ⚡️ 快速开始\n\n1. 下载本仓库的代码\n\n2. 安装 [Cloudflare](https://www.cloudflare.com/) 的 CLI 工具 Wrangler `npm install -g wrangler`\n\n3. 将 Wrangler 安装后使用 `wrangler login` 登录\n\n4. 在代码的根目录执行 `npm install` 安装必要的依赖\n\n5. 使用 `wrangler publish` 上传到 Cloudflare Workers\n\n6. 创建 [Cloudflare KV](https://www.cloudflare.com/products/workers-kv/) 缓存桶\n\n   前往 Workers 的 Settings 页面 - 选择 Variables 选项卡 - 下滑至 **KV Namespace Bindings** 并创建：\n\n   **Variable name** 为 `ANTARES_KV` 并选中刚刚创建的 Cloudflare KV \n\n7. 创建 [Cloudflare R2](https://www.cloudflare.com/products/r2/) 存储桶\n\n   前往 Workers 的 Settings 页面 - 选择 Variables 选项卡 - 下滑至 **R2 Bucket Bindings** 并创建：\n\n   **Variable name** 为 `ANTARES_R2` 并选中刚刚创建的 Cloudflare R2\n\n8. 创建变量 `ANTARES_UPLOAD_SECRET`、`ANTARES_UPLOAD_URL` 和 `ANTARES_STORAGE_URL`\n\n   前往 Workers 的 Settings 页面 - 选择 Variables 选项卡 - 下滑至 **Environment Variables** 并创建：\n   \n   | 变量名                | 描述                       | 示例                                 |\n   | --------------------- | -------------------------- | ------------------------------------ |\n   | ANTARES_UPLOAD_SECRET | 用于校验前端页面的上传权限 | 9f7c87a1-a5a2-3516-8723-1f683445224e |\n   | ANTARES_UPLOAD_URL    | 前端上传文件的目标后端地址 | https://example.com/upload           |\n   | ANTARES_STORAGE_URL   | 存储桶根地址               | https://s0.example.com               |\n\n\n\n## 🍀 关于开源\n\n开源是一种精神。\n\n开源运动所坚持的原则：\n\n1. 坚持开放与共享，鼓励最大化的参与与协作。\n2. 尊重作者权益，保证软件程序完整的同时，鼓励修改的自由以及衍生创新。\n3. 保持独立性和中立性。\n\n与来自五湖四海的开发者共同**讨论**技术问题，**解决**技术难题，**促进**应用的发展是开源的本质目的。\n\n**众人拾柴火焰高，开源需要依靠大家的努力，请自觉遵守开源协议，弘扬开源精神，共建开源社区！**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanbings%2Fantares","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanbings%2Fantares","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanbings%2Fantares/lists"}