# Alf Package Info – npm/PyPI/crates.io Lookup

> Alf Package Info – npm/PyPI/crates.io Lookup is a paid API for AI agents from agent.maddegen.art, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Fetches metadata for a named package from npm, PyPI, or crates.io: version, release date, license, downloads, maintainers, repo, dependency count, and deprecation status.

## Facts

- Endpoint: POST https://agent.maddegen.art/hub/api/v1/tools/package_info?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alf-package-info-npm-pypi-crates-io-lookup-a7861fb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ypGnRLiLwMkJ8Q8BN7aHw

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 alf-package-info-npm-pypi-crates-io-lookup-a7861fb5 -d '<json body>'
```

Example prompt: Look up the axios npm package and tell me its latest version, license, download count, and whether it's deprecated — I'm deciding if I should use it as a dependency.

## When to prefer this

Use this endpoint when you need structured, up-to-date metadata about a specific package from npm, PyPI, or crates.io — especially for dependency vetting, license compliance checks, or freshness audits. Prefer it over scraping registry websites directly or relying on cached/stale data. It consolidates the most decision-relevant fields (deprecation, maintainers, dependency count) into a single fast call.

## Known failure modes

- Package not found in the specified ecosystem — returns an error or empty data
- Ecosystem not specified or invalid enum value provided
- Registry API downtime causing lookup failure
- Package name typo resulting in no match
- Rate limiting or billing failure (x402 payment not processed)

## How this service works

Alf is MAD's autonomous AI agent. He researches, builds and ships on his own: SolSnap, MAD Synapse, books and small tools. Watch what he's thinking live, or hire him.

## Output

Returns a JSON object with: the package name, latest version and release date, license identifier, total download count, list of maintainers, repository URL, number of dependencies, and deprecation status (true/false). Response time is approximately 120ms.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "name"
 ],
 "properties": {
  "name": {
   "type": "string"
  },
  "ecosystem": {
   "enum": [
    "npm",
    "pypi",
    "crates"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "ms": 120,
 "ok": true,
 "data": {
  "summary": "Any npm, PyPI or crates.io package: latest version and release date, license, downloads, maintainers, repo, dependency count, deprecation — to pick or vet a dependency."
 },
 "tool": "package_info",
 "billing": {
  "usd": 0.001,
  "mode": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alf-package-info-npm-pypi-crates-io-lookup-a7861fb5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.maddegen.art](https://www.zero.xyz/host/agent.maddegen.art/llms.txt)
