dev.nibling.npm.getClosure

Every abbreviated npm packument an install of the given specs reaches, streamed as NDJSON while the gateway walks the graph, so a client resolves level N while the gateway walks level N+1. The client still picks every version: a `spec` line says the versions sent so far for its name hold every candidate for that raw spec. Any service may answer it; a client names a gateway by its hostname, as a tangled repo names its knot.

Repository @nibling.dev did:plc:qgte7qw4zeutobb5h7joxoyt not from the namespace authority
Details · query
Kindquery
Authoritynpm.nibling.dev
Commit rev3n3imqrnyck22
Indexed

Query

query · GET

Parameters

query string

alias

array

`<package>:<substitute>`: when the walk picks <package>@<v>, it also walks <substitute>@<v>, which the client may install in its place.

  • maxLength: 50
itemsstring
  • maxLength: 512

binding

array

A napi-rs binding suffix such as `wasm32-wasi`: when a picked version lists two or more `<prefix>-<platform>` optional bindings at one exact version but not `<prefix>-<suffix>`, the walk also walks `<prefix>-<suffix>` at that version.

  • maxLength: 10
itemsstring
  • maxLength: 64

spec

requiredarray

Root specs, `<name>@<raw spec>`, as a dependent wrote them.

  • minLength: 1
  • maxLength: 50
itemsstring
  • maxLength: 512

Output

application/x-ndjson

Errors

InvalidRequest

No description in schema.

#absent

object

Properties

name

requiredstring

A name the registry answered 404 for.

t

requiredstring
  • const: "absent"

#end

object

Properties

t

requiredstring
  • const: "end"

#header

object

Properties

registry

requiredstring · uri

The registry the packuments come from. A client only uses a stream from the registry it installs from.

t

requiredstring
  • const: "closure"

v

requiredinteger
  • const: 1

#meta

object

Properties

funding

unknown

id

requiredstring

`<name>@<version>`, a version the walk picked.

libc

unknown

license

unknown

t

requiredstring
  • const: "meta"

#missing

object

Properties

name

requiredstring

A name the gateway could not load; the client fetches it itself.

t

requiredstring
  • const: "missing"

#spec

object

Properties

distTags

unknown

The packument's `dist-tags`, on a name's first line only.

name

requiredstring

raw

requiredstring

The spec as a dependent wrote it.

t

requiredstring
  • const: "spec"

versions

requiredunknown

Abbreviated packument version entries this name's earlier lines did not send. With those, they hold every candidate version for `raw`, and every dist-tag's version.

#wait

object

The gateway is still walking while its upstream is slow. It carries nothing, and comes at least every 2 seconds while no other line does, so a client can tell a slow registry from a gateway that is gone. A cached stream replays without it.

Properties

t

requiredstring
  • const: "wait"

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • dev.nibling.npm.describeGateway

    query not from the namespace authority

    What an npm gateway says about itself, so a client can check a hostname before keeping it, as tangled's knots answer sh.tangled.knot.version. A gateway is named by its hostname and answers at https://<host>/xrpc/.