# Dep Doctor – npm Dependency Security Screener

> Dep Doctor – npm Dependency Security Screener is a paid API for AI agents from quietstore-production.edge-7e13f.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Screens a project's npm packages for supply chain risks including hallucinated/missing packages, typosquatting lookalikes, brand-new suspicious publishes, deprecations, and known CVEs, returning a 0–100 safety score.

## Facts

- Endpoint: POST https://quietstore-production.edge-7e13f.workers.dev/v1/tools/dep-doctor
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dep-doctor-npm-dependency-security-screener-6201da9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-f5duKOFR30Tpu79lTqlF

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 dep-doctor-npm-dependency-security-screener-6201da9f -d '<json body>'
```

Example prompt: Before I run npm install, screen my package.json for hallucinated packages, typosquatting lookalikes, and known CVEs — I need the safety score and whether CI should be blocked.

## When to prefer this

Choose this endpoint when you need a fast, low-cost pre-install or pre-deploy screen of npm dependencies for supply chain risks — particularly when AI-generated code may have introduced hallucinated package names, or when you want OSV CVE checks combined with typosquatting and novelty detection in a single call. Prefer over manual npm audit when you need a composite 0–100 score and ci_failed signal for automated gating.

## Known failure modes

- Payment not received or underpaid – endpoint returns 402 Payment Required before processing
- More than 60 packages submitted – request is rejected or truncated with an error
- Malformed package.json body – returns 400 with parsing error
- npm registry or OSV lookup timeout – may return partial results or a 503
- Package name too ambiguous to resolve – flagged as unresolvable in output

## How this service works

Screen declared npm packages before you install them. POST package.json (optional lockfile) ($0.02). After payment we look up each name on the npm registry and OSV: missing/hallucinated packages, lookalikes, brand-new publishes, deprecations, known CVEs. Returns 0–100, do_this_first, ci_failed. Caps at 60 packages; never fetches buyer URLs. Report: GET /v1/tools/dep-doctor/report?project=your-app.

## Output

Returns a JSON object with: a 0–100 integer safety score, a do_this_first field highlighting the most urgent issue to address, and a ci_failed boolean indicating whether the package set should block CI. Individual findings may include missing/hallucinated packages, lookalike names, packages published very recently, deprecated packages, and CVEs sourced from the OSV database. Caps at 60 packages per request.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dep-doctor-npm-dependency-security-screener-6201da9f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quietstore-production.edge-7e13f.workers.dev](https://www.zero.xyz/host/quietstore-production.edge-7e13f.workers.dev/llms.txt)
