# pkgsafe.adrwent.fyi

> pkgsafe.adrwent.fyi is a paid API for AI agents from pkgsafe.adrwent.fyi, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Checks npm or PyPI packages for safety signals and returns a verdict (ok, caution, avoid, unknown) with evidence including malware flags, maintainer changes, install scripts, and vulnerability advisories.

## Facts

- Endpoint: GET https://pkgsafe.adrwent.fyi/check?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pkgsafe-adrwent-fyi-c49abfb0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hDXTGPi3VmjAU6nqDz_X_

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 pkgsafe-adrwent-fyi-c49abfb0
```

Example prompt: Before I install it, can you check if the npm package 'lodash' is safe — look for any malware flags, maintainer changes, or suspicious install scripts?

## When to prefer this

Use this endpoint when an agent needs to vet an npm or PyPI package before installation or dependency updates, especially in automated CI/CD pipelines, dependency review workflows, or when a user asks whether a specific open-source library is safe. Prefer this over generic vulnerability scanners when you need a fast, per-package signal that includes supply-chain indicators like maintainer changes, install script additions, and publisher shifts — not just CVE lookups.

## Known failure modes

- Unknown package name returns verdict 'unknown' with no signals
- Unsupported ecosystem (not npm or pypi) results in validation error
- Package version not found may fall back to latest or return unknown
- Network or registry lookup failures may return unknown verdict
- Very new or obscure packages may have limited signal data

## How this service works

Call before installing or updating an npm or PyPI dependency. Returns a verdict (ok, caution, avoid, unknown) plus evidence signals: install script added, maintainer or publisher change, very recent publish, build provenance dropped, known malware and vulnerability advisories. A clean result is not a guarantee of safety.

## Output

Returns a safety verdict (ok, caution, avoid, or unknown) for the specified package, along with evidence signals such as: whether an install script was added, whether the maintainer or publisher changed, how recently the package was published, whether build provenance was dropped, and any known malware or vulnerability advisories. A clean verdict does not guarantee safety.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ecosystem",
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Exact package name, e.g. chalk or @types/node"
      },
      "version": {
       "type": "string",
       "description": "Optional exact version; defaults to the latest"
      },
      "ecosystem": {
       "enum": [
        "npm",
        "pypi"
       ],
       "type": "string",
       "description": "Package registry"
      }
     }
    }
   },
   "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/pkgsafe-adrwent-fyi-c49abfb0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pkgsafe.adrwent.fyi](https://www.zero.xyz/host/pkgsafe.adrwent.fyi/llms.txt)
