π¦npm Package Info
Look up any package on the public npm registry: latest version, description, license, homepage, and publish dates for the first and most recent release. Agents use this to check dependencies before installing or to detect newly published versions.
Worked examples
express
GET /api/v1/dev/npm-info?package=express
Result: express@5.3.0
@x402/next
GET /api/v1/dev/npm-info?package=%40x402%2Fnext
Result: @x402/next@2.28.0
Machine API (x402)
$0.002 / callThis tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol β no accounts, no API keys.
GET /api/v1/dev/npm-info?package=express HTTP/1.1
Host: localhost:3000
β 402 (payment required, instructions in headers)
β 200 (after X-PAYMENT header; JSON body below)
{
"tool": "dev/npm-info",
"input": {"package":"express"},
"result": { "value": null, "answer": "express@5.3.0" }
}Agent docs: /llms.txt Β· OpenAPI spec Β· integration guide
About this tool
Query the public npm registry for any package: latest version, description, license, homepage and publish timeline. The dependency-check an agent runs before pinning versions or upgrading packages.
Frequently asked questions
Scoped packages?
Yes β pass the full name including the scope, e.g. `@x402/next`.