{"id":20826909,"url":"https://github.com/crizmo/anyanime","last_synced_at":"2025-05-07T20:42:25.296Z","repository":{"id":57180902,"uuid":"469285293","full_name":"crizmo/AnyAnime","owner":"crizmo","description":"Get random anime images / gif's using the AnyAnime npm package / API","archived":false,"fork":false,"pushed_at":"2024-01-17T16:58:39.000Z","size":2172,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T20:42:18.771Z","etag":null,"topics":["anime","api","avatar","discord","discord-js","javascript","nodejs","npm","profile","random"],"latest_commit_sha":null,"homepage":"https://any-anime.vercel.app/","language":"HTML","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/crizmo.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":"2022-03-13T06:04:54.000Z","updated_at":"2025-04-04T13:41:28.000Z","dependencies_parsed_at":"2023-01-30T07:31:31.205Z","dependency_job_id":"909e21b1-4b02-491e-b684-fe8f08fe843f","html_url":"https://github.com/crizmo/AnyAnime","commit_stats":{"total_commits":116,"total_committers":2,"mean_commits":58.0,"dds":"0.22413793103448276","last_synced_commit":"64d700cc36546f76d8c637dbbc6f92ac1cc96375"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FAnyAnime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FAnyAnime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FAnyAnime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FAnyAnime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crizmo","download_url":"https://codeload.github.com/crizmo/AnyAnime/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954127,"owners_count":21830893,"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","avatar","discord","discord-js","javascript","nodejs","npm","profile","random"],"created_at":"2024-11-17T23:10:27.983Z","updated_at":"2025-05-07T20:42:25.241Z","avatar_url":"https://github.com/crizmo.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/anyanime\"\u003e\n    \u003cimg src=\"https://media.discordapp.net/attachments/939799133177384993/952452069686644746/Anyanime.png?width=1279\u0026height=196\" alt=\"Any Anime\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/anyanime\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/anyanime.svg?maxAge=3600\" alt=\"NPM version\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003e\u003cstrong\u003eGet random anime images / pfp.\u003c/strong\u003e\u003c/h3\u003e\n\n## Installation\n\n```bash\n$ npm install anyanime\n```\n\n## Options\n\n| **Options** | **Description**      | **Usage**          | **Params** |\n| :---------: | -------------------- | ------------------ | ---------- |\n|    getAnime    | Anime images - png / gif | `anyanime.getAnime({})` | `{ type: \"png\", number: 10 }` |\n|    checkUpdate    | Check for new npm package updates. | `anyanime.checkUpdate(true)` | `true or false` |\n\nBy default the type is png and number is 1.\nMax number of images you can ask for at a time is 10.\n\n## Functions\n\n```javascript\nconst anyanime = require(\"anyanime\");\n\nanyanime.getAnime({}).then(console.log); // Shows 1 random anime pfp image.\n\nanyanime.getAnime({ type: \"png\", number: 10 }).then(console.log); // Shows 10 random anime pfp images.\nanyanime.getAnime({ type: \"gif\", number: 10 }).then(console.log); // Shows 10 random anime gif pfp images.\n\n// Both are async functions because it fetches the images from AnyAnime Api and that might take some time.\n\nanyanime.checkUpdate(true);\n```\n\n- Search for new npm package updates on bot startup! Latest version will be displayed in console.\n\n# Database\n\n- Png image database images size : 768\n- Gif image database images size : 183\n- The database size will be updated tho.\n\n## Usage\n\n```javascript\nconst anyanime = require(\"anyanime\");\n\nasync function anime() {\n    const anime = await anyanime.getAnime({ type: \"png\", number: 1 });\n    console.log(anime); \n\n    // by default the type is png and number is 1.\n}\n// Both are async functions because it fetches the images from AnyAnime Api and that might take some time.\nanime();\n```\n\nCheck the tests/test.js file for more examples. [Click here](https://github.com/crizmo/AnyAnime/blob/main/tests/test.js) to go to the file.\n\n## Discord Bot\n\n```javascript\nconst Discord = require(\"discord.js\");\nconst client = new Discord.Client();\n\nconst anyanime = require(\"anyanime\");\nanyanime.checkUpdate(true);\n\nclient.on(\"messageCreate\", async (message) =\u003e {\n  /* Plain Image */\n  if (message.content === \"plain\") {\n    const anime = await anyanime.getAnime({ type: \"png\", number: 1 });\n    message.channel.send({ embeds: [anime[0]] });\n  }\n\n  /* Gif Image */\n  if (message.content === \"gif\") {\n    const animeGif = await anyanime.getAnime({ type: \"gif\", number: 1 });\n    message.channel.send({ embeds: [animeGif[0]] });\n  }\n\n  /* Embed Image (D.JS Version 13) */\n  if (message.content === \"embed\") {\n    const anime = await anyanime.getAnime({ type: \"png\", number: 1 });\n    const embed = new Discord.MessageEmbed().setImage(anime[0]);\n    message.channel.send({ embeds: [embed] });\n  }\n\n  /* Embed Gif Image (D.JS Version 13) */\n  if (message.content === \"embed gif\") {\n    const animeGif = await anyanime.getAnime({ type: \"gif\", number: 1 });\n    const embed = new Discord.MessageEmbed().setImage(animeGif[0]);\n    message.channel.send({ embeds: [embed] });\n  }\n});\n\nclient.login(\"TOKEN\");\n```\n\n## For more information on how to use it visit\n\n- [Prefix usage](https://github.com/crizmo/Elina-dev/blob/main/commands/fun/animepfp.js)\n- [Slash Usage](https://github.com/crizmo/Elina-dev/blob/main/src/slash/fun/anyanime.js)\n\n## AnyAnime Api\n\nIf you dont want to use the npm package you can use the api instead.\n\n- [Rapid Api](https://rapidapi.com/Kurizu/api/any-anime/)\n- [Vercel](https://any-anime-api.vercel.app/)\n- [Github](https://github.com/crizmo/AnyAnime_api)\n\nThe installation is given in the [readMe](https://github.com/crizmo/AnyAnime_api/blob/main/README.md) file !\n\nPackage Made by: `kurizu.taz` on discord.\n\n## Huge Thanks To Pinterest.\n\n- For the images ofc !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrizmo%2Fanyanime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrizmo%2Fanyanime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrizmo%2Fanyanime/lists"}