# NPM Package Health Inspector

> NPM Package Health Inspector is a paid API for AI agents from holder-victor-nova-mag.trycloudflare.com, paid per call via x402, $0.02/call, status down (last checked 2026-09-15).

Fetches and returns current public npm registry metadata for a given package, covering release freshness, deprecation status, license, repository, dependencies, maintainers, integrity hashes, and install lifecycle scripts.

## Facts

- Endpoint: GET https://holder-victor-nova-mag.trycloudflare.com/x402/npm-package-health
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-health-inspector-54ffe2ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E2GqXrwsMNZVpVsxKIWEc

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-health-inspector-54ffe2ab
```

Example prompt: Can you check the npm package health for 'left-pad' — I want to know if it's deprecated, how fresh the latest release is, what license it uses, who maintains it, and whether it runs any install lifecycle scripts?

## When to prefer this

Use this endpoint when you need a quick, structured health snapshot of a public npm package — especially for auditing deprecation, license compliance, install script safety, or release freshness — without needing to parse raw npm registry JSON yourself. Prefer it over direct npm registry calls when you want a curated, bounded response focused on security and maintenance signals.

## Known failure modes

- Package not found on npm registry — returns 404 or empty result
- Scoped package name not URL-encoded correctly — may return error
- npm registry temporarily unavailable — upstream timeout or 5xx error
- Invalid package name format — schema validation error on 'package' param

## How this service works

Inspect current public npm registry metadata for release freshness, deprecation, license, repository, dependencies, maintainers, integrity, and install lifecycle scripts.

## Output

Returns structured npm registry metadata for the requested package including: latest release date and version (freshness), deprecation flag and message if any, SPDX license identifier, repository URL, full dependency list, list of maintainers, package integrity hash, and any preinstall/install/postinstall lifecycle scripts defined in the package manifest.

## 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",
       "description": "Public scoped or unscoped npm package name."
      }
     }
    }
   },
   "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-package-health-inspector-54ffe2ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from holder-victor-nova-mag.trycloudflare.com](https://www.zero.xyz/host/holder-victor-nova-mag.trycloudflare.com/llms.txt)
