# npm-deprecated-check

> npm-deprecated-check is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns maintenance-risk signals for an npm package: deprecation status, days since last publish, dependency deprecation, single-maintainer flag, and a risk label (healthy/stale/deprecated).

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/npm-vulns-hint
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-deprecated-check-e4a4b648
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uIycUJVcfVZhTuG_ofkCx

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-deprecated-check-e4a4b648
```

Example prompt: Before I install lodash, can you quickly check if it's deprecated, how long ago it was last published, and whether there are any deprecation risks I should know about?

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.01) maintenance-risk triage on an npm package before installing it — especially useful for CI pipelines, dependency audits, or agent-driven code review workflows. It is NOT a CVE/security vulnerability scanner; prefer it for maintenance hygiene (staleness, deprecation, bus-factor) rather than security advisories.

## Known failure modes

- Package name not found on npm registry — returns error or null result
- Package name not provided in query params — returns 400 or validation error
- npm registry temporarily unavailable — may return timeout or upstream error
- Typo in package name returns data for a different package or not-found error

## How this service works

Maintenance-risk hints for an npm package: is the latest version deprecated (with the message), days since the last publish, whether any direct dependency's latest is deprecated, single-maintainer flag, and a simple risk label (healthy / stale / deprecated). Not a CVE scanner; a fast triage before install. $0.01 per package.

## Output

Returns a JSON object containing: whether the package's latest version is deprecated (and the deprecation message if so), the number of days since the last publish, whether any direct dependency's latest version is deprecated, a boolean flag for single-maintainer packages, and a simple risk label (healthy, stale, or deprecated).

## 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",
     "properties": {}
    }
   },
   "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/npm-deprecated-check-e4a4b648/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
