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

@gnuk/gnukbot

v0.0.1

Published

A Discord bot written in TypeScript with `discord.js` v14 and a hexagonal architecture.

Readme

gnukbot

A Discord bot written in TypeScript with discord.js v14 and a hexagonal architecture.

What it does

gnukbot exposes slash commands for greeting, fun replies, and trivia.

Requirements

  • Node.js 24.x or newer
  • A Discord application with a bot user
  • A bot token
  • The application client ID
  • Optionally, a Discord guild ID for faster command registration during development

Setup and usage

Create a .env file from .env.example, fill in the Discord credentials, and configure the bot in the Discord Developer Portal. The bot uses the bot and applications.commands scopes.

If no .env file is present, the bot reads DISCORD_TOKEN, DISCORD_CLIENT_ID, and DISCORD_GUILD_ID directly from the process environment (useful for non-dev installs and hosting platforms).

This project uses mise as the preferred entry point for local development. The available tasks are defined in mise.toml.

Build and package

The build output is generated in dist/ and can be packaged as an npm tarball in one flow through the mise tasks.

The published package exposes a CLI command named gnukbot.

Bot permissions

Keep permissions as small as possible when generating the invite URL from the Developer Portal. For the current feature set, the bot only needs View Channels, Send Messages, and Embed Links.

Project structure

src/
  domain/       # framework-free business logic
  primary/      # inbound Discord adapters
  secondary/    # outbound adapters
  index.ts      # bootstrap and Discord client startup
tests/          # mirrors src/

Notes

  • The codebase follows a hexagonal architecture: primary adapters depend on the domain, and the domain never depends on Discord or infrastructure.
  • The package is licensed under MIT.
  • Tests are written with Vitest.
  • Coverage is expected to stay at 100%.