Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@animegarden/client

yjl9903291AGPL-3.00.5.2TypeScript support: included

Anime Garden API client and utils

dmhy, moe, bangumi, animegarden, animespace

readme

🌸 Anime Garden Client

version AnimeGarden CI

AnimeGarden API client and utils.

Installation

npm i @animegarden/client

Usage

import { fetchResources } from '@animegarden/client'

// Fetch the first page of Anime Garden mirror site
const resources = await fetchResources(fetch)

// Fetch all the resources which match some filter conditions
const sakurato = await fetchResources(fetch, { count: -1, fansub: 619 })

Assume your environment has built-in Fetch. If not you can use undici or ofetch.

You can check more filter conditions FilterOptions and usage examples in ./scripts/ directory.

Credits

License

AGPL-3.0 License © 2025 XLor