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

cherry-api-wrapper

v1.0.3

Published

A wrapper for the ch$rry API.

Downloads

3

Readme


📝 Table of Contents

💭 How it works

This module is powered by node-fetch.

You request a certain method from the module -> module interacts with https://api.cherrybot.xyz -> https://api.cherrybot.xyz sends back JSON data -> module returns the JSON data to you.

🎈 Example

const API = require('cherry-api-wrapper')
const apikey = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

let eightball = await new API.Fun().eightball('Will i be successful?', apikey)
console.log(eightball) // { status: 200, question: 'Will i be successful?', answer: 'Yes - definitely.' }

let img = await new API.Images().blush(apikey)
console.log(img) // { status: 200, image: 'https://cdn.cherrybot.xyz/images/blush/blush_38.gif', id: 38 }

let data = await new API.Valorant().userInfo(apikey, 'Example#0000')
console.log(data) // { status: 200, data: [Object] }

🔄 Methods

📷 Images

API.Images().blush(apikey)
API.Images().cry(apikey)
API.Images().hug(apikey)
API.Images().kiss(apikey)
API.Images().pat(apikey)
API.Images().punch(apikey)
API.Images().slap(apikey)

🧸 Fun

API.Fun().eightball(question, apikey)
API.Fun().advice(apikey)
API.Fun().fortune(apikey)
API.Fun().insults(apikey)

🎮 Valorant

API.Valorant().userInfo(apikey, 'Example#0000') // { status: 200, data: [Object] }

⚠️ Rate Limits

The ch$rry API allows you to make a request per second to prevent spam. If you make a request while your on the 1 second rate limit it will return a 429 status code "The HTTP 429 Too Many Requests response status code indicates the user has sent too many requests in a given amount of time."

🔒 API Keys

To apply for a ch$rry API key join our Discord server (https://cherrybot.xyz/discord) and make a ticket explaining what you are using the API key for! (We are accepting easily and not being strict about it and youll probably get accepted within an hour or two.)

⛏️ Built Using

  • node.js - Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
  • node-fetch - A light-weight module that brings window.fetch to Node.js

✍️ Authors

  • @clap - Developer of the ch$rry API, wrapper and discord bot.