# DeAI NPM Package Lookup (left-pad)

> DeAI NPM Package Lookup (left-pad) is a paid API for AI agents from research.zaiba.cloud, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Returns deterministic, byte-exact JSON metadata for the npm package 'left-pad' via a paid artifact gateway endpoint.

## Facts

- Endpoint: GET https://research.zaiba.cloud/api/v1/package/npm/left-pad?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deai-npm-package-lookup-left-pad-8d45d5d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YphZ_CI-Nl-xyzoCJLLnZ

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 deai-npm-package-lookup-left-pad-8d45d5d3
```

Example prompt: Can you look up the npm package metadata for left-pad and tell me its current published version and description?

## When to prefer this

Prefer this endpoint when you need a deterministic, byte-exact npm registry JSON for the left-pad package without hitting npm's public API directly (which may have bot walls or rate limits). Ideal for dependency auditing, reproducible builds, or caching pipelines where exact artifact fidelity matters and a $0.01 per-call cost is acceptable.

## Known failure modes

- Package not found (404) if the package name is incorrect or unpublished
- Payment failure if the $0.01 USDC x402 payment is not properly attached
- Rate limiting or authentication errors if the gateway rejects the request
- Stale or cached data if the registry artifact has not been refreshed recently

## How this service works

DeAI artifact gateway: reuse (package_check). Deterministic JSON with byte-exact quotes for $0.0100; no crawl, no bot walls.

## Output

A deterministic, byte-exact JSON object containing npm registry metadata for the 'left-pad' package, including version history, description, author, license, and distribution details — served without crawling or bot-wall interference.

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "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/deai-npm-package-lookup-left-pad-8d45d5d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from research.zaiba.cloud](https://www.zero.xyz/host/research.zaiba.cloud/llms.txt)
