# SignalDesk AI NPM Dependencies Lookup

> SignalDesk AI NPM Dependencies Lookup is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-09).

Fetches the dependency list (dependencies, peer dependencies, optional dependencies) for a given npm package and version from the npm public registry.

## Facts

- Endpoint: GET https://x402-agent.kariguetoazul.workers.dev/api/dev/npm-dependencies?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-npm-dependencies-lookup-fc41fe17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8UJtQMNTtdisD8H1ZXouo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability signaldesk-ai-npm-dependencies-lookup-fc41fe17
```

Example prompt: What are all the dependencies of the express npm package at version 5.2.1?

## When to prefer this

Use this endpoint when you need a quick, structured lookup of npm package dependencies without setting up your own npm registry calls. It is particularly useful when you want normalized JSON output with license info and source provenance in a single call, especially in an agent workflow where you are programmatically analyzing dependency graphs or auditing open source packages.

## Known failure modes

- Package not found on npm registry — returns error or empty result
- Invalid version string format — rejected by schema validation
- Package name too long or empty — schema validation failure
- npm registry unavailable — upstream fetch failure
- Rate limiting or quota exhaustion on the paid endpoint

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object containing the package name, resolved version, license, and three dependency maps (dependencies, peerDependencies, optionalDependencies), along with source metadata including the npm registry URL, fetch timestamp, and expiry timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "maxLength": 200,
       "minLength": 1,
       "description": "Package name."
      },
      "version": {
       "type": "string",
       "pattern": "^[A-Za-z0-9.+_-]+$",
       "maxLength": 100,
       "minLength": 1,
       "description": "Version or latest."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": {
   "provider": "npm public registry",
   "expires_at": "2026-10-02T10:44:48.718Z",
   "fetched_at": "2026-10-02T09:44:48.718Z",
   "source_url": "https://registry.npmjs.org/express/latest",
   "transformed": true
  },
  "license": "MIT",
  "package": "express",
  "version": "5.2.1",
  "dependencies": {
   "qs": "^6.14.0",
   "depd": "^2.0.0",
   "etag": "^1.8.1",
   "once": "^1.4.0",
   "send": "^1.1.0",
   "vary": "^1.1.2",
   "debug": "^4.4.0",
   "fresh": "^2.0.0",
   "cookie": "^0.7.1",
   "router": "^2.2.0",
   "accepts": "^2.0.0",
   "type-is": "^2.0.1",
   "parseurl": "^1.3.3",
   "statuses": "^2.0.1",
   "encodeurl": "^2.0.0",
   "mime-types": "^3.0.0",
   "proxy-addr": "^2.0.7",
   "body-parser": "^2.2.1",
   "escape-html": "^1.0.3",
   "http-errors": "^2.0.0",
   "on-finished": "^2.4.1",
   "content-type": "^1.0.5",
   "finalhandler": "^2.1.0",
   "range-parser": "^1.2.1",
   "serve-static": "^2.2.0",
   "cookie-signature": "^1.2.1",
   "merge-descriptors": "^2.0.0",
   "content-disposition": "^1.0.0"
  },
  "peer_dependencies": {},
  "optional_dependencies": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-npm-dependencies-lookup-fc41fe17/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
