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

battle-buddy

v0.2.1

Published

Pokemon-like CLI battle game with Claude Code companion buddies

Readme

battle-buddy

Pokemon-like CLI battle game. Pick a buddy, fight friends or run the gauntlet.

npx battle-buddy

CI npm


Play

# No install needed
npx battle-buddy gauntlet        # solo — fight all opponents in a row
npx battle-buddy host            # multiplayer — create a room, share the code
npx battle-buddy join <code>     # multiplayer — join a friend's room

# Or install globally
npm install -g battle-buddy
battle-buddy gauntlet

Buddies

| Name | Type | HP | ATK | DEF | SPD | SPC | |---------|----------|-----|-----|-----|-----|-----| | Rook | cactus | 85 | 60 | 90 | 30 | 75 | | Fernsby | fern | 70 | 75 | 55 | 80 | 60 | | Bonsly | bonsai | 80 | 80 | 70 | 40 | 70 | | Sporex | mushroom | 75 | 55 | 60 | 65 | 85 |


Battle UI

[Turn 3] Rook vs. Fernsby

▸ Rook    [cactus]   ████████████░░░░░░░░ 62/85  ↑
  Fernsby [fern]     ████████░░░░░░░░░░░░ 44/70  ☠

Choose your move:
  1. Spine Shot     (ATK: 25, ACC: 95%)
  2. Drought Drain  (DOT: 10x3, ACC: 80%)
  3. Sand Shield    (DEF +20, 3t)
  4. Bloom Burst    (ATK: 55, ACC: 85%)

> _

Multiplayer

Multiplayer runs through a Cloudflare Worker (free tier). Both players poll for state — no WebSocket needed for turn-based play.

# Player 1
$ battle-buddy host
  Room code: ABC123
  Share this code with your opponent.
  Waiting for opponent to join...

# Player 2
$ battle-buddy join ABC123

To run your own server: see Deploying the server.


Dev setup

git clone https://github.com/wongcode/battle-buddy
cd battle-buddy
npm install

npm test          # run tests
npm run build     # compile to dist/
npm run dev       # run CLI from source (tsx)

Deploying the server

# Install wrangler
npm install -g wrangler
wrangler login

# Create KV namespace
wrangler kv:namespace create ROOMS
# Copy the id and preview_id into wrangler.toml

# Deploy
wrangler deploy

Then set BATTLE_BUDDY_API in src/cli/client.ts to your worker URL, rebuild, and publish.


Publishing to npm

Releases are automated via GitHub Actions. Push a version tag:

npm version patch   # or minor / major
git push --follow-tags

The publish workflow runs tests, then publishes to npm. Requires a NPM_TOKEN secret in the repo settings.


License

MIT