{"id":14988954,"url":"https://github.com/soruly/anilist-chinese","last_synced_at":"2025-07-15T18:40:56.122Z","repository":{"id":3877692,"uuid":"51200755","full_name":"soruly/anilist-chinese","owner":"soruly","description":"Translate anime titles on anilist.co to Chinese","archived":false,"fork":false,"pushed_at":"2025-04-02T09:51:07.000Z","size":7591,"stargazers_count":51,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T10:37:45.234Z","etag":null,"topics":["anilist","anime","cloudflare-workers","greasemonkey","serverless","tampermonkey"],"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/soruly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["soruly"],"patreon":"soruly","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.me/soruly/"}},"created_at":"2016-02-06T11:57:32.000Z","updated_at":"2025-04-02T09:51:17.000Z","dependencies_parsed_at":"2023-10-10T23:11:46.738Z","dependency_job_id":"4a29b532-ba14-4f16-b38b-abcda6f293d6","html_url":"https://github.com/soruly/anilist-chinese","commit_stats":{"total_commits":1436,"total_committers":9,"mean_commits":"159.55555555555554","dds":"0.14902506963788298","last_synced_commit":"01f23aed00edab4cda0cd605941f9cdade3a0435"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soruly%2Fanilist-chinese","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soruly%2Fanilist-chinese/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soruly%2Fanilist-chinese/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soruly%2Fanilist-chinese/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soruly","download_url":"https://codeload.github.com/soruly/anilist-chinese/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681598,"owners_count":21144715,"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":["anilist","anime","cloudflare-workers","greasemonkey","serverless","tampermonkey"],"created_at":"2024-09-24T14:17:29.315Z","updated_at":"2025-04-13T08:21:29.261Z","avatar_url":"https://github.com/soruly.png","language":"JavaScript","funding_links":["https://github.com/sponsors/soruly","https://patreon.com/soruly","https://www.paypal.me/soruly/"],"categories":[],"sub_categories":[],"readme":"## Anilist-Chinese\n\n[![License](https://img.shields.io/github/license/soruly/anilist-chinese.svg?style=flat-square)](https://github.com/soruly/anilist-chinese/blob/master/LICENSE)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/soruly/anilist-chinese/node.js.yml?style=flat-square)](https://github.com/soruly/anilist-chinese/actions)\n\nThis repo provides chinese-translated titles and synonyms for [Anilist](http://anilist.co).\n\nData is updated daily, provided in sql format and json format.\n\n### Browser Extension\n\nIt also has a browser extension script to translate titles directly on Anilist.\n\n1. Install [Tampermonkey](https://tampermonkey.net/) for Chrome, or [Greasemonkey](http://www.greasespot.net/) for Firefox\n2. Click and install this user script https://github.com/soruly/anilist-chinese/raw/master/anilist-chinese.user.js\n\nThis script is also updated daily, so the translation data would also be updated when Tampermonkey check for updates.\n\n### Anilist API (Chinese)\n\nIt also has an API proxy (served by Cloudflare Workers) that injects chinese-translated titles.\n\nThe API format is exactly the same as the official [Anilist APIv2](https://github.com/AniList/ApiV2-GraphQL-Docs), just use the GraphQL endpoint to https://trace.moe/anilist/\n\nWhenever the API response contains \"title\" or \"synonyms\", it would inject chinese titles if a matching entries is found. Note that your request must contain \"id\" for searching.\n\n```javascript\nawait fetch(\"https://trace.moe/anilist/\", {\n  method: \"POST\",\n  body: JSON.stringify({\n    query: `{\n      Media(id: 1, type: ANIME) {\n        id        // you must query the id field for it to search the translated database\n        title {\n          native  // do not query chinese here, the official Anilist API doesn't recognize\n          romaji\n          english\n        }\n        synonyms  // chinese titles will always be merged into this array\n      }\n    }\n    `,\n  }),\n  headers: { \"Content-Type\": \"application/json\" },\n});\n```\n\n## Anilist 中文\n\n這裡提供了 [Anilist](http://anilist.co) 的中文標題和別名翻譯\n\n資料格式有 SQL 和 JSON，每天更新\n\n### 瀏覽器插件\n\n這裡還提供了瀏覽器插件直接在瀏覽器翻譯 Anilist 網站上的標題\n\n1. Chrome 用家請安裝 Tampermonkey ，Firefox 用家請安裝 Greasemonkey\n2. 點擊安裝 https://github.com/soruly/anilist-chinese/raw/master/anilist-chinese.user.js\n\n### Anilist API (中文)\n\n除此之外，還有由 Cloudflare Workers 提供的 API 代理為你插入中文標題的資料\n\nAPI 的格式跟官方的 [Anilist APIv2](https://github.com/AniList/ApiV2-GraphQL-Docs) 完全一樣，只需要把 API URL 改用 https://trace.moe/anilist/ 就可\n\n只要你的 API 回應裡含有 \"title\" 或 \"synonyms\" ，它就會把找到的中文的標題加插入去。注意，你的 API 回應裡必需要有 \"id\"\n\n```javascript\nawait fetch(\"https://trace.moe/anilist/\", {\n  method: \"POST\",\n  body: JSON.stringify({\n    query: `{\n      Media(id: 1, type: ANIME) {\n        id        // 必需要叫 Anilist 回傳 id，以用作搜尋中文標題\n        title {\n          native  // 不要加 chinese ，官方的 API 沒有這個 field\n          romaji\n          english\n        }\n        synonyms  // 若找到中文別名，會合拼進這裡\n      }\n    }\n    `,\n  }),\n  headers: { \"Content-Type\": \"application/json\" },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoruly%2Fanilist-chinese","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoruly%2Fanilist-chinese","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoruly%2Fanilist-chinese/lists"}