Skip to main content
The version index is a machine-facing resolver input, not a search surface. It gives you a package-scoped collection of version rows that a resolver can use to discover eligible version candidates and prune them against dependency constraints. Each row includes the SemVer version string, integrity value, dependency declarations, lifecycle status, and a pointer to the authoritative exact release metadata endpoint. You must still fetch exact release metadata before installation or trust evaluation — the index is not authoritative on its own. No authentication is required.

Endpoints

Path parameters

string
required
Volume name. Lowercase alphanumeric and hyphens, 1–128 characters.
string
Scope name for scoped volumes. Omit for scopeless volumes.

Response fields

The response is a collection envelope with an items array.
object[]
required
Array of version index rows. Each row represents one published version.

Example request and response

Version lifecycle behavior for resolvers

During ordinary dependency resolution, select only available candidates. Never select yanked, tombstoned, blocked, or unavailable versions during ordinary resolution.

Client rules

  1. Prefer highest SemVer. Among eligible stable available candidates that satisfy the applicable constraints, prefer the candidate with the highest SemVer precedence.
  2. Always fetch exact release metadata before installation. The version index is a candidate discovery input, not an authoritative release record. Call the endpoint in release.url and verify the result before installing.
  3. Treat index/metadata conflicts as inconsistent registry state. If version index data conflicts with exact release metadata (for example, different lifecycle states or mismatched integrity values), treat this as an inconsistent registry state error rather than silently preferring either representation.
Never use version index rows as a substitute for exact release metadata during installation or trust evaluation. The integrity value in an index row is informational. Only the integrity returned by the exact release metadata endpoint is authoritative.
The version index and the search endpoint serve different purposes:
Bibliothecas update the version index promptly when publish, unpublish, yank, tombstone, blocking, or equivalent version-state changes occur.