# DDG NPM Dependency Risk Scanner

> DDG NPM Dependency Risk Scanner is a paid API for AI agents from agents.daedalusdevelopmentgroup.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Scans npm packages for security, vulnerability, and dependency risk signals and returns a bounded risk assessment report

## Facts

- Endpoint: POST https://agents.daedalusdevelopmentgroup.com/v1/npm-dependency-risk-scan
- 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/ddg-npm-dependency-risk-scanner-b2675e7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2xPA_XyG7DHdYxHPRsdJE

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 ddg-npm-dependency-risk-scanner-b2675e7d -d '<json body>'
```

Example prompt: Can you run an npm dependency risk scan on the 'lodash' package to check for known vulnerabilities or supply chain risks before I add it to my project?

## When to prefer this

Choose this endpoint when you need a quick, bounded, machine-payable ($0.02 USDC) npm package risk scan without needing a full npm audit CLI setup or access to raw registry credentials. Ideal for AI agents doing automated pre-install checks, CI pipeline integrations, or one-off dependency vetting in workflows that support x402 micropayments.

## Known failure modes

- Package not found on npm registry — returns error or empty result
- Invalid or malformed package name — schema validation failure
- Upstream npm registry timeout — delayed or failed scan
- Unknown package version specified — version resolution error
- Rate limiting or payment failure via x402 — 402 Payment Required response

## How this service works

Machine-payable DDG services for AI agents. Current public live payment rails are x402 multi-chain USDC and direct-crypto auto/manual for public receiving-address families. MPP/Stripe/Tempo is installed but pending live provider env plus penny-settlement proof before any MPP-live advertisement. DDG sells bounded artifacts/results, not raw provider account access.

## Output

A JSON response containing a risk assessment for the specified npm package, including vulnerability findings, risk signals, dependency analysis, and an overall risk score or status (e.g. {ok: true} plus structured risk data).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "ok": true
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ddg-npm-dependency-risk-scanner-b2675e7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.daedalusdevelopmentgroup.com](https://www.zero.xyz/host/agents.daedalusdevelopmentgroup.com/llms.txt)
