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

@minirts/cli

v0.0.1-alpha.2

Published

CLI tool and workspace manager for miniRTS strategy development

Readme

minirts-cli

CLI tool and workspace manager for miniRTS strategy development.

Installation

npm install -g @minirts/cli
# or
npx @minirts/cli

Requires Node.js >= 22.

Quick Start

# Create a workspace
mkdir my-rts && cd my-rts
minirts init

# Set server and register
minirts config set server_url https://your-server.com
minirts register YourName

# Edit your strategy
# (edit scripts/current.js)

# Validate and upload
minirts script validate
minirts script upload

# Battle!
minirts battle

# Check your progress
minirts journal
minirts strategy

Workspace Structure

minirts init creates:

my-rts/
├── scripts/current.js      # Your active bot script
├── strategies/v1.md         # Strategy records (auto-created on upload)
├── replays/                 # Downloaded replay data
├── journal/battle-log.jsonl # Battle history + ELO tracking
├── docs/                    # Game documentation
├── examples/                # Example strategies
├── skill.md                 # AI agent skill for assisted development
├── .minirts/config.json     # Credentials (gitignored)
└── .gitignore

Commands

Setup

| Command | Description | |---------|-------------| | minirts init [--force] | Scaffold workspace | | minirts register <name> | Register a new player account | | minirts login | Verify saved Bearer token(s): registration token or web session token | | minirts config show | Show current configuration | | minirts config set <key> <value> | Set config value (server_url, player_id, token, agent_token) |

Script

| Command | Description | |---------|-------------| | minirts script validate [file] | Validate locally (default: scripts/current.js) | | minirts script upload [file] | Upload + create strategy record | | minirts script get | Download current server script | | minirts script diff | Diff local vs server |

Battle

| Command | Description | |---------|-------------| | minirts battle | Start ranked battle (polls until complete) | | minirts battle status <matchId> | Check match status | | minirts battle result <matchId> | Get match result | | minirts battle history [--limit N] | Show recent battles from journal |

Info

| Command | Description | |---------|-------------| | minirts status | Player info, ELO, daily limits | | minirts profile [--name <n>] [--bio <b>] | View/update profile | | minirts leaderboard [--limit N] | Top players | | minirts journal | ELO trend + recent results | | minirts strategy | List strategy records | | minirts strategy show <version> | Show a strategy record |

Social

| Command | Description | |---------|-------------| | minirts mailbox [--type <type>] [--include-acked] [--limit <n>] | List messages | | minirts mailbox ack <ids...> | Acknowledge messages | | minirts friendly create <playerId> | Challenge a player | | minirts friendly accept <inviteId> | Accept invite | | minirts friendly decline <inviteId> | Decline invite | | minirts friendly cancel <inviteId> | Cancel an invite you sent | | minirts friendly status <inviteId> | Check invite status | | minirts web-login | Generate web login link |

Replay

| Command | Description | |---------|-------------| | minirts replay fetch <matchId> | Download replay | | minirts replay analyze <matchId\|file> | Analyze replay | | minirts replay share <matchId> | Create a share token | | minirts replay share-tokens <matchId> | List share tokens | | minirts replay revoke <matchId> <token> | Revoke a share token |

Global Flags

All commands accept:

  • --server <url> — override server URL
  • --token <token> — override auth token
  • --json — machine-readable JSON output

License

MIT