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

@rogs/cli

v0.1.3

Published

Personal cross-platform CLI for running rogs commands

Readme

rogs

Personal CLI so one command works across your machines.

Install

npm install -g @rogs/cli

Requires Node.js 18 or newer.

Usage

rogs --help
rogs --version
rogs list
rogs update
rogs 9router --help
rogs 9router pull
rogs 9router pull --version 3
rogs 9router pull --target ./db.json
rogs 9router push
rogs 9router push --target ./db.json
rogs 9router push --file-name router-config.json

Output Style

The CLI uses a consistent terminal output format:

  • > ... for progress and informational messages
  • OK ... for successful completion
  • ERROR ... for failures with a short next step when helpful

rogs 9router pull downloads the latest 9router config over HTTPS.

Default pull behavior:

  • scans candidate locations for an existing db.json
  • updates every existing db.json it finds
  • if none exists yet, creates one in the preferred default location

Candidate locations:

  • macOS: ~/.9router/db.json, ~/Library/Application Support/9router/db.json
  • Linux: ~/.9router/db.json, ${XDG_CONFIG_HOME:-~/.config}/9router/db.json
  • Windows: ~/.9router/db.json, %APPDATA%\\9router\\db.json

Set CEO_ROGS_9ROUTER_API_KEY before running it.

rogs 9router push reads the local JSON file, validates it, and uploads it to POST /api/9router.

Default push behavior:

  • scans the same candidate locations for existing db.json
  • uploads only when all found files have the same JSON content
  • if multiple files differ, stops and asks you to sync them first or use --target

Upload options:

  • --target PATH to choose a different local JSON file
  • --file-name NAME to override the uploaded file name sent to the API

Publish

npm login
npm publish --access public

Because the package name is scoped, the install command can stay stable while the CLI command remains just rogs.

Test

npm test

If your shell environment blocks node --test, you can run the test file directly:

node ./test/cross-platform.test.js

Update

rogs update

This updates the global CLI and shows both the current version and the installed version after the update completes.

Example output:

> Current version: 0.1.2
> Updating rogs...
OK rogs updated successfully.
Current version: 0.1.2
Updated version: latest

Version

rogs --version

Example output:

rogs 0.1.2