{"id":16967090,"url":"https://github.com/slavyandesu/moe-api","last_synced_at":"2025-10-15T01:02:54.770Z","repository":{"id":65468093,"uuid":"592010989","full_name":"SlavyanDesu/moe-api","owner":"SlavyanDesu","description":"Search anime scene using trace.moe API.","archived":false,"fork":false,"pushed_at":"2023-07-18T02:56:10.000Z","size":255,"stargazers_count":9,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T22:22:13.832Z","etag":null,"topics":["anime","api","image","image-finder","source-finder","trace-moe","wrapper"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/SlavyanDesu.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}},"created_at":"2023-01-22T16:50:27.000Z","updated_at":"2024-05-20T22:35:06.000Z","dependencies_parsed_at":"2024-10-24T19:35:30.811Z","dependency_job_id":null,"html_url":"https://github.com/SlavyanDesu/moe-api","commit_stats":{"total_commits":63,"total_committers":3,"mean_commits":21.0,"dds":"0.38095238095238093","last_synced_commit":"001df4be467e7308485bc7a13fd6ea99dafb7818"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlavyanDesu%2Fmoe-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlavyanDesu%2Fmoe-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlavyanDesu%2Fmoe-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlavyanDesu%2Fmoe-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SlavyanDesu","download_url":"https://codeload.github.com/SlavyanDesu/moe-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140854,"owners_count":20567457,"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":["anime","api","image","image-finder","source-finder","trace-moe","wrapper"],"created_at":"2024-10-14T00:07:30.880Z","updated_at":"2025-10-15T01:02:49.752Z","avatar_url":"https://github.com/SlavyanDesu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\u003cb\u003emoe-api\u003c/b\u003e\u003c/h1\u003e\n  \u003cp\u003eSearch anime scene using trace.moe API.\u003c/p\u003e\n  \u003ca href=\"https://opensource.org/licenses/mit-license.php\"\u003e\u003cimg src=\"https://badges.frapsoft.com/os/mit/mit.svg?v=103\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://packagephobia.com/result?p=moe-api\"\u003e\u003cimg src=\"https://packagephobia.com/badge?p=moe-api\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://app.fossa.com/projects/git%2Bgithub.com%2FSlavyanDesu%2Fmoe-api?ref=badge_shield\" alt=\"FOSSA Status\"\u003e\u003cimg src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2FSlavyanDesu%2Fmoe-api.svg?type=shield\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.codefactor.io/repository/github/slavyandesu/moe-api\"\u003e\u003cimg src=\"https://www.codefactor.io/repository/github/slavyandesu/moe-api/badge\" alt=\"CodeFactor\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## Installation\n```sh\n$ npm install moe-api\n```\n\n## Usage\n### ESM\n```js\nimport TraceMoe from 'moe-api'\nconst moe = new TraceMoe()\n```\n\n### CommonJS\n```js\nconst TraceMoe = require('moe-api').default\nconst moe = new TraceMoe()\n```\n\n## Options\n```js\nconst moe = new TraceMoe({\n  apiKey: 'ABC',\n  cutBorders: false,\n  anilistInfo: true,\n  mute: false,\n  size: 1\n})\n```\n- `apiKey`: Your API key, you can safely ignore this if you don't have it.\n- `cutBorders`: Cut away unnecessary parts of the images that would affect search results accuracy. Default is `false`.\n- `anilistInfo`: Include AniList info. Default is `true`.\n- `mute`: Mute generated video. Default is `false`.\n- `size`: Size of generated media. `0` small, `1` medium, and `2` large. Default is `1`.\n\n## Example\n```js\nimport TraceMoe from 'moe-api'\nconst moe = new TraceMoe()\n\nasync function sourceFromUrl(url) {\n  const res = await moe.traceFromUrl(url)\n  console.log(res)\n}\n\nsourceFromUrl('https://images.plurk.com/32B15UXxymfSMwKGTObY5e.jpg')\n```\n\n## API\n**moe.traceFromUrl(url)**  \n- `url` string of media URL that can be decoded by `ffmpeg`.\n\nGet source from given media URL.  \n\n**moe.traceFromFile(filePath)**\n- `filePath` string of existing media path.\n\nGet source from given file.  \n\n**moe.traceFromBase64(base64)**\n- `base64` string of Base64 or data URL.\n\nGet source from Base64 string or data URL.  \n\n**moe.me()**  \nCheck the search quota and limit for your account (with API key) or IP address (without API key).\n\nFor more info please check [trace.moe API docs](https://soruly.github.io/trace.moe-api/#/docs).\n\n## License\n**moe-api** © [SlavyanDesu](https://github.com/SlavyanDesu), released under the [MIT License](LICENSE). Authored and maintained by SlavyanDesu.\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"ttps://app.fossa.com/projects/git%2Bgithub.com%2FSlavyanDesu%2Fmoe-api?ref=badge_large\"\u003e\u003cimg src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2FSlavyanDesu%2Fmoe-api.svg?type=large\" alt=\"Fossa Status\"\u003e\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavyandesu%2Fmoe-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslavyandesu%2Fmoe-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavyandesu%2Fmoe-api/lists"}