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

@zoe01/zcord

v0.1.8

Published

A custom made discord.js extention for rapid element creations like embeds and inputs

Readme

zCord

An opensource extention to discord.js for easy setup and component creation

Install:

Installation of this package is as easy as any other: npm install @zoe01/zcord

After that use const zCord = require('@zoe01/zcord'); to include it in your module.

Features

  • Package based composition
  • Embed presets
  • Easy modals
  • Easy components
  • Easy buttons

How to use

Scope for packages in a folder of your choosing

const { scopePackages } = require('@zoe01/zcord');
const packs = scopePackages(path/to/folder);

This looks for all packages in a folder.

Edit the packages (ooptional)

Between scoping and making a client you can edit the packages as you have everything in a Map object. You can remove, edit or replace packages or their functions.

Make a client

zcord has it's own client that extends the discord.js client; zClient. added features are:

  • packages attribute
  • initEvents() function
  • initCommands() function

note that initEvents() must be ran before logging in with the client as initCommands() requires the clients rest object. initCommands must not be called manually as it gets called in the root's readyClient event - Which befhavior changes depending on the environment variable PUSH_COMMANDS:

  • =0 does nothing
  • =1 pushes commands without deleting anything
  • =2 pushes commands but first deletes all commands
  • =3 deletes all commands

A zClient is made using new zClient(packs). It takes the package map as argument to construct the client. All intents and partials are gathered from the packages so each package can be easilly transfered as everything is and stays in the folder.

Extras

zErrors

zcord has some predefined errors that you can use to respond. They are more or less all HTTP status codes but you can make new ones with messages of your choosing. The base zError is message- and codeless. it only holds the functions every error has:

  • constructor()
  • toEmbed()
  • invoke()

constructor(...args)

The constructor can take multiple arguments that will be added to the base message with utils.format(this.message, ...args). The same system as console.log('number: %i', 6) -> number: 6

toEmbed()

This function returns an embed with the zError's info.

invoke()

This function throws an error with the zError's info; Which you can catch with

try{
    zError.invoke();
} catch(err) {
    console.error(err);
}

colors

zcord has a color schema with predifined keys that correspond to a color. It's used for embeds to have a uniform color pallete, you can set this:

const { zColor } = require('@zoe01/zcord');
zColor.setPallete(Object)

The function iterates over all existing colors in the pallete and looks for a corresponding name in the given pallete. If it exists it replaces the color, if it doesn't it keeps the old color.

You can read the colors with:

const { zColor } = require('@zoe01/zcord');
zColor.colors[key];