# Stormap Package Safety Check

> Stormap Package Safety Check is a paid API for AI agents from stormap.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Checks whether an npm or PyPI package is safe to install by analyzing its existence, malicious reports, vulnerabilities, deprecation status, age, install scripts, download counts, and typosquat risks — returning a verdict with reasons.

## Facts

- Endpoint: GET https://stormap.ai/x402/v1/package_check?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stormap-package-safety-check-2120ad12
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hSIcU8-w8T1ZUjvZ5PbaJ

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 stormap-package-safety-check-2120ad12
```

Example prompt: Is it safe to install the npm package lodash@4.17.15? Check for vulnerabilities, malicious reports, typosquats, and anything sketchy about it.

## When to prefer this

Use this endpoint when an agent or developer needs a comprehensive, single-call safety assessment of a specific package before installation — combining vulnerability data, malicious-package intelligence, typosquat detection, and registry metadata in one verdict. Prefer over raw npm audit or PyPI APIs when you need an opinionated, human-readable verdict rather than raw data, or when you need cross-signal analysis (e.g. combining CVEs with install script analysis and typosquat checks).

## Known failure modes

- Package name not found on registry — returns not-found verdict
- Invalid version specifier format — may return error or fall back to latest
- Ambiguous ecosystem — defaults to npm if ecosystem not specified for Python-style names
- Rate limiting or payment failure — 402 response requiring x402 payment
- Upstream registry API unavailability — may return partial or cached data

## How this service works

Use when an npm or PyPI package is about to be installed, especially a name an LLM suggested. Returns ok_to_install, caution, dont_install or does_not_exist with reasons: malicious-package reports, known vulnerabilities for the version with the fixed version, deprecated or yanked, age, install scripts, downloads and typosquat look-alikes. From OSV.dev, deps.dev, npm and PyPI. ecosystem=pypi for Python. Errors: 400 bad_input, 502 registry unreachable. Failed calls are not charged.

## Output

A structured safety verdict (e.g. safe / caution / unsafe) with supporting reasons including: whether the package exists on the registry, any malicious-package reports, known CVEs for the requested version with recommended fix versions, deprecation or yanked status, package age, presence of suspicious install scripts, download volume, and a list of typosquat look-alike package names.

## 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": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Package name, optionally with a version: \"lodash\", \"lodash@4.17.15\", \"@scope/pkg\", \"requests==2.31.0\"."
      },
      "version": {
       "type": "string",
       "description": "Optional version to check (default: latest)."
      },
      "ecosystem": {
       "enum": [
        "npm",
        "pypi"
       ],
       "type": "string",
       "description": "npm (default) or pypi."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "package": {
       "type": "string"
      },
      "reasons": {
       "type": "array"
      },
      "summary": {
       "type": "string"
      },
      "verdict": {
       "type": "string"
      },
      "ecosystem": {
       "type": "string"
      },
      "similar_to": {},
      "latest_version": {
       "type": "string"
      },
      "first_published": {
       "type": "string"
      },
      "install_scripts": {
       "type": "array"
      },
      "version_checked": {
       "type": "string"
      },
      "vulnerabilities": {
       "type": "array"
      },
      "weekly_downloads": {
       "type": [
        "integer",
        "number"
       ]
      },
      "malicious_reports": {
       "type": "array"
      },
      "vulnerability_count": {
       "type": [
        "integer",
        "number"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stormap-package-safety-check-2120ad12/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stormap.ai](https://www.zero.xyz/host/stormap.ai/llms.txt)
