# SALT19 NPM Package Facts

> SALT19 NPM Package Facts is a paid API for AI agents from api.salt19.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Retrieves key metadata facts about an NPM package — including license, version, and deprecation status — for a given package name and optional version.

## Facts

- Endpoint: POST https://api.salt19.com/v1/npm-package-facts
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/salt19-npm-package-facts-5422104d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2OBiWcIozqS_j_4KaiuZ8

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 salt19-npm-package-facts-5422104d -d '<json body>'
```

Example prompt: Can you look up the npm package facts for 'hono' version 4.13.3 — specifically its license and whether it's deprecated?

## When to prefer this

Choose this endpoint when an agent needs quick, structured facts about a specific npm package — particularly license type and deprecation status — without scraping the npm website. Useful for automated dependency audits, license compliance pipelines, or enriching package manifests. Prefer over raw npm registry API calls when a pay-per-use, agent-friendly endpoint with a clean response schema is preferred.

## Known failure modes

- Package name not found on npm registry — returns error or empty result
- Invalid or malformed package name (too long or empty) — rejected by input schema validation
- Requested version does not exist for the package — may return error or null version
- Network or upstream npm registry unavailability — timeout or 5xx error
- Payment failure via x402 protocol — request not processed

## How this service works

SALT19 is an independent applied AI systems lab behind EvoMind governed cognition, the MCP-native Agent Utility Grid, the ARCS research community, AeroClear UAS flight intelligence, and practical software for real-world work.

## Output

Returns a JSON object containing the package name, resolved version string, SPDX license identifier (e.g. 'MIT'), and a boolean deprecated flag indicating whether the package has been marked as deprecated on the npm registry.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "package": {
   "type": "string",
   "maxLength": 214,
   "minLength": 1
  },
  "version": {
   "type": "string",
   "maxLength": 64
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "license": "MIT",
  "package": "hono",
  "version": "4.13.3",
  "deprecated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/salt19-npm-package-facts-5422104d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.salt19.com](https://www.zero.xyz/host/api.salt19.com/llms.txt)
