# NPM Package Preflight Check

> NPM Package Preflight Check is a paid API for AI agents from nohands-coinbase-bazaar.bytoken2023.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-11-02).

Checks npm package metadata, maintenance signals, deprecation status, license, dependencies, and OSV vulnerabilities before installation or use.

## Facts

- Endpoint: GET https://nohands-coinbase-bazaar.bytoken2023.workers.dev/v1/x402/software/npm-package-preflight?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-preflight-check-de1b86fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_smh2l1XyoIE_xv3fDl5_R

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-preflight-check-de1b86fd
```

Example prompt: Before I add lodash to my project, can you run a preflight check on it — I want to know if it's deprecated, any known OSV vulnerabilities, its license, and whether it's still actively maintained?

## When to prefer this

Choose this endpoint when an AI agent needs to vet an npm package before installing or integrating it — especially for supply chain security, license compliance, or dependency health checks. Prefer it over general web search when you need structured, machine-readable vulnerability and maintenance data sourced directly from the npm registry and OSV database.

## Known failure modes

- Package not found on npm registry — returns 404 or error indicating unknown package
- Invalid package name format — returns validation error
- Network or registry timeout when fetching npm or OSV data
- Rate limit or payment failure — x402 payment required at $0.015 USDC per call
- Version not found for specified package version

## How this service works

Check npm package metadata, maintenance signals, deprecation, license, dependencies, and OSV vulnerabilities.

## Output

Returns structured metadata for the specified npm package including: package name and version details, deprecation status, maintenance signals (release recency, activity), license type, dependency list, and any OSV (Open Source Vulnerabilities) advisories matching the 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",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "example": "express",
       "pattern": "^(?:@[A-Za-z0-9][A-Za-z0-9._~-]*/)?[A-Za-z0-9][A-Za-z0-9._~-]*$",
       "maxLength": 214,
       "minLength": 1,
       "description": "npm package name, including an optional scope."
      },
      "version": {
       "type": "string",
       "example": "4.18.2",
       "maxLength": 80,
       "minLength": 1,
       "description": "Exact npm version or latest. Defaults to latest."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "x-schema-family": "STRUCTURED_PRODUCT_RESULT",
     "x-schema-authority": "STRUCTURED_PRODUCT_RESULT",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-preflight-check-de1b86fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nohands-coinbase-bazaar.bytoken2023.workers.dev](https://www.zero.xyz/host/nohands-coinbase-bazaar.bytoken2023.workers.dev/llms.txt)
