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

openbattle

v1.0.3

Published

AI model battle arena for comparing and testing different LLMs

Readme

OpenBattle

OpenBattle is a CLI tool for running multi-model AI battles and relay-style answer synthesis.

Install

npm install -g openbattle

Quick Start

  1. Configure provider and models:
openbattle connect
  1. Manage active models:
openbattle models
  1. Start a battle:
openbattle battle --topic "How should we design API versioning?"

Battle Modes

  • relay (default): models collaborate in sequence (draft -> improve -> review) and produce one final answer.
  • classic: multi-round interaction mode for broader comparison.

Example:

openbattle battle --mode relay --topic "Build a caching strategy"
openbattle battle --mode classic --rounds 3 --topic "Compare React and Vue"

Useful Commands

  • openbattle start interactive REPL
  • openbattle connect configure API key and models
  • openbattle models toggle active models
  • openbattle battle run a battle session
  • openbattle export --format markdown export latest battle log
  • openbattle config open local config file

Relay Options

openbattle battle \
  --mode relay \
  --quality-threshold 9 \
  --stabilization-delta 0.3 \
  --model-timeout-ms 120000
  • --quality-threshold: stop when score reaches threshold
  • --stabilization-delta: stop when improvement is small
  • --max-relay-rounds: default is active model count
  • --model-timeout-ms: timeout per model call

Config Path

Default config path:

~/.config/openbattle/openbattle.json

Creation behavior:

  • openbattle connect will create the file if it does not exist.
  • openbattle config will also create the file before opening.
  • Other commands read defaults in memory when the file is missing.

Config File Structure

Example:

{
  "version": "1.0.0",
  "active_models": [
    "gpt-4",
    "claude-3-5-sonnet"
  ],
  "models": [
    {
      "id": "gpt-4",
      "provider": "openai",
      "api_key": "sk-***",
      "enabled": true
    },
    {
      "id": "claude-3-5-sonnet",
      "provider": "anthropic",
      "api_key": "sk-ant-***",
      "enabled": true
    }
  ],
  "battle_settings": {
    "max_rounds": 3,
    "peer_review": true
  }
}

Field reference:

  • version: config schema/application version string.
  • active_models: model IDs currently active in battles.
  • models: configured model list with provider, api key, and enable flag.
  • battle_settings.max_rounds: default rounds for classic mode.
  • battle_settings.peer_review: whether peer-review is enabled.

License

ISC