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

@bitgo/beta-tools

v1.0.1

Published

CLI and library for bumping @bitgo-beta dependency versions

Readme

@bitgo/beta-tools

CLI and library for bumping @bitgo-beta/* dependency versions in consumer projects.

Problem

BitGoJS publishes beta packages under the @bitgo-beta scope with pinned (non-range) inter-module dependency versions. Consumer repos must explicitly bump these versions. This tool replaces the divergent bespoke scripts that existed in individual consumer repos.

How version resolution works

Strategies are tried in order — the first available one wins:

  1. Manifest file (--versions-file): Reads an explicit JSON map of package→version. Most deterministic — useful for CI pipelines that generate a manifest during publish.

  2. GitHub Actions API (when GITHUB_TOKEN is set): Fetches the logs of the latest successful "Publish @bitgo-beta" workflow run and parses the verify-release output. This gives the complete version set (~106 packages) from a single CI run — race-free, no gaps.

  3. npm registry (default fallback): Fetches @bitgo-beta/bitgo at the requested dist-tag. Its dependencies field contains pinned versions for ~92 packages from the same CI publish run. Packages not covered by the megapackage (typically 5-6 per consumer) fall back to individual dist-tag lookups — these are racy during active publishes.

CLI usage

# Via npx
npx @bitgo-beta/beta-tools --tag beta

# Or install as devDependency
npm install -D @bitgo-beta/beta-tools
bump-bitgo-beta --tag beta

Options

| Option | Default | Description | |---|---|---| | --tag <tag> | beta | Dist tag to resolve | | --versions-file <path> | — | JSON manifest of package→version mappings | | --scope <scope> | @bitgo-beta | Package scope to match in package.json | | --pm <npm\|yarn\|pnpm> | auto-detected | Package manager to use | | --ignore <pkg...> | [] | Packages to skip | | --only-utxo | false | Only bump UTXO-related packages | | --ignore-utxo | true (when --only-utxo not set) | Skip UTXO-related packages | | --utxo-patterns <patterns...> | utxo, unspents, abstract-lightning, babylonlabs-io-btc-staking-ts | Patterns for UTXO package detection | | --check-duplicates | true | Check lockfile for duplicate versions after install (npm only) | | --check-duplicate-packages <pkg...> | @bitgo-beta/utxo-lib, @bitgo/wasm-utxo | Packages to check for duplicates | | --dry-run | false | Show what would be installed without installing |

Examples

# Bump all non-UTXO beta deps (default behavior)
bump-bitgo-beta

# Bump only UTXO packages
bump-bitgo-beta --only-utxo

# Bump everything, skip duplicate check
bump-bitgo-beta --ignore-utxo=false --check-duplicates=false

# Use a CI-generated manifest
bump-bitgo-beta --versions-file ./beta-versions.json

# Preview without installing
bump-bitgo-beta --dry-run

Library API

import {
  resolveVersions,
  filterDependencies,
  detectPackageManager,
  createPackageManager,
  checkDuplicates,
} from '@bitgo-beta/beta-tools';

const resolved = await resolveVersions({
  packages: ['@bitgo-beta/sdk-core', '@bitgo-beta/statics'],
  tag: 'beta',
  scope: '@bitgo-beta',
});

for (const [pkg, version] of resolved.versions) {
  console.log(`${pkg}@${version}`);
}

Development

yarn build
yarn lint
yarn unit-test