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

jvelezpo-pager-cli

v4.3.9

Published

Pager CLI is an NPM module that exposes a set of command-line utilities for installing, updating, building, and running Pager applications.

Downloads

8

Readme

Introduction

Pager CLI is an NPM module that exposes a set of cli commands that can be used to monitor the health of a subset of Pager's systems. Checkout the Basic Usage section for an example use case.

Installation

  • Clone project to your local
  • run npm install -g from the command line
  • expose Github access token through your shell as GITHUB_ACCESS_TOKEN. Follow the steps here to generate a Github access token. Important Provision the token to minimal permissions to get the data you need (read only is enough). Below is a set of permissions that will work with pager-cli commands.
  • repo
    • enable repo:status
    • enable repo_deployment Access deployment status
    • enable public_repo Access public repositories
    • enable repo:invite Access repository invitations
  • admin:org
    • enable read:org Read org and team membership
  • admin:public_key
    • enable read:public_key Read user public keys
  • admin:repo_hook Full control of repository hooks
    • read:repo_hook Read repository hooks

Deploy shas

A table of deploy shas across Pager's environments can be generated by running pager get deploy-shas. To display all data, certain permissions need to be granted via Github and Aptible. If --convert-to-csv command option is present, then a csv file corresponding to the deploy-sha table will be created in the pager-cli/data/deploy-shas directory.

If you do not have permissions, you can view previous (possibly out of date) deploy-sha reports here: https://docs.google.com/spreadsheets/d/1wnF1HXoWWC5K9kE2fnxnNIOFhSxF9sWLPsckGqUjF-4/edit?usp=sharing

Basic Commands

  • pager get migration-data returns a table of backend apps and the versions of hapi, lab, and code currently used by the applications.
  • pager get pr-count returns a table of PR counts for each backend app.
  • pager -h returns a help menu
  • pager get deploy-shas [row-filter] [column-filter] returns a table of deploy shas across apps and environments.
    • row-filter takes app name. To filter by multiple apps, use multiple flags.
    • column-filter takes environment name (i.e. env-*). To filter by multiple environments, use multiple flags.
  • pager get auth-code [email] [first-name] [last-name] [private-key]
    • keys
    • email should not contain @whatever.com
  • pager get hrz-auth-code [first-name] [last-name] [private-key] : for generating authcode for mock horizon patients

Using with npx

Another option is to use this CLI, without installation is using npx:

  • Instead of pager get migration-data you can run npx -p @pager/pager-cli.js pager get migration-data