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

@boardgamebuddy/game-pack-cli

v0.1.0

Published

Developer CLI for BoardGameBuddy game packs

Readme

@boardgamebuddy/game-pack-cli

Developer CLI for creating and testing BoardGameBuddy game packs.

Installation

npm install -g @boardgamebuddy/game-pack-cli

Commands

bgb new <game-id>

Scaffold a new game pack from the upstream template.

bgb new ticket-to-ride
bgb new ticket-to-ride --name "Ticket to Ride"

Arguments

| Argument | Description | |---|---| | game-id | Unique identifier for the game. Lowercase alphanumeric and hyphens only (e.g. ticket-to-ride). |

Options

| Option | Description | |---|---| | -n, --name <displayName> | Display name shown in the app. Defaults to the title-cased game-id. |

This command downloads the template from BoardGameBuddy/game-packs and creates the pack under <game-id>/ in the current directory:

ticket-to-ride/
  game.json        ← patched with your game-id and display name
  scorer.ts        ← implement your scoring logic here
  scorer.js        ← compiled output (generated)
  embeddings.json  ← card embeddings

bgb serve [pack-dir]

Start a local dev server for a game pack with live reload whenever scorer.ts changes.

# from inside the pack directory
cd games/ticket-to-ride
bgb serve

# or pass the path explicitly
bgb serve games/ticket-to-ride

The server starts on port 3000 (override with the PORT environment variable) and prints a QR code you can scan in the BoardGameBuddy app to load the pack directly.

When scorer.ts changes, the CLI automatically recompiles it with tsc and pushes a reload event to the app via Server-Sent Events.

Developing a game pack

  1. Scaffold the pack:

    bgb new my-game
  2. Implement scoring in my-game/scorer.ts. The score function receives all players and their detected cards and must return a score result for each player:

    export function score(players: PlayerInput[]): PlayerScoreResult[] {
      // your logic here
    }
  3. Start the dev server:

    bgb serve my-game
  4. Open the app, navigate to Pack Store, and scan the QR code to load your pack. The app reloads automatically whenever you save scorer.ts.

Requirements

  • Node.js >= 18