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

custom-game-cli

v1.0.1

Published

CLI tool to generate slot game projects with configurable grid sizes (5x4, 5x3, 3x3)

Readme

Custom Game CLI

CLI tool to generate slot game projects with configurable grid sizes.

Quick Start

# Generate game 5x3 (standard)
npx custom-game-cli --name my-slot --grid 5x3

# Generate game 5x4 (extended)
npx custom-game-cli --name big-slot --grid 5x4

# Generate game 3x3 (classic)
npx custom-game-cli --name retro-slot --grid 3x3

# With theme preset
npx custom-game-cli --name ocean-slot --grid 5x3 --theme ocean

# Run the generated game
cd my-slot
npm install
npm run dev

Installation (optional)

# Install globally
npm install -g custom-game-cli

# Then use directly
custom-game-cli --name my-game --grid 5x3

Available Grid Sizes

| Grid | Reels | Rows | Paylines | Type | |------|-------|------|----------|------| | 5x4 | 5 | 4 | 30 | Extended - more rows, higher volatility | | 5x3 | 5 | 3 | 20 | Standard - balanced gameplay | | 3x3 | 3 | 3 | 9 | Classic - simple, fast-paced |

Available Themes

| Theme | Description | |-------|-------------| | ocean | Underwater creatures (seahorse, dolphin, whale) | | egypt | Ancient Egypt (pharaoh, scarab, pyramid) | | space | Space odyssey (rocket, UFO, alien) | | fruit | Classic fruit machine (cherry, lemon, grape) | | irish | Lucky Irish (clover, rainbow, pot of gold) |

Commands

custom-game-cli --name <name> --grid <size>    # Generate project
custom-game-cli --name <name> --theme <theme>  # With theme preset
custom-game-cli --config <path>                # Custom config
custom-game-cli --init-config                  # Generate template config
custom-game-cli --list-grids                   # Show grid details
custom-game-cli --help                         # Show help

Examples

# Standard 5x3 game
npx custom-game-cli --name my-slot --grid 5x3

# Extended 5x4 game with ocean theme
npx custom-game-cli --name ocean-adventure --grid 5x4 --theme ocean

# Classic 3x3 game with fruit theme
npx custom-game-cli --name retro-fruits --grid 3x3 --theme fruit

# Custom config
npx custom-game-cli --name custom-game --config my-config.json

# Generate template config to customize
npx custom-game-cli --init-config

Documentation

Tech Stack

Generated projects use:

  • PixiJS v8 - 2D WebGL/WebGPU rendering
  • GSAP - Animation library
  • TypeScript - Type safety
  • Vite - Build tool

How It Works

  1. CLI reads grid template config (5x4/5x3/3x3)
  2. Copies shared core/ source files to output directory
  3. Generates GameConfig.ts based on selected grid + theme
  4. Generates Symbol.ts, SpinService.ts, AssetManager.ts per config
  5. Output is a complete, runnable game project