% bun i aniql
aniql
is available via server-side (Bun & Node.js), as well as in browser.
import { AniQLClient } from "aniql";
const client = new AniQLClient({
token: Bun.env.TOKEN,
});
const user = await client.query({
User: {
__args: { name: "itss0n1c" },
id: true,
name: true,
avatar: {
large: true,
medium: true,
},
},
});
console.log(user.User);
This library is not affiliated with AniList, and is not an official AniList library. For more information, see the AniList API documentation at https://docs.anilist.co/