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.
Details · query
| Kind | query |
|---|---|
| Authority | npm.nibling.dev |
| Commit rev | 3n3imqrnyck22 |
| Indexed |
Query
query · GETParameters
query stringalias
array`<package>:<substitute>`: when the walk picks <package>@<v>, it also walks <substitute>@<v>, which the client may install in its place.
maxLength: 50
maxLength: 512
binding
arrayA 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
maxLength: 64
Root specs, `<name>@<raw spec>`, as a dependent wrote them.
minLength: 1maxLength: 50
maxLength: 512
Output
application/x-ndjsonErrors
InvalidRequest
No description in schema.
#absent
object#end
objectProperties
const: "end"
#header
object#meta
object#missing
object#spec
objectProperties
distTags
unknownThe packument's `dist-tags`, on a name's first line only.
The spec as a dependent wrote it.
const: "spec"
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
objectThe 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
const: "wait"
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
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/.