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

watchup-cli

v1.0.4

Published

watchup-cli is a small command-line interface (CLI) for interacting with the Watchup monitoring service from your terminal. It allows you to log in, list and manage projects and monitors, and perform common tasks without visiting the web dashboard.

Readme

watchup-cli

watchup-cli is a small command-line interface (CLI) for interacting with the Watchup monitoring service from your terminal. It allows you to log in, list and manage projects and monitors, and perform common tasks without visiting the web dashboard.

Key features

  • Login/logout and token management
  • List, create, and delete projects
  • List, create, select, and delete monitors
  • Interactive prompts and non-interactive options for automation

Repository

  • CLI entry: index.js
  • Package: see package.json for metadata and bin mapping

Installation

Globally via npm:

npm install -g watchup-cli

Or install locally for development:

cd <project-folder>
npm install

Quick Start

  1. Install the CLI (see Installation).
  2. Run watchup login and provide your credentials.
  3. Use watchup projects:list to view projects, or watchup monitors:list --project <projectId> to view monitors.

Commands

The CLI exposes the following commands (interactive where noted):

  • watchup login — Login to Watchup (interactive prompt).
  • watchup logout — Remove saved token and logout.
  • watchup whoami — Show the logged-in user info (tries token, then server).
  • watchup projects:list — List your projects.
  • watchup projects:create [--name <name>] [--description <desc>] — Create a project (interactive fallback).
  • watchup projects:delete [--project <id>] — Delete a project (interactive fallback).
  • watchup monitors:list --project <id> — List monitors for a project.
  • watchup monitors:create [--project <id>] — Create a monitor (interactive fallback).
  • watchup monitors:delete [--project <id>] — Delete a monitor (interactive fallback).
  • watchup monitors:select — Interactively pick a project and monitor to view details.

Examples:

watchup login
watchup projects:list
watchup monitors:list --project abc123
watchup monitors:create --project abc123

Configuration & Token Storage

  • The CLI saves the auth token to a file in the current user's home directory (typically ~/.watchup_token.json).
  • Do not commit your token file to source control. A token.json exists in this repo template but is not required.

If you need CI/CD publishing or automation, prefer setting a NPM_TOKEN environment variable and using ~/.npmrc rather than committing tokens to the repo.

Publishing to npm

Checklist before publishing:

  • Make sure the name in package.json is unique on npm.
  • Bump the version field for each publish.
  • Fill description, author, and repository in package.json.
  • Add a short README.md (this file).
  • Exclude sensitive files like local token files via .npmignore or by placing them outside the package.

Dry-run and publish commands:

cd "C:\Users\emman\OneDrive\Desktop\watchup-cli"
npm publish --dry-run
# if dry-run looks correct and you're authenticated
npm publish

Authentication:

  • Create an automation token at https://www.npmjs.com/settings//tokens.
  • Add it to your user ~/.npmrc as //registry.npmjs.org/:_authToken=YOUR_TOKEN, or export NPM_TOKEN and use it at publish time.

Contributing

  • Clone the repo and open it locally.
  • Run npm install to install dependencies.
  • Make changes and test commands locally with node index.js <command> or by linking: npm link.

Please open issues or pull requests for bugs, feature requests, or improvements.

Troubleshooting

  • If publish fails due to an existing version, bump version in package.json.
  • If you see authentication errors, ensure your npm token is valid and present in ~/.npmrc or NPM_TOKEN.
  • If network errors occur, verify the API_URL in index.js and your internet connection.

License

This project currently lists ISC in package.json. Update the license field in package.json if you choose a different license.


If you'd like, I can also:

  • Add usage examples for each command with expected output.
  • Create a .npmignore to exclude token.json and other sensitive files.
  • Run npm publish --dry-run for you (you'll need to authenticate locally or provide a token).

File: README.md