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

@verdaccio/registry-cli

v1.1.0

Published

CLI tool for Verdaccio registries — non-interactive login, whoami with groups, and health checks

Readme

@verdaccio/registry-cli

CLI tool for Verdaccio registries — non-interactive login, user info with groups, and health checks.

Zero dependencies. Works with any Verdaccio auth plugin (htpasswd, LDAP, Azure AD, etc.).

Installation

# Use directly with npx
npx @verdaccio/registry-cli login -u admin -p secret

# Or install globally
npm install -g @verdaccio/registry-cli

Commands

login — Authenticate to a registry

Non-interactive login — ideal for CI/CD pipelines.

# Username + password
verdaccioctl login -u admin -p secret -r http://localhost:4873

# With email
verdaccioctl login -u admin -p secret -e [email protected] -r http://localhost:4873

# Token-based (Azure AD, OIDC, JWT)
verdaccioctl login --token eyJhbGciOi... -r http://localhost:4873

The token is written to ~/.npmrc automatically.

whoami — Show current user and groups

verdaccioctl whoami -r http://localhost:4873
# Username: admin
# Groups:   admins, developers
# Registry: http://localhost:4873

ping — Check if registry is reachable

verdaccioctl ping -r http://localhost:4873
# Registry: http://localhost:4873
# Status:   OK
# Time:     12ms

Returns exit code 1 if unreachable — useful in CI health checks.

Options

| Option | Short | Description | | ------------------- | ----- | -------------------------------------------------- | | --registry <url> | -r | Registry URL (default: http://localhost:4873) | | --username <user> | -u | Username (login only) | | --password <pass> | -p | Password (login only) | | --email <email> | -e | Email (login only, optional) | | --token <token> | — | Pre-existing token for login (JWT, Azure AD, etc.) | | --help | -h | Show help |

CI/CD Examples

GitHub Actions

- name: Login to Verdaccio
  run: npx @verdaccio/registry-cli login -u ${{ secrets.NPM_USER }} -p ${{ secrets.NPM_PASS }} -r https://registry.company.com

- name: Publish
  run: npm publish --registry https://registry.company.com

Azure DevOps

- script: npx @verdaccio/registry-cli login -u $(NPM_USER) -p $(NPM_PASS) -r https://registry.company.com
  displayName: Login to Verdaccio

- script: npm publish --registry https://registry.company.com
  displayName: Publish package

GitLab CI

publish:
  script:
    - npx @verdaccio/registry-cli login -u $NPM_USER -p $NPM_PASS -r https://registry.company.com
    - npm publish --registry https://registry.company.com

Docker / Shell Scripts

#!/bin/bash
# Health check before publishing
verdaccioctl ping -r http://registry:4873 || exit 1

# Login
verdaccioctl login -u deploy -p "$DEPLOY_PASSWORD" -r http://registry:4873

# Verify identity
verdaccioctl whoami -r http://registry:4873

# Publish
npm publish --registry http://registry:4873

Azure AD token login

# Get token from Azure CLI
TOKEN=$(az account get-access-token --resource api://your-client-id --query accessToken -o tsv)

# Login with token
verdaccioctl login --token "$TOKEN" -r https://registry.company.com

Programmatic API

All commands are also exported as functions:

import {login, loginWithToken, whoami, ping} from '@verdaccio/registry-cli';

await login({username: 'admin', password: 'secret', registry: 'http://localhost:4873'});
await loginWithToken('eyJhbG...', 'http://localhost:4873');
const user = await whoami('http://localhost:4873');
const health = await ping('http://localhost:4873');

License

MIT