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

novecord

v0.1.1

Published

Build powerful discord bots with a powerful library.

Readme

NoveCord

NoveCord is a lightweight, dependency-free Discord API wrapper built entirely from scratch using only Node.js core modules. It provides essential features like WebSocket gateway, REST API handling, interactions (slash commands, buttons, modals), embed building, shard management, and more — all without external libraries.

Much closer!

This library is so close to full version, wait for 1.0.0! we gonna give so much support.

Note

This module is currently under maintenance, so some bugs may still occur. Please be patient until the full release.

Sources

Website


Features

  • WebSocket Gateway connection (no external WS libraries)
  • Native HTTPS REST API requests using Node.js core modules
  • Full Interaction v2 support (slash commands, buttons, select menus, modals)
  • Embed builder
  • Intents bitfield system
  • EventEmitter-based easy event handling (.on method)
  • Simple command handler
  • Multi-process shard manager
  • Minimal size and zero external dependencies (only core WebSocket module)

Installation

npm install novecord
yarn add novecord

Usage Example

const { Client, Intents } = require('novecord');

const client = new Client({
  token: 'Discord Bot Token',
  intents: Intents.Guilds | Intents.GuildMessages | Intents.MessageContents
});

client.on('READY', () => {
  console.log(`Logged in as ${client.user.username}`);
});

client.on('MESSAGE_CREATE', (message) => {
  if (message.content === '!ping') {
    client.sendMessage(message.channel_id, { content: 'Pong!' });
  }
});

client.login();

Event-Driven Typing Indicator

The setTyping(channelId) method sends a POST request directly to Discord’s /channels/{channelId}/typing endpoint using the bot token internally. On success, it emits a 'typingStarted' event with the channel ID. On failure, it emits a 'typingError' event with the error details.

client.setTyping(channelId);

client.on('typingStarted', (channelId) => {
  console.log(`Typing indicator started in channel ${channelId}`);
});

client.on('typingError', ({ channelId, error }) => {
  console.error(`Failed to start typing in channel ${channelId}:`, error);
});

REST API Example

const { REST, Routes } = require('novecord');

const rest = new REST(TOKEN);

rest.get(Routes.User('@me'))
  .then(user => console.log(user))
  .catch(console.error);

Embed Builder Example

const { Embed } = require('novecord');

const embed = new Embed()
  .setTitle('NoveCord')
  .setDescription('A simple, dependency-free Discord API wrapper.')
  .setColor('#5865F2');

client.sendMessage(channelID, { embeds: [embed] });

Shard Manager Example

const ShardManager = require('novecord').ShardManager;

const manager = new ShardManager(2, 'YOUR_BOT_TOKEN', Intents.All);

manager.on('shardMessage', ({ shardId, message }) => {
  console.log(`Message from shard ${shardId}:`, message);
});

manager.spawnAll('path/to/shard.js');