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 🙏

© 2025 – Pkg Stats / Ryan Hefner

archon

v3.1.3

Published

A helper to test battle code bots (battlecode.org)

Downloads

67

Readme

archon

A helper to test battle code bots (battlecode.org)

Installation

npm install -g archon

Check for Dependancies

ant -version
java -version

How it works

First do:

> cd path/to/battlecode
> archon -h # shows the help and usage

Run Matches

archon match [teams] [maps] [options]

Single matches

Plays the two bots against each other on the specified maps

> archon src/botA src/botB maps/map1
 map1 [botA/botB] botB 1000
 Summary:
 botA 0  1 0
 botB 1  0 100

on map1 botB won in 1000 - 1499 rounds

> archon src/botA src/botB maps/map1 maps/map2 ... maps/mapN

 map1 [botA/botB] botA 500
 map2 [botA/botB] botB 1000
 ...
 mapN [botA/botB] botA 1500
 Summary:
 botA 5 5 50
 botB 5 5 50

Round Robin

Plays all bots against each other on every map

> archon src/botA src/botB src/botC maps/map1 maps/map2

 map1 [botA/botB] botA 1000
 map1 [botA/botC] botC 500
 map1 [botB/botC] botB 1500
 map2 [botA/botB] botA 1500
 map2 [botA/botC] botC 1000
 map2 [botB/botC] botC 2500
 Summary:
 botA 2 2 50
 botB 1 3 25
 botC 3 1 75

VS World

Plays the host bot against all the others on all the maps

> archon --host botA src/botB src/botC maps/map1 maps/map2

 map1 [botA/botB] botA 500
 map1 [botA/botC] botC 1000
 map2 [botA/botB] botA 1000
 map2 [botA/botC] botC 2000
 Summary:
 botA map1 1 1 50
 botA map2 1 1 50

Options

  -e, --export-csv  Exports game data to csv
  -h, --help        Prints usage
  -l, --elo         Calculates the elo for the run
  -m, --all-maps    Runs all teams specified on all maps in maps/
  -o, --host        Specify a host for the tournament for VsWorld
  -r, --replay-dir  Specify the directory to save the replays in    [default: "replays"]
  -s, --series      Players play the maps in series instead 1 by 1
  -t, --all-teams   Runs all teams in src/ on the specified maps
  -x, --mirror      Runs 2x the matches with teams as both A and B

Watch the matches

archon watch [replays]

You can then watch all your saved games

> archon watch replays/match.rms

Opens match.rms in the visualizer for you to watch

> archon watch replays

Opens all matches in the 'replays' folder for you to watch (close the window to start the next)

> archon watch replays replays1/match.rms replays2

Opens all the matches in replays and replays2 and match.rms for you to watch

Clean

archon clean

Cleans archon config files.

Spawn (Beta)

Currently only works in OSX

archon spawn [local branches/tags] [-a/-b/-g]

Spawns new teams in the teams folder from the given branches or tags

Options

Options:
  -a, --local-branches   Spawns teams from all local branches
  -b, --remote-branches  Spawns teams from all remote branches
  -g, --tags             Spawns teams from all git tags

Kill (Beta)

Doesn't work on windows

archon kill

Kills all spawned players

Feature Requests

  1. Output to CSV and/or Google Big Query
  2. Single elimination tournament
  3. Double elimination tournament
  4. Multiple games running at one time (not possible)