{"id":25546989,"url":"https://github.com/fishjar/kiss-proxy","last_synced_at":"2025-04-11T19:57:31.154Z","repository":{"id":191980856,"uuid":"684491922","full_name":"fishjar/kiss-proxy","owner":"fishjar","description":"基于 cloudflare workers 的简单接口代理，可用于 KISS Translator 翻译服务。","archived":false,"fork":false,"pushed_at":"2023-09-01T02:52:50.000Z","size":27,"stargazers_count":35,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T15:53:05.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fishjar.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}},"created_at":"2023-08-29T08:37:40.000Z","updated_at":"2025-03-22T10:58:27.000Z","dependencies_parsed_at":"2023-09-01T21:33:20.963Z","dependency_job_id":null,"html_url":"https://github.com/fishjar/kiss-proxy","commit_stats":null,"previous_names":["fishjar/kiss-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishjar%2Fkiss-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishjar%2Fkiss-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishjar%2Fkiss-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishjar%2Fkiss-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fishjar","download_url":"https://codeload.github.com/fishjar/kiss-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473112,"owners_count":21109628,"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":[],"created_at":"2025-02-20T09:19:07.904Z","updated_at":"2025-04-11T19:57:31.105Z","avatar_url":"https://github.com/fishjar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KISS-PROXY\n\n基于 `cloudflare workers` 的简单接口代理，可用于 [KISS Translator](https://github.com/fishjar/kiss-translator) 翻译服务。\n\n## 1、准备\n\n- 一个 cloudflare（https://www.cloudflare.com/） 帐号\n- 一个可以访问的域名（需要域名是因为默认的 `*.workers.dev` 无法访问）\n\n## 2、部署\n\n```sh\ngit clone https://github.com/fishjar/kiss-proxy.git\ncd kiss-proxy\nyarn install\nyarn deploy\n```\n\n## 3、设置自定义域名\n\n- 登录 cloudflare\n- 找到刚才部署的 worker\n  - 触发器 \u003e 添加自定义域\n\n## 4、最终接口地址\n\n- 谷歌翻译: `https://\u003c设置的域名地址\u003e/gt`\n- OpenAI: `https://\u003c设置的域名地址\u003e/openai`\n\n## 5、添加更多代理\n\n找到源代码，修改这一段：\n\n```js\nconst sites = {\n  \"/gt\": {\n    method: \"GET\",\n    url: \"https://translate.googleapis.com/translate_a/single\",\n  },\n  \"/openai\": {\n    method: \"POST\",\n    url: \"https://api.openai.com/v1/chat/completions\",\n  },\n};\n```\n\n然后重新部署：\n\n```sh\nyarn deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishjar%2Fkiss-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffishjar%2Fkiss-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishjar%2Fkiss-proxy/lists"}