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

pinkvisual

v0.3.2

Published

A unnoficial node wrapper for the pinkvisual API: (http://api.pinkvisual.com/home/)

Readme

node-pinkvisual

A unnoficial node wrapper for the pinkvisual API: (http://api.pinkvisual.com/home/)

Install

npm install pinkvisual  

Options object

Most of the module functions accept an optional options parameter.

This object has the following structure:

{
    start: 0, // page number (valid number)
    limit: 10, // number of items to fetch, when combined with start, this is the mechanism for pagination.
    sort: 'name' | 'date' | 'rating' | 'relevance' | 'random', // sorting options (only one keyword allowed)
    filters: ['straight' | 'gay' | 'tranny' | 'male' | 'female'] // restrict types of data by using this option (it may contain more than one keyword)
}

Basic Usage

.init(key)

Initialize the module with the API key provided by pinkvisual. Create or access your API keys in: http://api.pinkvisual.com/settings/.

var pv = require('pinkvisual');

pv.init('INSERT YOUR API KEY HERE');

Episodes

.episodes.all([options])

Fetches a list of all the episodes available.

var pv = require('pinkvisual');

pv.episodes.all({
    start: 0,
    limit: 10,
    sort: 'name',
    filters: ['straight']
})
.then(function(episodes) {
    console.log("All episodes:", episodes);
})
.catch(function(error) {
    console.log("Error:", error);
});

.episodes.one(id, [options])

Fetches a single episode by it's id.

var pv = require('pinkvisual');

pv.episodes.one(12)
.then(function(episode) {
    console.log("Episode:", episode);
})
.catch(function(error) {
    console.log("Error:", error);
});

.episodes.search(term, [options])

Fetches a list of episodes that match a certain search phrase.

var pv = require('pinkvisual');

pv.episodes.search("Hot bush")
.then(function(episodes) {
    console.log("Episodes:", episodes);
})
.catch(function(error) {
    console.log("Error:", error);
});

.episodes.searchByFirstLetter(letter, [options])

Fetches a list of episodes that begin with a certain letter. This is useful for listings that paginate by initial letter.

var pv = require('pinkvisual');

pv.episodes.searchByFirstLetter('A')
.then(function(episodes) {
    console.log("Episodes:", episodes);
})
.catch(function(error) {
    console.log("Error:", error);
});

.episodes.withNiche(nicheId, [options])

Fetches a list of episodes that are all tagged with a certain niche.

var pv = require('pinkvisual');

pv.episodes.withNiche(2) // nicheId
.then(function(episodes) {
    console.log("Episodes:", episodes);
})
.catch(function(error) {
    console.log("Error:", error);
});

.episodes.withActor(actorId, [options])

Fetches a list of episodes that all include a certain actor.

var pv = require('pinkvisual');

pv.episodes.withActor(3)
.then(function(episodes) {
    console.log("Episodes:", episodes);
})
.catch(function(error) {
    console.log("Error:", error);
});

.episodes.paidContent(episodeId, [options])

Fetches links to member videos (paid content) for an episode.

var pv = require('pinkvisual');

pv.episodes.paidContent(3) //episodeId
.then(function(paidContent) {
    console.log("PaidContent:", paidContent);
})
.catch(function(error) {
    console.log("Error:", error);
});

Niches

.niches.all([options])

Fetches a list of niches.

var pv = require('pinkvisual');

pv.niches.all()
.then(function(niches) {
    console.log("Niches:", niches);
})
.catch(function(error) {
    console.log("Error:", error);
});

.niches.one(nicheId, [options])

Fetches a niche by id.

var pv = require('pinkvisual');

pv.niches.one(2) //nicheId
.then(function(niche) {
    console.log("Niche:", niche);
})
.error(function(error) {
    console.log("Error:", error);
});

Actors

.actors.all([options])

Fetches a list of actors.

var pv = require('pinkvisual');

pv.actors.all()
.then(function(actors) {
    console.log("Actors:", actors);
})
.catch(function(error) {
    console.log("Error:", error);
});

.actors.one(actorId, [options])

Fetches a single actor based on its id.

var pv = require('pinkvisual');

pv.actors.one(2) // actorId
.then(function(function(actor) {
    console.log("Actor:", actor);
})
.catch(function(error) {
    console.log("Error:", error);
});

.actors.search(term, [options])

Fetches a list of actors that match a search query.

var pv = require('pinkvisual');

pv.actors.search("Sassy Grey")
.then(function(actors) {
    console.log("Actors:", actors);
})
.catch(function(error) {
    console.log("Error:", error);
});

.actors.searchByFirstLetter(letter, [options])

Fetches a list of actors whose names begin with a certain letter. This allows you to create websites paginated by letter.

var pv = require('pinkvisual');

pv.actors.searchByFirstLetter('Z')
.then(function(actors) {
    console.log("Actors:", actors);
})
.catch(function(error) {
    console.log("Error:", error);
});

Notes

I hope you find this library useful. If you feel like it, buy me a coffee: