# dev.nibling.npm.describeGateway

> 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/.

- Kind: query
- Authority: npm.nibling.dev
- Lexicon: 1
- Published by [nibling.dev](https://lexicon.garden/identity/did:plc:qgte7qw4zeutobb5h7joxoyt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qgte7qw4zeutobb5h7joxoyt/dev.nibling.npm.describeGateway)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qgte7qw4zeutobb5h7joxoyt/dev.nibling.npm.describeGateway/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qgte7qw4zeutobb5h7joxoyt/dev.nibling.npm.describeGateway/analytics)

## Query (`dev.nibling.npm.describeGateway`)

Type: query · GET

### Output (application/json)

- `closureVersion` (integer, required): The `v` of the dev.nibling.npm.getClosure header this gateway sends.
- `registry` (string · uri, required): The registry its closures come from. A client uses only closures from the registry it installs from.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "closureVersion": {
              "description": "The `v` of the dev.nibling.npm.getClosure header this gateway sends.",
              "type": "integer"
            },
            "registry": {
              "description": "The registry its closures come from. A client uses only closures from the registry it installs from.",
              "format": "uri",
              "type": "string"
            }
          },
          "required": [
            "closureVersion",
            "registry"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "description": "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/.",
  "id": "dev.nibling.npm.describeGateway",
  "lexicon": 1
}
```
