{"_id":"@animegarden/client","_rev":"7-d28ae0cbf0817d9c0dc29756eaeb01c0","name":"@animegarden/client","dist-tags":{"latest":"0.5.4"},"versions":{"0.3.0":{"name":"@animegarden/client","version":"0.3.0","keywords":["dmhy","scraper","animegarden","animespace"],"author":{"name":"XLor"},"license":"MIT","_id":"@animegarden/client@0.3.0","maintainers":[{"name":"yjl9903","email":"yjl9903@vip.qq.com"}],"homepage":"https://github.com/yjl9903/AnimeGarden#readme","bugs":{"url":"https://github.com/yjl9903/AnimeGarden/issues"},"dist":{"shasum":"39f403ea812ac11fb94b47625729c127e79f5760","tarball":"https://registry.npmjs.org/@animegarden/client/-/client-0.3.0.tgz","fileCount":8,"integrity":"sha512-0lqErfm70yJVtOvQkuM20WoPqpRYtD6lU37zuiGWt/ZIrDmmo2dYZi0A7sPfKI1RCguJfVHoUaBvSRab0tOAzQ==","signatures":[{"sig":"MEUCIHK6+hKS25hVEvid8kYY5yqOdoNM6OIz4irlnhhgclN8AiEA6JU+/WJ750YM0SXUW3//Kj4PpfmTVW0SJczUcHQRi4o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":158774},"main":"dist/index.cjs","type":"module","_from":"file:animegarden-client-0.3.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=v18.16.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"unbuild","format":"prettier --write src/**/*.ts test/**/*.ts","test:ci":"vitest --run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"yjl9903","email":"yjl9903@vip.qq.com"},"_resolved":"C:\\Users\\XLor\\AppData\\Local\\Temp\\09ad4bf87c6770da0ecde5a54161dc5d\\animegarden-client-0.3.0.tgz","_integrity":"sha512-0lqErfm70yJVtOvQkuM20WoPqpRYtD6lU37zuiGWt/ZIrDmmo2dYZi0A7sPfKI1RCguJfVHoUaBvSRab0tOAzQ==","repository":{"url":"git+https://github.com/yjl9903/AnimeGarden.git","type":"git"},"_npmVersion":"10.2.3","description":"API client and utils for AnimeGarden.","directories":{},"sideEffects":false,"_nodeVersion":"20.10.0","dependencies":{"zod":"^3.23.8","simptrad":"^0.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/client_0.3.0_1734366254724_0.8629832158452417","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@animegarden/client","version":"0.4.0","keywords":["dmhy","moe","bangumi","animegarden","animespace"],"author":{"name":"XLor"},"license":"AGPL-3.0","_id":"@animegarden/client@0.4.0","maintainers":[{"name":"yjl9903","email":"yjl9903@vip.qq.com"}],"homepage":"https://github.com/yjl9903/AnimeGarden#readme","bugs":{"url":"https://github.com/yjl9903/AnimeGarden/issues"},"dist":{"shasum":"1f56b49357652443fe6c5be254826c15bdd76cf2","tarball":"https://registry.npmjs.org/@animegarden/client/-/client-0.4.0.tgz","fileCount":8,"integrity":"sha512-cD6jxQk1qtlKpAOc6nBiF8Nq+Gyi0vhIEGum6CQUcXswQ5fHzWOo/aYc+f64ngCbJw92PVeCJxccBl2f+iX1UQ==","signatures":[{"sig":"MEUCIHcf+YiOPyTQpdTG1BMf1AlpDYmaHgvrJq2ckA7xcGA2AiEAstW7rgl3aAqIHsCj+sqne4Qv9j3BKR5FNVGj9sX/1ac=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":111098},"main":"dist/index.cjs","type":"module","_from":"file:animegarden-client-0.4.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=v18.16.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"unbuild","format":"prettier --write src/**/*.ts test/**/*.ts","test:ci":"vitest --run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"yjl9903","email":"yjl9903@vip.qq.com"},"_resolved":"C:\\Users\\XLor\\AppData\\Local\\Temp\\89cff45be7c009a1b7b7f030e13c2f0e\\animegarden-client-0.4.0.tgz","_integrity":"sha512-cD6jxQk1qtlKpAOc6nBiF8Nq+Gyi0vhIEGum6CQUcXswQ5fHzWOo/aYc+f64ngCbJw92PVeCJxccBl2f+iX1UQ==","repository":{"url":"git+https://github.com/yjl9903/AnimeGarden.git","type":"git"},"_npmVersion":"10.2.3","description":"Anime Garden API client and utils","directories":{},"sideEffects":false,"_nodeVersion":"20.10.0","dependencies":{"zod":"^3.24.2","ohash":"^1.1.6","anipar":"^0.3.0","simptrad":"^0.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/client_0.4.0_1744219043893_0.7999104914839659","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@animegarden/client","version":"0.5.0","keywords":["dmhy","moe","bangumi","animegarden","animespace"],"author":{"name":"XLor"},"license":"AGPL-3.0","_id":"@animegarden/client@0.5.0","maintainers":[{"name":"yjl9903","email":"yjl9903@vip.qq.com"}],"homepage":"https://github.com/yjl9903/AnimeGarden#readme","bugs":{"url":"https://github.com/yjl9903/AnimeGarden/issues"},"dist":{"shasum":"460f9879a79297a5e0d3fd13cc274558db9727e2","tarball":"https://registry.npmjs.org/@animegarden/client/-/client-0.5.0.tgz","fileCount":8,"integrity":"sha512-bGCvEHPTB+dCMFNvs5GgZLSxjc9qQ3S9FlppHIyIMZ+sQxVicv+jz48BCXJG1yTzSIqesEFaUoxZkDWVGDRFFQ==","signatures":[{"sig":"MEQCIACvMCtwkb927yMkRmbg0TJtLz4JJy0Mx+Y6RYEv2rAKAiAPrkTrrnc5RIH/Qq08mJjjG6eV1m2rZpMJwJ/bZJu7jg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":107145},"main":"dist/index.cjs","type":"module","_from":"file:animegarden-client-0.5.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=v18.16.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"unbuild","format":"prettier --write src/**/*.ts test/**/*.ts","test:ci":"vitest --run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"yjl9903","email":"yjl9903@vip.qq.com"},"_resolved":"C:\\Users\\XLor\\AppData\\Local\\Temp\\ddba8249f7c4cd8bae1bfbfc1e43e92a\\animegarden-client-0.5.0.tgz","_integrity":"sha512-bGCvEHPTB+dCMFNvs5GgZLSxjc9qQ3S9FlppHIyIMZ+sQxVicv+jz48BCXJG1yTzSIqesEFaUoxZkDWVGDRFFQ==","repository":{"url":"git+https://github.com/yjl9903/AnimeGarden.git","type":"git"},"_npmVersion":"10.8.2","description":"Anime Garden API client and utils","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"zod":"^3.24.2","ohash":"^2.0.11","anipar":"0.5.0","simptrad":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"@animegarden/shared":"0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.5.0_1744565412605_0.8791544317290954","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@animegarden/client","version":"0.5.1","keywords":["dmhy","moe","bangumi","animegarden","animespace"],"author":{"name":"XLor"},"license":"AGPL-3.0","_id":"@animegarden/client@0.5.1","maintainers":[{"name":"yjl9903","email":"yjl9903@vip.qq.com"}],"homepage":"https://github.com/yjl9903/AnimeGarden#readme","bugs":{"url":"https://github.com/yjl9903/AnimeGarden/issues"},"dist":{"shasum":"ef65c141ffab2e7d766e8e86c8b695b2c70f4530","tarball":"https://registry.npmjs.org/@animegarden/client/-/client-0.5.1.tgz","fileCount":8,"integrity":"sha512-icpnzwt5jw06TCMoY0bicXJJQ4WaBtEOYQ2YxCUp8Z0kk1Zy1D+6100HHm2gEs1XF1cRvk4G+82awO120pO1Tw==","signatures":[{"sig":"MEUCIHwDWrin4szcQT9CQb0K7R+KKRNmdTd1mTUJiNCKa+TjAiEA9lNe4ntwguK47AdyYbbmx9h/ez5CoXapmErS8Xe9ssA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110402},"main":"dist/index.cjs","type":"module","_from":"file:animegarden-client-0.5.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=v18.16.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"unbuild","format":"prettier --write src/**/*.ts test/**/*.ts","test:ci":"vitest --run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"yjl9903","email":"yjl9903@vip.qq.com"},"_resolved":"/private/var/folders/t1/whld_bm55fv867f0p21gf5jn87k2dn/T/c1aeef30cc2f8fe6fa291f97d26fa32f/animegarden-client-0.5.1.tgz","_integrity":"sha512-icpnzwt5jw06TCMoY0bicXJJQ4WaBtEOYQ2YxCUp8Z0kk1Zy1D+6100HHm2gEs1XF1cRvk4G+82awO120pO1Tw==","repository":{"url":"git+https://github.com/yjl9903/AnimeGarden.git","type":"git"},"_npmVersion":"10.2.3","description":"Anime Garden API client and utils","directories":{},"sideEffects":false,"_nodeVersion":"20.10.0","dependencies":{"zod":"^3.24.3","ohash":"^2.0.11","anipar":"0.5.1","simptrad":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"@animegarden/shared":"0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.5.1_1745005829682_0.6641681462427707","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@animegarden/client","version":"0.5.2","keywords":["dmhy","moe","bangumi","animegarden","animespace"],"author":{"name":"XLor"},"license":"AGPL-3.0","_id":"@animegarden/client@0.5.2","maintainers":[{"name":"yjl9903","email":"yjl9903@vip.qq.com"}],"homepage":"https://github.com/yjl9903/AnimeGarden#readme","bugs":{"url":"https://github.com/yjl9903/AnimeGarden/issues"},"dist":{"shasum":"51f2187b7dd20b7584674f5158673143ed9d598f","tarball":"https://registry.npmjs.org/@animegarden/client/-/client-0.5.2.tgz","fileCount":8,"integrity":"sha512-tt3Cv1UKc7GtBP77lL3bY9Vj+gzwDFv4dyWoXBhAYwia64+YAY2Vf3exQ03MiDAYq8P8cEADlfVTwDNbaq7M9g==","signatures":[{"sig":"MEUCIC8+iwwhTwNrs/EC7V7t733YI2/16Fjnqgwvrrai+aS+AiEAvWOdJYK788Sus2ZWVMxOr8dgeqSJtm52sNYM4lPi/dc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":114107},"main":"dist/index.cjs","type":"module","_from":"file:animegarden-client-0.5.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=v18.16.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"unbuild","format":"prettier --write src/**/*.ts test/**/*.ts","test:ci":"vitest --run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"yjl9903","email":"yjl9903@vip.qq.com"},"_resolved":"/private/var/folders/t1/whld_bm55fv867f0p21gf5jn87k2dn/T/f22895efc30c87c107b282e795b549b5/animegarden-client-0.5.2.tgz","_integrity":"sha512-tt3Cv1UKc7GtBP77lL3bY9Vj+gzwDFv4dyWoXBhAYwia64+YAY2Vf3exQ03MiDAYq8P8cEADlfVTwDNbaq7M9g==","repository":{"url":"git+https://github.com/yjl9903/AnimeGarden.git","type":"git"},"_npmVersion":"10.2.3","description":"Anime Garden API client and utils","directories":{},"sideEffects":false,"_nodeVersion":"20.10.0","dependencies":{"zod":"^3.25.20","ohash":"^2.0.11","anipar":"0.5.2","simptrad":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"@animegarden/shared":"0.5.2"},"_npmOperationalInternal":{"tmp":"tmp/client_0.5.2_1748276426547_0.30492318377686334","host":"s3://npm-registry-packages-npm-production"}},"0.5.3":{"name":"@animegarden/client","version":"0.5.3","keywords":["dmhy","moe","bangumi","animegarden","animespace"],"author":{"name":"XLor"},"license":"AGPL-3.0","_id":"@animegarden/client@0.5.3","maintainers":[{"name":"yjl9903","email":"yjl9903@vip.qq.com"}],"homepage":"https://github.com/yjl9903/AnimeGarden#readme","bugs":{"url":"https://github.com/yjl9903/AnimeGarden/issues"},"dist":{"shasum":"7445a2ba527d6ce0f6d26929bfca7144a3bbd6bc","tarball":"https://registry.npmjs.org/@animegarden/client/-/client-0.5.3.tgz","fileCount":8,"integrity":"sha512-+nQhtHDos/ZhlWnueoruOMN//uN5YsHqeMpZAd8MJKDeN4CbtnmTFF3cIC3hOQN+42FEJFRTN+DUQUjb1wsl/A==","signatures":[{"sig":"MEUCIQCpSJoin5r+mR05VekNC2jG94bTwylCrHWfe6Jg7uwAJgIgJyWoT5Z89WBumhmzC+JPQ8tx78+tGhY/8D7KUT6UV9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@animegarden%2fclient@0.5.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":123273},"main":"dist/index.cjs","type":"module","_from":"file:animegarden-client-0.5.3.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=v18.16.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"unbuild","format":"prettier --write 'src/**/*.ts' 'test/**/*.ts'","test:ci":"vitest --run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d2a2f76c-45de-4345-887e-c6a615cc4d42"}},"_resolved":"/tmp/dea1fe218b9fc0b273e619e4d27319cf/animegarden-client-0.5.3.tgz","_integrity":"sha512-+nQhtHDos/ZhlWnueoruOMN//uN5YsHqeMpZAd8MJKDeN4CbtnmTFF3cIC3hOQN+42FEJFRTN+DUQUjb1wsl/A==","repository":{"url":"git+https://github.com/yjl9903/AnimeGarden.git","type":"git"},"_npmVersion":"11.9.0","description":"Anime Garden API client and utils","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"zod":"^3.25.76","ohash":"^2.0.11","anipar":"0.5.3","simptrad":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"@animegarden/shared":"0.5.3"},"_npmOperationalInternal":{"tmp":"tmp/client_0.5.3_1774525548535_0.6330379594901183","host":"s3://npm-registry-packages-npm-production"}},"0.5.4":{"name":"@animegarden/client","version":"0.5.4","description":"Anime Garden API client and utils","keywords":["dmhy","moe","bangumi","animegarden","animespace"],"homepage":"https://github.com/yjl9903/AnimeGarden#readme","bugs":{"url":"https://github.com/yjl9903/AnimeGarden/issues"},"repository":{"type":"git","url":"git+https://github.com/yjl9903/AnimeGarden.git"},"license":"AGPL-3.0","author":{"name":"XLor"},"sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","dependencies":{"ohash":"^2.0.11","simptrad":"^0.2.0","zod":"^3.25.76","anipar":"0.5.4"},"devDependencies":{"@animegarden/shared":"0.5.4"},"engines":{"node":">=v18.16.0"},"scripts":{"build":"unbuild","format":"prettier --write 'src/**/*.ts' 'test/**/*.ts'","test":"vitest","test:ci":"vitest --run","typecheck":"tsc --noEmit"},"_id":"@animegarden/client@0.5.4","_integrity":"sha512-Q5jgWoChJskTgwki7CyaPGeK5Vl3o9hEre8o1wPDwT8Ojh/w935ljdNiWaf+cuWBQnasLrXC/00mh4wHVbzZaA==","_resolved":"/tmp/debe8678a2973008fa1a9950858f3b30/animegarden-client-0.5.4.tgz","_from":"file:animegarden-client-0.5.4.tgz","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-Q5jgWoChJskTgwki7CyaPGeK5Vl3o9hEre8o1wPDwT8Ojh/w935ljdNiWaf+cuWBQnasLrXC/00mh4wHVbzZaA==","shasum":"a0f0d2a304113ff8af0a354d6a88944f90638b27","tarball":"https://registry.npmjs.org/@animegarden/client/-/client-0.5.4.tgz","fileCount":8,"unpackedSize":123739,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@animegarden%2fclient@0.5.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHOxuFrev2pIV4sE25tLBrKI4OCOO8e6WYhYV//WxshZAiEA3uN9CdztWU14AwyY8aPpn1aOsQL0VBa3AbYithwG7JQ="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d2a2f76c-45de-4345-887e-c6a615cc4d42"}},"directories":{},"maintainers":[{"name":"yjl9903","email":"yjl9903@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/client_0.5.4_1777909067872_0.9206495199709597"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-16T16:24:14.587Z","modified":"2026-05-04T15:37:48.386Z","0.3.0":"2024-12-16T16:24:14.961Z","0.4.0":"2025-04-09T17:17:24.062Z","0.5.0":"2025-04-13T17:30:12.782Z","0.5.1":"2025-04-18T19:50:29.865Z","0.5.2":"2025-05-26T16:20:26.745Z","0.5.3":"2026-03-26T11:45:48.673Z","0.5.4":"2026-05-04T15:37:48.029Z"},"bugs":{"url":"https://github.com/yjl9903/AnimeGarden/issues"},"author":{"name":"XLor"},"license":"AGPL-3.0","homepage":"https://github.com/yjl9903/AnimeGarden#readme","keywords":["dmhy","moe","bangumi","animegarden","animespace"],"repository":{"type":"git","url":"git+https://github.com/yjl9903/AnimeGarden.git"},"description":"Anime Garden API client and utils","maintainers":[{"name":"yjl9903","email":"yjl9903@vip.qq.com"}],"readme":"# 🌸 Anime Garden Client\n\n[![version](https://img.shields.io/npm/v/@animegarden/client?label=@animegarden/client)](https://www.npmjs.com/package/@animegarden/client)\n[![CI](https://github.com/yjl9903/AnimeGarden/actions/workflows/ci.yml/badge.svg)](https://github.com/yjl9903/AnimeGarden/actions/workflows/ci.yml)\n\n[AnimeGarden](https://animes.garden/) API client and utils.\n\n## Installation\n\n```bash\nnpm i @animegarden/client\n```\n\n## Usage\n\n```ts\nimport { fetchResources } from '@animegarden/client'\n\n// Fetch the first page of Anime Garden mirror site\nconst resources = await fetchResources(fetch)\n\n// Fetch all the resources which match some filter conditions\nconst sakurato = await fetchResources(fetch, { count: -1, fansub: 619 })\n```\n\nAssume your environment has built-in [Fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch). If not you can use [undici](https://github.com/nodejs/undici) or [ofetch](https://github.com/unjs/ofetch).\n\nYou can check more filter conditions [FilterOptions](https://github.com/yjl9903/AnimeGarden/blob/main/packages/animegarden/src/garden/types.ts) and usage examples in [./scripts/](https://github.com/yjl9903/AnimeGarden/blob/main/scripts/) directory.\n\n## Credits\n\n+ [動漫花園](https://share.dmhy.org/)\n+ [蜜柑计划](https://mikanani.me/)\n+ [萌番组](https://bangumi.moe/)\n+ [Bangumi 番组计划](https://bgm.tv/)\n+ [bangumi-data](https://github.com/bangumi-data/bangumi-data)\n\n## License\n\nAGPL-3.0 License © 2025 [XLor](https://github.com/yjl9903)\n","readmeFilename":"README.md"}