npm · Schema

Distribution

Distribution metadata for a specific published version, including integrity hashes and tarball location.

PackagesJavaScriptNode.jsPackage ManagementRegistrySecurity

Properties

Name Type Description
shasum string The SHA-1 checksum of the tarball.
tarball string The URL where the tarball can be downloaded.
integrity string The Subresource Integrity (SRI) hash of the tarball, typically using SHA-512.
fileCount integer The number of files in the tarball.
unpackedSize integer The total unpacked size of the tarball in bytes.
signatures array Cryptographic signatures for the package version.
View JSON Schema on GitHub

JSON Schema

npm-distribution-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Distribution",
  "title": "Distribution",
  "type": "object",
  "description": "Distribution metadata for a specific published version, including integrity hashes and tarball location.",
  "properties": {
    "shasum": {
      "type": "string",
      "description": "The SHA-1 checksum of the tarball."
    },
    "tarball": {
      "type": "string",
      "format": "uri",
      "description": "The URL where the tarball can be downloaded."
    },
    "integrity": {
      "type": "string",
      "description": "The Subresource Integrity (SRI) hash of the tarball, typically using SHA-512."
    },
    "fileCount": {
      "type": "integer",
      "description": "The number of files in the tarball."
    },
    "unpackedSize": {
      "type": "integer",
      "description": "The total unpacked size of the tarball in bytes."
    },
    "signatures": {
      "type": "array",
      "description": "Cryptographic signatures for the package version.",
      "items": {
        "type": "object",
        "properties": {
          "keyid": {
            "type": "string",
            "description": "The identifier of the signing key."
          },
          "sig": {
            "type": "string",
            "description": "The signature value."
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/npm-distribution"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.