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

comm-api.js

v3.7.5

Published

A wrapper for my api (https://api.fc5570.ml)

Readme

comm-api.js

A wrapper for my api.

Installation

NPM -

npm i comm-api.js

Yarn -

yarn add comm-api.js

Examples

Joke endpoint:

const api = require('comm-api.js')
api.joke().then(m => console.log(m))

Chatbot endpoint:

const api = require('comm-api.js')
api.chatbot('hey').then(m => console.log(m)) // hello!

List of all the functions:

Animals

| Functions | Required Parameters | Description | | ------------ | ------------------- | -------------------------------------- | | bird() | none | Returns random bird images (4k). | | cat() | none | Provides random cat facts and images. | | dog() | none | Provides randomg dog facts and images. | | duck() | none | Returns random duck images. | | monkey() | none | Returns random monkey images (4k). | | squirrel() | none | Returns random squirrel images (4k). |

GIFs

| Functions | Required Paramters | Description | | --------- | ------------------ | ------------------------------------------------------------------------------------------------- | | gif() | type | Gives a random gif of the specified type, available types: hug, pat, blush, slap, stare, trigger. |

Image Manipulation:

| Functions | Required Paramters | Description | | ----------------- | ------------------ | ---------------------------------------------------------------------------------- | | ad() | image | Puts the provided image on an advertisement board. | | alwaysHasBeen() | text1, text2 | Puts the provided text on an always has been meme. | | captcha() | text | Puts the provided text on a reCaptcha. | | delete() | image | Deletes a given image. | | greyscale() | image | Applies the greyscale filter on the provided image. | | pepeSign() | text | Draws the provided text on a sign holded by a pepe. | | shit() | image | Draws the provided image on a "Ew I stepped in shit" meme. | | slap() | image1, image2 | Slap someone, image1 is the person slapping, image2 is the person getting slapped. | | snipe() | image | Snipe someone. | | surprised() | text | Draws the provided text on a surprised pikachu. | | woah() | text | Puts the provided text on a "woah! thats worthless" meme. | | wasted() | image | Applies the GTA5 Wasted overlay on the image. |

Info:

| Functions | Required Parameters | Description | | ------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | calendar | month, year, table | Returns the calendar of a specified month and year, an optional "table" parameter can be provided to get the calendar in Ascii format. | | country() | country | Returns the info about a country. | | countryFlag() | country | Provides the flag of the provided country. | | covid19 | country, all (optional) | Provides Covid19 stats of a country, an optional all param can be provided (must be true) to get global Covid19 stats. | | emojiInfo() | emoji | Provides info of an emoji (name or unicode can be provided) | | fivemplayers() | ip | Shows all the players playing on a fivem server. | | fivemserverinfo() | ip | Provides info of a fivem server | | ipLookup() | ip | The IP or the host name to get info about. | | mcServerStats() | server | Gets info about a certain minecraft server. | | mcUserStats() | username | Gets info of a certain minecraft player. | | time() | timezone | Gets the time of a certain timezone. | | timezones() | none | Provides an array of all the timezones. | | weather() | location, degreeType | Returns the weather of a specified location, an optinal "degreeType" parameter with the degree type of the weather can be provided, defaults to C, available degree types: C, F. |

Others:

| Functions | Required Paramters | Description | | ----------------- | -------------------------------------------------------------- | --------------------------------------------------------------------------------- | | ascii() | text | Converts text to ascii. | | chatbot() | text | Something that talks to you like a human. | | doesnotexist() | none | Provides images of people who dont exist. | | emojiInfo | emoji | Gets info about an emoji. | | insult() | none | Provides random insult. | | joke() | none | Provides a joke. | | meme() | none | Provides random memes. | | number() | none | Generates random numbers. | | password() | length | Generates a random password of the provided length. | | postToWebhook() | webhookURL, username (optional), avatarURL (optional), message | Posts a message to the provided Discord Webhook URL. Webhook URLs are not stored. | | quote() | none | Generates a random quote. | | translate() | to, text | Translates the given text to the given language, defaults to english. | | word() | none | Generates a random word. |

Text Manipulation:

| Functions | Required Paramters | Description | | ------------- | -------------------------- | -------------------------------------------------------------------------- | | base64() | type (encode/decode), text | Converts text to and from base64. | | binary() | type (encode/decode), text | Converts text to and from binary. | | morse() | type (encode/decode), text | Converts text to and from morse. | | owofy() | text | Converts text to some kind of text some kind of people use, hello -> hewwo | | reverse() | text | Reverses text. | | sarcastic() | text | Turns text to SaRCAStIC text. | | shuffle() | text | Shuffles the given text. | | zalgo() | type (encode/decode), text | Converts text to some weird and glitchy text. |

All the functions return a promise, resolve the promise by either awaiting it or using .then(). All the Image Manipulation endpoints (except woah and alwaysHasBeen) require an image thats either a png, jpg or a gif. A webp doesn't work. The endpoints return a buffer.

Made by FC#5104 on Discord. Click Here to join the Support Server of the API. Click Here for the documentation of the API. Any suggestions are welcome.