Skip to content

ravener/waifuim.js

Repository files navigation

Waifu.im API

Waifu.im API Client for JavaScript.

Currently up to date as of API v6.

Install

  • Requires at least Node.js v18. Version 21+ recommended.
  • This module relies on the Node.js native fetch()
  • This module is ESM Only
$ npm install waifuim

Usage

import { WaifuClient } from 'waifuim';

const token = 'API TOKEN';
const client = new WaifuClient({ token });

const images = await client.search({
    included_tags: ['waifu']
});

console.log(images);

Browse the complete API documentation here