Skip to content

feat: add Cloudsmith registry to benchmarks#68

Merged
darcyclarke merged 1 commit intovltpkg:mainfrom
vltbaudbot:feat/cloudsmith-registry
Mar 11, 2026
Merged

feat: add Cloudsmith registry to benchmarks#68
darcyclarke merged 1 commit intovltpkg:mainfrom
vltbaudbot:feat/cloudsmith-registry

Conversation

@vltbaudbot
Copy link
Contributor

Adds Cloudsmith as a fourth registry in the benchmark suite alongside npm, vlt, and AWS CodeArtifact.

Backend

  • scripts/registry/common.sh — Cloudsmith registry config using CLOUDSMITH_REGISTRY (URL without protocol prefix, https: is prepended) and CLOUDSMITH_AUTH_TOKEN env vars for .npmrc auth setup
  • registry-clean.sh / registry-lockfile.sh — Cloudsmith added to hyperfine commands
  • generate-chart.js — Cloudsmith color: #2a6fe1
  • bench CLI — added to available registries, usage docs, examples
  • CI workflowCLOUDSMITH_REGISTRY and CLOUDSMITH_AUTH_TOKEN secrets passed to benchmark job

Frontend

  • cloudsmith added to PackageManager type and all data interfaces
  • Cloudsmith SVG icon component (official logo — diamond with circle cutout)
  • Icon mapping, display names (Cloudsmith / npm.cloudsmith.io in registry view)
  • Added to history data package managers list

Required Secrets

Two GitHub repository secrets need to be configured:

  • CLOUDSMITH_REGISTRY — the registry URL without protocol (e.g. //npm.cloudsmith.io/org/repo/)
  • CLOUDSMITH_AUTH_TOKEN — the authentication token

Add Cloudsmith (npm.cloudsmith.io) as a fourth registry in the
benchmark suite alongside npm, vlt, and AWS CodeArtifact.

Backend:
- Add Cloudsmith registry config to scripts/registry/common.sh
  - CLOUDSMITH_REGISTRY env var provides the URL (without protocol)
  - CLOUDSMITH_AUTH_TOKEN env var provides the auth token
  - Registry URL is prefixed with 'https:' for npm config
- Add Cloudsmith to hyperfine commands in registry-clean.sh and
  registry-lockfile.sh
- Add Cloudsmith to REGISTRY_COLORS in generate-chart.js (#2a6fe1)
- Add CLOUDSMITH_REGISTRY and CLOUDSMITH_AUTH_TOKEN secrets to CI
- Update bench CLI: AVAILABLE_REGISTRIES, usage text, examples

Frontend:
- Add 'cloudsmith' to PackageManager union type and all data interfaces
- Add Cloudsmith icon component (diamond + circle from official logo)
- Add Cloudsmith to icon map, display names ('Cloudsmith' / 'npm.cloudsmith.io')
- Add to history data package managers list
@darcyclarke darcyclarke merged commit 2cac036 into vltpkg:main Mar 11, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants