npm Package Info

Get an npm package's details: version, dependencies, weekly downloads, repository and licence.

Pay by wallet (x402) npm-package-info

Example

Example answer
{
  "name": "test",
  "author": null,
  "created": "2011-02-16T22:31:02.088Z",
  "license": "MIT",
  "homepage": "https://github.com/nodejs/node-core-test#readme",
  "keywords": [],
  "dist_tags": {
    "latest": "3.3.0"
  },
  "repository": "git+https://github.com/nodejs/node-core-test.git",
  "description": "Node.js 18's node:test, as an npm package",
  "dependencies": [
    "minimist",
    "readable-stream",
    "string.prototype.replaceall"
  ],
  "last_modified": "2026-01-13T15:11:22.334Z",
  "latest_version": "3.3.0",
  "total_versions": 29,
  "recent_versions": [
    {
      "version": "3.3.0",
      "published": "2023-02-08T11:14:06.655Z"
    },
    {
      "version": "3.2.1",
      "published": "2022-08-03T11:26:29.684Z"
    },
    {
      "version": "3.2.0",
      "published": "2022-08-01T08:45:27.997Z"
    },
    {
      "version": "3.1.0",
      "published": "2022-07-20T18:25:10.819Z"
    },
    {
      "version": "3.0.1",
      "published": "2022-06-15T08:43:33.797Z"
    }
  ],
  "dev_dependencies": [
    "standard"
  ],
  "weekly_downloads": 537839
}

Inputs

FieldTypeRequiredWhat it is
packagestringYes—

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
namestringAlways (present in every successful answer)
licensestringAlways (present in every successful answer)
dependenciesarrayAlways (present in every successful answer)
latest_versionstringAlways (present in every successful answer)
weekly_downloadsintegerAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "npm-package-info",
    "inputs": {
      "package": "express"
    },
    "max_price_cents": 5
  }'

Limitations

  • Private packages and registries are not accessible

    Queries the public npm registry — private packages and scoped packages from private registries are not accessible

    What to do instead: For private packages, query your organisation's registry endpoint directly

Related tools