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

js13k

v0.0.1-rc.2

Published

A CLI for the js13kGames competition

Readme

js13k CLI

Command‑line tools for building and serving js13kGames projects.

Quick start

npx js13k --help

Run a specific command:

npx js13k <command>

Commands

  • dev: Run the dev server with js13k defaults.

    npx js13k dev
  • build: Build the project with js13k defaults (outputs to dist/).

    npx js13k build
  • preview: Serve the built dist/ directory and print the local URL.

    npx js13k preview
  • relay: Start a minimal WebSocket relay at /parties/relay/<room>.

    npx js13k relay
    • PORT: Set the port via the PORT env var (default: 4321).
    • Clients connect to: ws://localhost:<PORT>/parties/relay/<room>
  • create: Scaffold a new project from the official examples.

    npx js13k create

    Follow the prompts to pick an example and target directory.

Help

  • Global help: npx js13k --help
  • Command help: npx js13k <command> --help

If ECT fails to install with npx/bunx

This CLI relies on native binaries (ECT, advzip) provided via postinstall steps (ect-bin, advzip-bin). Some runners (for example, bunx) may skip or block postinstall until the package is trusted, which can cause errors like ECT not found.

If you hit trust/permission issues, install the CLI as a dev dependency and run it via your project scripts (so installation is fully trusted first):

  • npm: npm i -D js13k
  • pnpm: pnpm add -D js13k
  • yarn: yarn add -D js13k
  • bun: bun add -d js13k

Add scripts to package.json:

{
  "scripts": {
    "js13k": "js13k",
    "dev": "js13k dev",
    "build": "js13k build",
    "preview": "js13k preview",
    "relay": "js13k relay"
  }
}

Then run:

npm run dev
# or any script above, e.g.:
npm run build
# or access the CLI directly:
npm run js13k -- --help