npm · Schema

PackageDocument

A full package document (packument) containing all metadata for a package, including every published version.

PackagesJavaScriptNode.jsPackage ManagementRegistrySecurity

Properties

Name Type Description
_id string The package name, used as the document identifier.
_rev string The CouchDB document revision identifier.
name string The name of the package.
description string A short description of the package.
dist-tags object A mapping of distribution tags to version strings. The "latest" tag is always present.
versions object A mapping of version strings to version metadata objects.
time object A mapping of version strings to ISO 8601 timestamps indicating when each version was published. Includes special keys "created" and "modified".
maintainers array List of current package maintainers.
author object
repository object
readme string The README content for the package, typically from the latest version.
readmeFilename string The filename of the README file.
homepage string The URL of the package homepage.
keywords array Keywords associated with the package for search discovery.
bugs object Issue tracker information.
license string The SPDX license identifier for the package.
View JSON Schema on GitHub

JSON Schema

npm-packagedocument-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PackageDocument",
  "title": "PackageDocument",
  "type": "object",
  "description": "A full package document (packument) containing all metadata for a package, including every published version.",
  "properties": {
    "_id": {
      "type": "string",
      "description": "The package name, used as the document identifier."
    },
    "_rev": {
      "type": "string",
      "description": "The CouchDB document revision identifier."
    },
    "name": {
      "type": "string",
      "description": "The name of the package."
    },
    "description": {
      "type": "string",
      "description": "A short description of the package."
    },
    "dist-tags": {
      "type": "object",
      "description": "A mapping of distribution tags to version strings. The \"latest\" tag is always present.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "versions": {
      "type": "object",
      "description": "A mapping of version strings to version metadata objects.",
      "additionalProperties": {
        "$ref": "#/components/schemas/PackageVersion"
      }
    },
    "time": {
      "type": "object",
      "description": "A mapping of version strings to ISO 8601 timestamps indicating when each version was published. Includes special keys \"created\" and \"modified\".",
      "additionalProperties": {
        "type": "string",
        "format": "date-time"
      }
    },
    "maintainers": {
      "type": "array",
      "description": "List of current package maintainers.",
      "items": {
        "$ref": "#/components/schemas/Person"
      }
    },
    "author": {
      "$ref": "#/components/schemas/Person"
    },
    "repository": {
      "$ref": "#/components/schemas/Repository"
    },
    "readme": {
      "type": "string",
      "description": "The README content for the package, typically from the latest version."
    },
    "readmeFilename": {
      "type": "string",
      "description": "The filename of the README file."
    },
    "homepage": {
      "type": "string",
      "format": "uri",
      "description": "The URL of the package homepage."
    },
    "keywords": {
      "type": "array",
      "description": "Keywords associated with the package for search discovery.",
      "items": {
        "type": "string"
      }
    },
    "bugs": {
      "type": "object",
      "description": "Issue tracker information.",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL of the issue tracker."
        }
      }
    },
    "license": {
      "type": "string",
      "description": "The SPDX license identifier for the package."
    }
  }
}

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-packagedocument"
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 email required.

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