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
| Field | Type | Required | What it is |
|---|---|---|---|
package | string | Yes | — |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
name | string | Always (present in every successful answer) |
license | string | Always (present in every successful answer) |
dependencies | array | Always (present in every successful answer) |
latest_version | string | Always (present in every successful answer) |
weekly_downloads | integer | Always (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
}' {
"tool": "strale_execute",
"arguments": {
"slug": "npm-package-info",
"inputs": {
"package": "express"
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "npm-package-info",
inputs: {
"package": "express"
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="npm-package-info",
inputs={
"package": "express",
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/npm-package-info?package=express' 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
- GitHub Repo Comparison €0.05
- PyPI Package Info €0.05