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

nexcord

v1.0.0

Published

A modern TypeScript framework built on top of Discord.js with support for modules, events, prefix commands, slash commands, decorators, and automatic discovery.

Readme

🚀 Discord Framework

A modern TypeScript framework built on top of Discord.js that provides a clean, module-based architecture for Discord bots.

Features

  • ⚡ Built with TypeScript
  • 🧩 Module-based architecture
  • 🎯 Slash Commands
  • 💬 Prefix Commands
  • 🎧 Event System
  • 📂 Automatic Module Discovery
  • 🔥 Decorator Support
  • 📦 Lightweight & Fast
  • 🛠 Discord.js Powered

Installation

npm install nexcord

or

yarn add nexcord

Quick Start

Create Application

import { Bot } from "nexcord";
import ReadyModule from "./modules/ready";
import PingModule from "./modules/ping";
import HelpModule from "./modules/help";

@Bot({
  token: process.env.TOKEN!,
  options: {
    intents: [],
  },
  registerCommands: true,
  modules: [ReadyModule, PingModule, HelpModule],
})
export class App {}

Module Registration

Every feature in the framework is represented as a Module.

import { Module } from "nexcord";

@Module({
  type: "slash-command",
  path: __dirname,
})
export default class HelpModule {}

Folder Structure

src/
│
├── modules/
│   │
│   ├── help/
│   │   ├── module.ts
│   │   ├── index.ts
│   │   ├── user.sup.ts
│   │   └── server.sup.ts
│   │
│   ├── ping/
│   │   ├── module.ts
│   │   └── index.ts
│   │
│   └── ready/
│       ├── module.ts
│       └── index.ts
│
└── app.ts

Events

Module

@Module({
  type: "event",
  path: __dirname,
})
export default class ReadyModule {}

Event File

import { Client } from "discord.js";

export default class ReadyEvent {
  name = "clientReady";
  once = true;

  async run(client: Client) {
    console.log(`Logged in as ${client.user?.tag}`);
  }
}

Prefix Commands

Module

@Module({
  type: "command",
  path: __dirname,
})
export default class PingModule {}

Command File

import { Message } from "discord.js";
import type {ICommand} from "nexcord"

export default class PingCommand implements ICommand {
    name = "ping";
  prefix = "!";
  async run(client, message: Message) {
      await message.reply("Pong!");
  }
}

Usage:

!ping

Slash Commands

Module

@Module({
    type: "slash-command",
  path: __dirname,
})
export default class HelpModule {}

Main Command

import type { ISlash } from "nexcord"

export default class HelpCommand implements ISlash {
    data = {
    name: "help",
    description: "display help menu",
  };

  async run(client, interaction) {
      await interaction.reply("Help Menu");
  }
}

Sub Commands

File name must end with:

.sup.ts

Example:

user.sup.ts
import type { ISlash } from "nexcord"

export default class UserSubCommand {
  data = {
    name: "user",
    description: "User help",
  };

  async run(client, interaction) {
    await interaction.reply("User Help");
  }
}

Automatic Discovery

The framework automatically:

  • Loads the module folder
  • Finds index.ts
  • Loads all *.sup.ts files
  • Registers slash commands
  • Registers events
  • Registers prefix commands

No manual registration required.


Module Types

| Type | Description | | ------------- | -------------------- | | event | Discord Events | | command | Prefix Commands | | slash-command | Application Commands |


Example Project Structure

modules/
│
├── moderation/
│   ├── module.ts
│   ├── index.ts
│   ├── ban.sup.ts
│   ├── kick.sup.ts
│   └── mute.sup.ts
│
├── utility/
│   └── index.ts
│
└── ready/
    ├── module.ts
    └── index.ts

Requirements

  • Node.js 20+
  • Discord.js v14+
  • TypeScript 5+

License

MIT License


Made with ❤️ for Discord Developers.