vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
  • Package Registry
  • Named Registries
  • Dependencies
  • Manifest
  • Packuments
  • Why use named registries?
  • Built-in aliases
  • See also
  1. Concepts
  2. /
  3. Named Registries

Named Registries

A named registry is an alias you assign to a registry URL, so you can refer to it by a short name instead of the full URL.

For example, instead of writing https://registry.example.com/ every time, you can configure an alias:

Terminal
vlt config set registries=myreg=https://registry.example.com/

Now you can use myreg: as a prefix to explicitly specify that a package should come from that registry:

Terminal
vlt install myreg:my-package@1.0.0

Or in package.json:

JSON
{
  "dependencies": {
    "my-package": "myreg:my-package@1.0.0"
  }
}

Why use named registries?

  • Multi-registry workflows — Configure different registries for different scopes or purposes (e.g., npm: for public packages, internal: for private company packages)
  • Explicit resolution — Ensure a specific package comes from a specific registry, avoiding ambiguity
  • Portability — Share configuration via vlt.json so team members use the same registry aliases

Built-in aliases

vlt provides these built-in registry aliases:

AliasRegistryNotes
npm:Configurable (no default)Default for bare specs; must be configured
jsr:https://npm.jsr.io/JavaScript Registry
gh:https://npm.pkg.github.com/GitHub Packages

See also

  • Registry Aliases — Full configuration details
  • Scoped Registries — Map scopes like @mycompany/ to specific registries
  • Registry URL Specifiers — Inline registry:https://... syntax

PreviousPackage RegistryNextDependencies

On this page

  • Why use named registries?
  • Built-in aliases
  • See also
Edit this page

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now