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

@coderook/cli

v0.12.0

Published

CodeRook from the command line, on any operating system

Downloads

2,181

Readme

CodeRook CLI

CodeRook from the terminal, on Windows, macOS and Linux alike. It uses the same engines as the desktop application — the same scanner, the same .gitignore rules, the same upload, download and .cbx bundling — so a project moved by one is understood by the other.

Install

Requires Node 20.11 or later, and nothing else.

npm install --global @coderook/cli

Or from this repository:

cd cli
npm install
npm run build
npm link

Sign in

Create a personal access token in Settings on coderook.com, then:

coderook sign-in

The token is written to a file only your account can read:

| Platform | Location | | --- | --- | | Windows | %APPDATA%\CodeRook | | macOS | ~/Library/Application Support/CodeRook | | Linux | $XDG_CONFIG_HOME/coderook, or ~/.config/coderook |

For automation, set CODEROOK_TOKEN instead and nothing is written to disk. CODEROOK_API_URL points the tool at a different service.

Everyday use

coderook status                    what is here that is not saved yet
coderook submit -m "Fixed the parser"
coderook get                       fetch the latest version over this folder
coderook clone my-project          fetch a project into a new folder

status and submit act on the current directory unless you name another. The first time either runs in a folder, it looks for a project on your account whose name matches and links the two, so a folder you already uploaded from the desktop is recognised rather than treated as new.

submit sends only what changed. Files the service already holds are not uploaded again, and the version it records still names every file in the project — a version is a snapshot, not a difference.

Ignore rules

coderook rules            show the rules in force
coderook rules --init     write a starter .gitignore

Rules live in the project's own .gitignore, so CodeRook, git, the website and the desktop application all read one file. A ! line puts something back. Personal exclusions that should not reach a collaborator belong in .git/info/exclude.

Bundles

coderook bundle                    pack this project as <name>.cbx
coderook unbundle backup.cbx       extract one
coderook inspect backup.cbx        see what it holds  (--files to list them)

A .cbx is the CodeBox bundle format: content-defined chunks, Zstandard where it helps, raw where it does not, and a SHA-256 for every chunk and file. Extraction is verified and atomic — a damaged bundle fails rather than leaving a half-written tree.

Checking things

coderook doctor

Reports the tool's version, where its configuration lives, whether the service is reachable, and who this machine is signed in as.

Exit codes

0 on success, 1 on failure. Every command prints why it failed on standard error, so a script can branch on the status and log the reason.