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

dota-grid-cli

v1.0.1

Published

A cli for modifying DotA grid config files

Readme

DotA Grid CLI

CI

Overview

This is a tool for easily sorting your DotA grid config file by win rate, pick rate, or a mixed combination using the OpenDota API. It will go through each group in your grid layouts and order the heroes by the rate you specify.

Install

You'll need to install npm to use this tool. You can find the download for your platform here.

After you install, open your command prompt/terminal on your system and type:

npm i -g dota-grid-cli

After this you should be all set to use it!

Config File

This file can be found in various locations depending on your OS and install method, but the common locations are found below:

Windows

C:\Program Files\Steam\userdata\<steam user id>\570\remote\cfg\hero_grid_config.json

macOS

/Users/<your user>/Library/Application Support/Steam/userdata/<steam user id>/570/remote/cfg/hero_grid_config.json

Linux

/home/<your user>/.steam/steam/userdata/<steam user id>/570/remote/cfg/hero_grid_config.json

Usage

Once installed, you can invoke the cli to output your sorted file as text using:

dota-grid-cli <path to file>

If you wish to overwrite your file, simply add a --writeSortedFile or -w:

dota-grid-cli <path to file> --writeSortedFile

You can use the --sortBy or -s flag to change the sorting method. The supported sort options are win rate, pick rate, and mixed. The default is mixed which sorts by a combination of win rate and pick rate:

dota-grid-cli <path to file> --sortBy mixed
dota-grid-cli <path to file> --sortBy win-rate
dota-grid-cli <path to file> --sortBy pick-rate

Support

If you find a need to revert your config to what it was before running the command, you can find the backup at hero_grid_config_backup.json. Simply replace this file with your main one to restore.

If you need help or a reminder on the commands, you can type dota-grid-cli --help at any time:

Usage: dota-grid-cli [options] <grid-config-file-path>

Options:
  -V, --version          output the version number
  -w, --writeSortedFile  Overwrite the file specified with the sorted result (default: false)
  -s, --sortBy <method>  The method used to sort each grid group (mixed, win-rate, or pick-rate) (default: "mixed")
  -h, --help             display help for command

For additional help or to request a new feature, please open an issue under the "Issues" tab.