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

@oidc.pub/cli

v1.2.4

Published

CLI for oidc.pub to log in, create services, and sync OIDC configuration.

Readme

@oidc.pub/cli

CLI for oidc.pub — log in, create services, and sync OIDC configuration.

Quick start

npx @oidc.pub/cli login
npx @oidc.pub/cli service create --name "My Cluster"
npx @oidc.pub/cli service sync \
  --service <your-subdomain> \
  --source-url https://your-issuer.internal

For staging, also pass --oidcpub-url https://staging.oidc.pub. If the source issuer uses a self-signed or otherwise untrusted certificate, add --insecure-tls-verify-skip.

Local development

Run the CLI directly from source without building:

npm install
npm run dev -- --help
npm run dev -- login
npm run dev -- service sync --help

Releasing

Create a release commit, tag it, and push both with:

npm run release -- patch

Shortcuts for minor and major bumps are available via npm run release:minor and npm run release:major. Pushing a v* tag triggers the GitLab pipeline to publish the package to npm using trusted publishing.

Docker

Two image tags are published:

  • registry.gitlab.com/oidc.pub/cli:latest — full CLI (interactive commands, sync, etc.)
  • registry.gitlab.com/oidc.pub/cli:latest-sync — runs service sync automatically, for Docker/K8s deployments

Sync worker (Docker)

docker run -d --name oidcpub-sync \
  -e OIDC_SOURCE_URL=https://your-issuer.internal \
  -e OIDCPUB_SERVICE_ID=<your-subdomain> \
  -e OIDCPUB_API_KEY=<your-api-key> \
  registry.gitlab.com/oidc.pub/cli:latest-sync

Sync worker (Kubernetes)

When running inside a Kubernetes cluster, the worker auto-detects the API server address — no OIDC_SOURCE_URL needed.

kubectl run oidcpub-sync \
  --namespace=kube-system \
  --image=registry.gitlab.com/oidc.pub/cli:latest-sync \
  --env="OIDCPUB_SERVICE_ID=<your-subdomain>" \
  --env="OIDCPUB_API_KEY=<your-api-key>"

One-shot mode

Pass --once to sync a single time and exit. One-shot mode is also enabled automatically when CI=true is set in the environment, which most CI/CD systems do by default.

docker run --rm \
  -e OIDC_SOURCE_URL=https://your-issuer.internal \
  -e OIDCPUB_SERVICE_ID=<your-subdomain> \
  -e OIDCPUB_API_KEY=<your-api-key> \
  registry.gitlab.com/oidc.pub/cli:latest-sync \
  --once \
  --insecure-tls-verify-skip

Environment variables

| Variable | Required | Default | Description | |---|---|---|---| | OIDCPUB_SERVICE_ID | Yes | — | Your oidc.pub service subdomain (e.g. myapp) | | OIDCPUB_API_KEY | One of key/token | — | Static API key from the dashboard | | OIDCPUB_OIDC_TOKEN_PATH | One of key/token | — | Path to an OIDC token file | | OIDC_SOURCE_URL | No* | — | Base URL to fetch OIDC config from. *Auto-detected in Kubernetes. | | SYNC_INTERVAL | No | 300 | Seconds between syncs | | OIDCPUB_SERVICE_URL | No | https://oidc.pub | oidc.pub base URL. Set this to https://staging.oidc.pub when using staging. | | CI | No | — | When true, enables one-shot mode automatically |

Building

docker build --target cli -t oidc-pub-cli .
docker build --target sync -t oidc-pub-cli-sync .

The multi-stage Dockerfile compiles TypeScript via esbuild and produces a minimal image (~55 MB) with no node_modules.