npm · Schema

RegistryMetadata

Metadata about the npm registry instance, following CouchDB database information conventions.

PackagesJavaScriptNode.jsPackage ManagementRegistrySecurity

Properties

Name Type Description
db_name string The name of the database, typically "registry".
doc_count integer The total number of documents in the registry.
doc_del_count integer The total number of deleted documents.
update_seq integer The current update sequence number.
purge_seq integer The current purge sequence number.
compact_running boolean Whether a database compaction is currently running.
disk_size integer Total disk size in bytes.
data_size integer Actual data size in bytes.
instance_start_time string Timestamp of when this registry instance started.
disk_format_version integer The version of the on-disk storage format.
committed_update_seq integer The last committed update sequence number.
View JSON Schema on GitHub

JSON Schema

npm-registrymetadata-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RegistryMetadata",
  "title": "RegistryMetadata",
  "type": "object",
  "description": "Metadata about the npm registry instance, following CouchDB database information conventions.",
  "properties": {
    "db_name": {
      "type": "string",
      "description": "The name of the database, typically \"registry\"."
    },
    "doc_count": {
      "type": "integer",
      "description": "The total number of documents in the registry."
    },
    "doc_del_count": {
      "type": "integer",
      "description": "The total number of deleted documents."
    },
    "update_seq": {
      "type": "integer",
      "description": "The current update sequence number."
    },
    "purge_seq": {
      "type": "integer",
      "description": "The current purge sequence number."
    },
    "compact_running": {
      "type": "boolean",
      "description": "Whether a database compaction is currently running."
    },
    "disk_size": {
      "type": "integer",
      "description": "Total disk size in bytes."
    },
    "data_size": {
      "type": "integer",
      "description": "Actual data size in bytes."
    },
    "instance_start_time": {
      "type": "string",
      "description": "Timestamp of when this registry instance started."
    },
    "disk_format_version": {
      "type": "integer",
      "description": "The version of the on-disk storage format."
    },
    "committed_update_seq": {
      "type": "integer",
      "description": "The last committed update sequence number."
    }
  }
}

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-registrymetadata"
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.