# npm Package Security Risk Checker

> npm Package Security Risk Checker is a paid API for AI agents from relay402.georgespring.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-14).

Checks an npm package by name for security risk signals, returning a risk score, risk level, and package metadata including version, license, downloads, and deprecation status.

## Facts

- Endpoint: GET https://relay402.georgespring.workers.dev/api/security-npm-risk
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-security-risk-checker-693b2ea8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c-KlZWtYEXhocSECdKg7X

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 npm-package-security-risk-checker-693b2ea8
```

Example prompt: Can you check the security risk of the npm package 'event-stream' and tell me its risk score, risk level, whether it's deprecated, and what license it uses?

## When to prefer this

Choose this endpoint when you need a fast, pre-computed security risk signal for a specific npm package — especially useful in CI/CD pipelines, dependency auditing workflows, or when evaluating whether to add a new open-source Node.js dependency. Prefer it over manual registry inspection when you need a structured risk score with metadata in a single call.

## Known failure modes

- Package name not found on npm registry — returns error or empty result
- Package name too short or invalid (violates minLength:1 / maxLength:214) — schema validation error
- Rate limit or payment failure — 402 or 429 response
- Network timeout reaching the workers.dev endpoint

## How this service works

Checks npm packages for security risk signals and supply-chain threats.

## Output

Returns a risk score (numeric), a risk level (e.g. low, medium, high), plus supporting package details: latest version, license type, total downloads, and deprecated status — giving a quick security posture snapshot for the queried npm package.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "maxLength": 214,
       "minLength": 1
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-security-risk-checker-693b2ea8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relay402.georgespring.workers.dev](https://www.zero.xyz/host/relay402.georgespring.workers.dev/llms.txt)
