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

@couch-kit/cli

v0.3.8

Published

CLI tools for Couch Kit party games — bundle web controllers, simulate clients, and scaffold projects

Readme

@couch-kit/cli

Developer tooling for Couch Kit.

Starter Project: See Buzz for a complete example that uses the CLI to bundle its web controller.

Installation

bun add -d @couch-kit/cli

Commands

init

Scaffolds a web controller project (Vite + React + TypeScript) to add to an existing host app. This creates only the phone/tablet side — for a full game project (host + client + shared), clone the Buzz starter.

bunx couch-kit init web-controller

bundle

Builds the web controller and copies the assets into your Android project's assets/www folder, along with a manifest.json listing all files. This manifest is used by useExtractAssets() on the host to extract assets at runtime.

# Default (looks for ./web-controller and copies to android/app/src/main/assets/www)
bunx couch-kit bundle

# Custom paths
bunx couch-kit bundle --source ./my-web-app --output ./android/app/src/main/assets/www

Output structure:

android/app/src/main/assets/www/
├── manifest.json       ← import this in your host app
├── index.html
├── assets/
│   └── ...

simulate

Spawns headless WebSocket bots to simulate players (useful for load testing and quick iteration).

# Default: 4 bots, ws://localhost:8082
bunx couch-kit simulate

# Custom host + count
bunx couch-kit simulate --url ws://192.168.1.99:8082 --count 8

# Action interval (ms)
bunx couch-kit simulate --interval 250

replay

Replays a recorded game session against a reducer, validating state transitions. Useful for debugging, regression testing, and reproducing bugs from recordings captured with useActionRecorder.

# Replay a recording against your reducer
bunx couch-kit replay ./session.json ./shared/reducer.ts

# With intermediate state snapshots
bunx couch-kit replay ./session.json ./shared/reducer.ts --snapshots

# JSON output (for piping to other tools)
bunx couch-kit replay ./session.json ./shared/reducer.ts --json

The reducer module must export a default or a named reducer function. If your shared file exports gameReducer, add a re-export:

// shared/reducer.ts (or any entry point for replay)
export { gameReducer as default } from "./types";

dev

Starts a Vite dev server on the LAN so phones can load the controller from your laptop during development.

# Default: port 5173, exposed to LAN
bunx couch-kit dev

# Custom port
bunx couch-kit dev --port 3000

Prints the LAN URL (e.g., http://192.168.1.50:5173) so you can pass it as devServerUrl to GameHostProvider. Requires vite as a dev dependency in your web controller project.