{"id":14338523,"url":"https://github.com/guobao2333/DeepLX-Serverless","last_synced_at":"2025-08-19T06:33:11.708Z","repository":{"id":252204106,"uuid":"839732152","full_name":"guobao2333/DeepLX-Serverless","owner":"guobao2333","description":"DeepL Free API for Serverless","archived":false,"fork":false,"pushed_at":"2024-11-29T00:17:04.000Z","size":130,"stargazers_count":452,"open_issues_count":1,"forks_count":140,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-29T01:22:41.256Z","etag":null,"topics":["api","deepl","deeplx","free-api","js","serverless","translation-api","translator"],"latest_commit_sha":null,"homepage":"https://deeplx-serverless.vercel.app","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/guobao2333.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}},"created_at":"2024-08-08T08:07:39.000Z","updated_at":"2024-11-29T00:14:33.000Z","dependencies_parsed_at":"2024-08-26T06:01:32.637Z","dependency_job_id":"21f1988f-bb7d-4d9c-9141-da3b423a5456","html_url":"https://github.com/guobao2333/DeepLX-Serverless","commit_stats":null,"previous_names":["guobao2333/deeplx-serverless"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobao2333%2FDeepLX-Serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobao2333%2FDeepLX-Serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobao2333%2FDeepLX-Serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobao2333%2FDeepLX-Serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guobao2333","download_url":"https://codeload.github.com/guobao2333/DeepLX-Serverless/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230328777,"owners_count":18209392,"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":["api","deepl","deeplx","free-api","js","serverless","translation-api","translator"],"created_at":"2024-08-26T06:00:25.564Z","updated_at":"2025-08-19T06:33:11.690Z","avatar_url":"https://github.com/guobao2333.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# DeepLX Serverless\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/guobao2333/DeepLX-Serverless\"\u003e\u003cimg alt=\"Repository\" src=\"https://img.shields.io/badge/Github-%230A0A0A.svg?\u0026style=flat-square\u0026logo=Github\u0026logoColor=white\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nDeepLX Serverless是一个基于DeepL翻译网页版且无需令牌的Serverless版本，与原项目[DeepLX](https://github.com/OwO-Network/DeepLX)的区别在于**利用了无服务器函数(边缘函数)请求IP不固定的特性**，有效避免了`Error 429`（不过嘛凡事总有例外¯\\\\\\_(ツ)_/¯）\n\n**3.0版本开始完全基于[OwO-Network/DeepLX](https://github.com/OwO-Network/DeepLX)和DeepL网页版数据进行重写。**  \n**2.0及之前版本在[LegendLeo/deeplx-serverless](https://github.com/LegendLeo/deeplx-serverless)的基础上进行重构。**\n\n## Prerequisites | 准备工作\n\u003e [!IMPORTANT]\n\u003e 有时`main`分支的合并可能不及时，或者你希望提前体验新功能，请切换到`dev`分支获取代码。\n\n- 支持 `Nodejs ≥18` 或 `Docker` 或 `Serverless Function` 的服务器\n- (可选) 拥有[Vercel](https://vercel.com)的账号\n\n### Deploy | 部署\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/guobao2333/DeepLX-Serverless)\n\n```bash\ngit clone https://github.com/guobao2333/DeepLX-Serverless\ncd DeepLX-Serverless\nnpm i\nnpm run start\n```\n\n配置可编辑`.env`或者提供启动参数来修改。\n\n### Docker | 容器部署\n\n🐳预构建：\n```bash\ndocker run -d -p 6119:6119 ghcr.io/guobao2333/deeplx-serverless\n```\n\n自行构建：\n```bash\ndocker build -t deeplxs .\ndocker run -d -p 6119:6119 deeplxs\n```\n\n### Startup Parameters | 启动参数\n\u003e [!IMPORTANT]\n\u003e 此功能在 2.0.0 及以上版本中可用。  \n\u003e 启动参数会覆盖`.env`\n\n有时你可能想在启动服务时添加参数。  \n比如添加一个`-c`参数来允许所有跨域请求：\n```bash\nnpm run start -- -c\n```\n\n💡使用`-h`来获取所有参数。\n\n## How To Use | 如何使用\n\n* 详细调用参数请查看[项目Wiki](https://github.com/guobao2333/DeepLX-Serverless/wiki)。\n\n### Http Call | 网络请求\n\n```bash\ncurl -X POST 'http://localhost:6119/translate' -H 'Content-Type: application/json' -d '{\"text\": \"你好，世界！\", \"source_lang\": \"zh\", \"target_lang\": \"en\"}'\n```\n\n### Internal Call | 集成使用\n\n运行`npm test`来测试翻译接口。还可以集成到你的项目中来使用DeepL翻译服务。\n\n简单的示例：\n```javascript\nimport { translate } from './src/translate.js';\ntranslate('how are you?', 'en', 'zh', '', false, false)\n.then(result =\u003e {\n  console.log(result)\n});\n```\n\n## Star History | 收藏趋势\n\n\u003ca href=\"https://star-history.com/#guobao2333/DeepLX-Serverless\u0026Date\"\u003e\n \u003cpicture\u003e\n   \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=guobao2333/DeepLX-Serverless\u0026type=Date\u0026theme=dark\" /\u003e\n   \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=guobao2333/DeepLX-Serverless\u0026type=Date\" /\u003e\n   \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=guobao2333/DeepLX-Serverless\u0026type=Date\" /\u003e\n \u003c/picture\u003e\n\u003c/a\u003e\n\n## Contribute | 贡献\n1. 获取`dev`或`main`分支的代码\n2. 提交你的更改并描述提交内容\n3. 创建一个`Pull Requests`\n\n如果你是第一次贡献，那么请查看[《如何为开源做贡献》](https://opensource.guide/how-to-contribute/)\n\n## Thanks | 感谢\n\n它们是本项目的根本，没有它们就没有本项目。\n\n1. [OwO-Network/DeepLX](https://github.com/OwO-Network/DeepLX)\n2. [LegendLeo/deeplx-serverless](https://github.com/LegendLeo/deeplx-serverless)\n3. [bropines/Deeplx-vercel](https://github.com/bropines/Deeplx-vercel)\n\n## Disclaimer | 免责声明\n请勿依赖本项目，因基于DeepL网页版数据，可能随时罢工。如果您有大量内容需要翻译，请购买DeepL官方翻译API，DeepLXS始终受到DeepL政策限制。\n\n本项目目前处于开发状态，实现及其简陋，部分功能已编写文档不代表已实现。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguobao2333%2FDeepLX-Serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguobao2333%2FDeepLX-Serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguobao2333%2FDeepLX-Serverless/lists"}