# Package Health Check — Security, License, Maintenance & Deprecation Score

> Package Health Check — Security, License, Maintenance & Deprecation Score is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-15).

Returns a 1-10 health score and structured verdicts on security advisories, CISA-KEV exploitation, license compatibility, OpenSSF Scorecard maintenance, and deprecation status for a given package before installation.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/packagehealth/check
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/package-health-check-security-license-maintenance-deprecation-score-d7e4310a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_86dSZo8NIgBVQOlfMcs6r

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 package-health-check-security-license-maintenance-deprecation-score-d7e4310a
```

Example prompt: Before I add lodash to my project, can you run a full health check on it — I need the security, license, maintenance, and deprecation verdict plus a 1-10 score? It's an npm package.

## When to prefer this

Use this endpoint when an AI coding agent or developer workflow needs a single authoritative pre-install verdict on a package dependency — especially when security (CVE/CISA-KEV), license compliance, maintenance quality, and deprecation all need to be checked in one call rather than querying multiple separate registries or databases.

## Known failure modes

- Package not found in the specified ecosystem — returns error or empty findings
- Ecosystem parameter invalid or missing — returns 400-level error
- Package data unavailable upstream (e.g. registry outage) — partial or degraded response
- Ambiguous package name across ecosystems if ecosystem param omitted — may default or error
- Payment not completed (x402) — request rejected before processing

## How this service works

PREMIUM package health & maintenance check: pass ?package=<name>&ecosystem=npm|pypi|go|maven|cargo|nuget for a 1-10 health score plus verdicts on maintenance (OpenSSF Scorecard activity), security (CVE advisories + CISA-KEV active exploitation), SPDX license fit, and deprecation. Answers "is this npm package well-maintained and safe to add?" — the health check a coding agent runs before `install`.

## Output

A structured response containing a 1-10 overall health score, an overallVerdict string, and an array of findings covering four verdict categories: security (including any active CISA-KEV exploits and CVE advisories), SPDX license fit, maintenance quality via OpenSSF Scorecard, and deprecation status. Also includes a packagesAudited count and a generatedBy field indicating whether the summary was LLM-written or template-based.

## 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",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string"
      },
      "ecosystem": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "findings": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "generatedBy": {
       "enum": [
        "llm",
        "template"
       ],
       "type": "string"
      },
      "overallVerdict": {
       "type": "string"
      },
      "packagesAudited": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-health-check-security-license-maintenance-deprecation-score-d7e4310a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
