npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ani-client

v2.5.0

Published

A simple and typed client to fetch anime, manga, characters and user data from AniList

Readme

ani-client

CI npm version npm downloads codecov TypeScript License: MIT

A fully typed, zero-dependency client for the AniList GraphQL API.
Supports Node.js and modern browsers.

Features

  • Zero dependencies — uses the native fetch API
  • Universal — Node.js ≥ 20, and modern browsers
  • Dual format — ships ESM + CJS with full .d.ts declarations
  • LRU cache with TTL, stale-while-revalidate, and hit/miss stats
  • Rate-limit protection with exponential backoff, retries, and custom strategies
  • Request deduplication — concurrent identical queries share a single in-flight request
  • Automatic batching (DataLoader) — groups rapid, individual getMedia(id) calls within a 50ms window into a single batch query, saving API limits.
  • Batch queries — manually fetch up to 50 media, characters, or staff in a single API call
  • Auto-pagination — async iterator that yields items across all pages
  • AbortSignal support — cancel globally or per-request via withSignal()
  • Injectable logger — plug in console, pino, winston, or any compatible logger
  • Redis-ready — swap the in-memory cache with the built-in RedisCache adapter

Installation

npm install ani-client
# pnpm
pnpm add ani-client
# yarn
yarn add ani-client

Quick Start

import { AniListClient, MediaType } from "ani-client";

const client = new AniListClient();

// Fetch an anime by AniList ID
const bebop = await client.getMedia(1);
console.log(bebop.title.romaji); // "Cowboy Bebop"

// Search with filters
const results = await client.searchMedia({
  query: "Naruto",
  type: MediaType.ANIME,
  genres: ["Action"],
  perPage: 10,
});

Documentation

For full API reference, configuration options, caching, rate limiting, and advanced usage guides, please visit the official documentation:

📚 ani-client.js.org

Requirements

| Runtime | Version | |----------|--------------------| | Node.js | ≥ 22.13.0 | | Browsers | fetch + AbortController required |

Community

Contributing

Contributions are welcome! Before opening an issue or a pull request, please read:

Disclaimer

Note: ani-client is an unofficial, community-driven tool. It is not affiliated with, endorsed by, or associated with AniList or AniChart in any way.

License

MIT © gonzyui