Use before a coding agent installs an unfamiliar npm dependency
Use before a coding agent installs an unfamiliar npm dependency. Returns current facts from the official npm registry: the version `npm install` resolves (dist-tags.latest), prerelease and deprecation status, engines.node compatibility with an optional target Node version (real SemVer evaluation), license, days since release, best-effort weekly downloads, repository URL and maintainer count. Facts only — no safety, trust, or malware verdict.
5000 (raw units)
price
2
calls / 30d
2
unique payers
2026-09-14
updated
Provider
agent-api-production.tim1712.workers.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x5229384BD502D85aa7EcA0A31B515E5E48d3910F",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"nodeVersion": "22.14.0",
"packageName": "zod"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"checkedAt": "2026-08-30T10:00:02.000Z",
"daysSinceRelease": 12,
"deprecated": false,
"deprecationMessage": null,
"enginesNode": ">=18",
"found": true,
"homepage": "https://zod.dev",
"latestIsPrerelease": false,
"latestVersion": "3.24.1",
"license": "MIT",
"maintainerCount": 2,
"nodeCompatible": true,
"packageName": "zod",
"publishedAt": "2026-01-15T09:12:00.000Z",
"repositoryUrl": "https://github.com/colinhacks/zod",
"requestedNodeVersion": "22.14.0",
"source": "npm",
"warnings": [],
"weeklyDownloads": 23456789
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"nodeVersion": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"packageName": {
"maxLength": 214,
"minLength": 1,
"pattern": "^(?:@[a-z0-9][a-z0-9._-]*\\/)?[a-z0-9][a-z0-9._-]*$",
"type": "string"
}
},
"required": [
"packageName"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"checkedAt": {
"type": "string"
},
"daysSinceRelease": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"deprecated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"deprecationMessage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"enginesNode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"found": {
"type": "boolean"
},
"homepage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"latestIsPrerelease": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"latestVersion": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"license": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"maintainerCount": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"nodeCompatible": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"packageName": {
"type": "string"
},
"publishedAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"repositoryUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"requestedNodeVersion": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source": {
"const": "npm",
"type": "string"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
},
"weeklyDownloads": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"packageName",
"found",
"latestVersion",
"latestIsPrerelease",
"deprecated",
"deprecationMessage",
"enginesNode",
"requestedNodeVersion",
"nodeCompatible",
"license",
"publishedAt",
"daysSinceRelease",
"weeklyDownloads",
"repositoryUrl",
"homepage",
"maintainerCount",
"source",
"warnings",
"checkedAt"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://agent-api-production.tim1712.workers.dev/v1/npm/install-preflight" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agent-api-production.tim1712.workers.dev/v1/npm/install-preflight");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://agent-api-production.tim1712.workers.dev/v1/npm/install-preflight")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8031.json, and this resource appears in /discovery/resources and /discovery/search.