{
  "x402Version": 2,
  "id": 8031,
  "slug": "8031",
  "resource": "https://agent-api-production.tim1712.workers.dev/v1/npm/install-preflight",
  "description": "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.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x5229384BD502D85aa7EcA0A31B515E5E48d3910F",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "agent-api-production.tim1712.workers.dev",
  "lastUpdated": "2026-09-14T18:43:57.396Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-14T18:43:56.911Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agent-api-production.tim1712.workers.dev",
    "manifest_name": "agent-api-production.tim1712.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}