# WritersLogic Package Existence Checker

> WritersLogic Package Existence Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Checks whether up to 10 package names (optionally with version) exist in npm, PyPI, or crates.io registries, returning existence status, latest version, deprecation flags, and closest name suggestions for missing packages.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/package-exists?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-package-existence-checker-9f958e8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eBKCtnlAHbIvV9wGroXeI

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 writerslogic-package-existence-checker-9f958e8a -d '<json body>'
```

Example prompt: Before I add these dependencies to my project, can you check if 'lodash', 'axios', and 'left-pad' all actually exist in npm and whether any of them are deprecated?

## When to prefer this

Use this endpoint when an AI coding agent needs to verify that package names it is about to recommend or add to a project actually exist in a live registry — particularly to catch hallucinated dependency names. Prefer this over general web search when you need structured, authoritative data (exists flag, latest version, deprecated status) directly from npm, PyPI, or crates.io registries. Not a substitute for security auditing or license checking.

## Known failure modes

- Package name not found — returns closest registry search results (npm, crates.io) or empty (PyPI has no search API)
- crates.io rate limit — API policy allows only one request per second; limit to 5 items per call
- Invalid ecosystem enum value — request rejected
- Exceeded maxItems (10 packages) — request rejected
- Registry temporarily unavailable — network or upstream error
- Version string not recognized for a given ecosystem

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

For each queried package: a boolean indicating if it exists, its latest version if found, a deprecated or yanked flag if applicable, and (for npm and crates.io) a list of closest matching package names when the queried name is not found. No code is downloaded or executed; only registry metadata is returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 214
     },
     "version": {
      "type": "string",
      "maxLength": 64,
      "description": "Exact version (npm also accepts a dist-tag)."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 10,
   "minItems": 1,
   "description": "At most 5 items for crates.io (its API policy allows one request per second)."
  },
  "ecosystem": {
   "enum": [
    "npm",
    "pypi",
    "crates"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-package-existence-checker-9f958e8a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
