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

@shouwjs/shouw.js

v1.0.2

Published

A simple string package that help you to interacts with Discord's API easily.

Readme

Shouw.js

Shouw.js is a simple, string-based package that makes interacting with the Discord API easily, and fun. Inspired by Aoi.js, it allows developers to build Discord bots with minimal setup using a clean string-based command syntax, extensibility.



Installation

npm install @shouwjs/shouw.js

Or use the CLI directly to initialize a new project:

npx @shouwjs/shouw.js init

Getting Started

const { ShouwClient } = require('@shouwjs/shouw.js');

const client = new ShouwClient({
    token: 'YOUR_BOT_TOKEN',
    prefix: '!',
    intents: ['Guilds', 'GuildMessages', 'MessageContent'],
    events: ['messageCreate'],
});

// Add a simple command
client.command({
    name: 'ping',
    code: `Pong! $pingms`,
});

// Load commands from a directory
client.loadCommands('./commands', true); // `true` enables debug logging

Project Structure Example

project/
├── index.js
├── commands/
│   ├── ping.shouw
│   ├── greet.sho
│   ├── meow.shw
│   └── fun.js

CLI Usage

Shouw.js comes with a CLI to help you bootstrap projects easily.

npx shouw init

This will:

  • Create a new folder structure
  • Generate a template bot file
  • Install dependencies
  • Provide instructions to get started

Extensions

Shouw.js also supports extensions!

const client = new ShouwClient({
    extensions: [
        new MyExtension({ /* options */ })
    ],
    ...
});

Available extensions:

  • Music - Allows you to play music in Discord voice channels.
  • Database - Allows you to store and access a database for your bot.

If you want to create your own extension, you can see the extension templates for more info.


Custom Command Files

Shouw.js also supports .shouw, .sho, and .shw file extensions for commands with decorator-like syntax!

// commands/example.shouw

@Command({
  name: 'hello',
});

Hello there!
This is a command code 1

@Command({
  name: 'bye',
})
  
Goodbye!
This is a command code 2

/* Also support comments! */
// Line and block comments is supported.

These decorators are parsed by Shouw.js internally, no compilation needed.