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

create-shardwire

v1.0.8

Published

Interactive scaffold for Shardwire Discord bot + app projects.

Readme

create-shardwire

Interactive scaffold for a Discord bot plus Shardwire app layout—so you skip copying folders by hand.

npm npm downloads License: MIT Node

npm · Docs — getting started · Scaffold changelog


npm create shardwire@latest

The Problem

Starting a split-process Discord project means repeating the same decisions: TypeScript vs JavaScript, Vite vs plain Node, where slash-command registration lives, and how .env is wired for both bot and app.

create-shardwire encodes those decisions as maintained templates so you get a running baseline and can focus on product code. If you have used npm create vite or create-next-app, the flow is the same idea with different defaults.


See It Work

$ npm create shardwire@latest
# follow prompts: project name, template (Express Server / React App), options
$ cd your-project
$ npm install
$ cp .env.example .env
# edit .env — Discord token, SHARDWIRE_SECRET, optional application/guild ids, SHARDWIRE_URL
$ npm run register
$ npm run bot    # one terminal
$ npm run app    # or npm run dev for Vite — second terminal

Install

The CLI writes a new directory of source and config under the path you pick; it does not change global npm settings or files outside that folder. Dependency downloads are normal npm traffic. It does not mint Discord tokens—you add secrets to .env after scaffolding. Undo by deleting the folder; npm uninstall -g create-shardwire only applies if you installed the bin globally (most people use npm create without that).

The supported entry is npm create, which downloads this package on demand:

npm create shardwire@latest

Requires Node.js 22+.

Published bin name: create-shardwire (invoked indirectly through npm create shardwire).

To hack on the CLI inside the monorepo:

cd packages/create-shardwire
npm install
npm run build
node dist/cli.js

Templates live under templates/ and are copied (with substitutions) during project generation.


Getting Started

  1. Run npm create shardwire@latest.
  2. Open the generated README.md in your new project for template-specific scripts.
  3. Continue from the main Getting started guide for Discord configuration and deployment notes.

How It Works

The CLI asks a short set of questions, renders a template into a target directory, and writes a package.json wired to published shardwire / @shardwire/react versions (or workspace equivalents when you develop inside the Shardwire monorepo).

| Template | When to pick it | | ------------------ | --------------------------------------------------------------------- | | Express Server | Node bot + Express (GET /health) + bridge client in one app process | | React App | Vite + React UI (@shardwire/react) talking to the bridge |

If a template name changes, trust the interactive prompt list over this table.


FAQ

Does this deploy my bot? No. It only creates files. Hosting, systemd, Docker, or PaaS setup remains yours—see Keeping it alive.

Can I update an existing repo with this? The tool targets new directories; migrate manually or generate elsewhere and copy pieces.


Contributing

Monorepo path: packages/create-shardwire. Run npm run verify before publishing or submitting substantial CLI changes.

License

MIT.