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

mooncord

v10.0.2

Published

Mooncord is a powerful discord library made with NodeJS.

Readme

Mooncord

Mooncord is a powerful and scalable Discord API wrapper built with Node.js. Designed for developers who need full control and advanced functionality without relying on existing libraries like discord.js.

Features

  • Full support for all major Discord API events and endpoints
  • Custom WebSocket handling without third-party Discord wrappers
  • Strict rate limit handling with queuing and retries
  • Slash commands, buttons, modals, select menus, and more
  • Advanced message, channel, role, user, thread, forum, and server managers
  • Built-in getters for fetching any Discord resource
  • Presence and activity management with real-time cache
  • Lightweight yet modular, ideal for custom bot architectures
  • Clean structure, no unnecessary dependencies
  • Supports raw interactions and direct payload construction

Structure

Mooncord is divided into clear modules for maintainability and flexibility. Every feature is accessible through well-organized managers and utilities:

  • Client – Handles connection, session, and core gateway logic
  • Manager/* – Create, edit, delete, and manage Discord resources
  • Getter/* – Fetch up-to-date data from the API
  • Interaction/* – Build and handle buttons, modals, select menus, and slash commands
  • PresenceManager – Track and manage user presences in real time
  • Webhook – Manage and send messages via webhooks
  • Ratelimit/* – Global and scoped rate limit handler
  • EmbedBuilder – Easily construct rich embed messages
  • Intents – Clean intent bitfield structure for gateway setup

Philosophy

Mooncord avoids abstraction bloat. It gives full control over raw Discord events and API structures while still offering clean, reusable building blocks.

You are in charge of behavior — Mooncord stays out of your way but gives you tools to build anything.

Use Case

Ideal for:

  • Developers building custom bots without heavy wrappers
  • Bots that need low-level API access
  • Custom Discord integrations for high-performance projects
  • Those who want full control over events, payloads, and logic

Update

  • Added Helpers for extra things.
  • Added normalizeColor, when you use setColor and tye a color in lowercase, then it auto becomes hex code.
  • Added formatEmoji, for formatting emojis for button/select menu or any.
  • Added TextInputStyle, for using short and paragraph.
  • Added version function, for checking Mooncord version.
  • Added PresenceActivityType, similar to ActivityType in discord.js.
  • Added ButtonStyle, for button styles.

Requirements

  • Node.js 18 or higher
  • A Discord bot token
  • Basic understanding of the Discord API

Work in Progress

Mooncord is actively being expanded. Future goals include:

  • Voice support
  • OAuth2 and user-bot utilities
  • Full audit log and permission manager
  • Gateway sharding

Support

  • Discord Server: There is no support yet, but you can get help from me.
  • My Discord: username berklast, nickname berklast.