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 🙏

© 2025 – Pkg Stats / Ryan Hefner

yiffy

v2.3.2

Published

API Wrapper for https://yiff.rest.

Readme

Yiffy API

Advantages of this api:

  • Requires no authentication, so it is easier to use
  • All image are HAND PICKED by the api creator, Donovan_DMC (note: if you find an image that seems out of place, report it in our Discord server. I try to do my best, but I'm not perfect!)
  • The api has multiple instances running, so requests are solved fast, even when there are many people accessing the api at one time!
  • Everything is served from our cdn (yiff.media)
  • 99.9% uptime
  • Everything is native NodeJS code, so zero dependencies!

This is the only official api wrapper for yiff.rest, with special typescript support for all endpoints!

You can get the available methods from the typings, or by making a request to https://v2.yiff.rest/categories. The method should be exactly the same as the db property.

If you are building this module from scratch, you will need to build it using npm run build, this will put the js files you need in the build folder.

Requests are converted to methods by replacing forward slashes with periods. examples:

  • https://v2.yiff.rest/animals/birb -> animals.birb()
  • https://v2.yiff.rest/furry/hug -> furry.hug()
  • https://v2.yiff.rest/furry/yiff/gay -> furry.yiff.gay()

This module can return an image, or 1-5 json responses.

Image:

import Yiffy from "yiffy";
import * as fs from "fs";
const y = new Yiffy();

y.furry.hug("image").then(res => fs.writeFileSync(`${__dirname}/file.png`, res.image));

JSON (1):

import Yiffy from "yiffy";
const y = new Yiffy();

y.furry.hug("json").then(res => console.log(res)); // 1 JSON response, "json" can be omitted

JSON (2+):

import Yiffy from "yiffy";
const y = new Yiffy();

y.furry.hug("json", 2).then(res => console.log(res)); // 2 json responses, an array

The options that can be provided are as follows (all optional):

  • (string) userAgent - the user agent to use with requests, see this message for the reccomended format
  • (string) apikey - your api key, if you have one (contact me on Discord if you want one)
  • (function) debug - a function for debug logging, its parameters are the request url, and an object of: start time, end time, total time taken for the request
  • (string) baseURL - The base url for the api, default: "https://v2.yiff.rest" (version MUST be included here, only subdomain versioning is supported)
  • (string) host - the value of the Host header sent with requests