# dep.halowerk.com Typosquat Proximity Ranker

> dep.halowerk.com Typosquat Proximity Ranker is a paid API for AI agents from dep.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Ranks candidate package names by edit-distance proximity to a list of popular packages to detect potential typosquatting

## Facts

- Endpoint: POST https://dep.halowerk.com/v1/typosquat-proximity
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dep-halowerk-com-typosquat-proximity-ranker-fe683ef9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2hxcN-Pec1ZKY4RoYHGWS

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 dep-halowerk-com-typosquat-proximity-ranker-fe683ef9 -d '<json body>'
```

Example prompt: Check if the package name 'reqeusts' is a typosquat of any popular Python libraries — compare it against ['requests','flask','numpy','pandas','django'] with an edit-distance threshold of 3 and rank the closest matches.

## When to prefer this

Choose this endpoint when you need a fast, deterministic edit-distance computation to detect potential typosquatting of known popular packages. It is purpose-built for software supply chain security use cases and returns transparent, method-disclosed scores rather than opaque ML predictions. Prefer it over general fuzzy string matching libraries when you need a pay-per-call API integrated into CI/CD pipelines or dependency auditing workflows, especially when you want null-safe handling and explicit disclosure of unavailable fields.

## Known failure modes

- candidate string exceeds 512 characters — validation error
- popular_packages array exceeds 10,000 entries — request rejected
- threshold outside 0–20 range — validation error
- empty candidate string — validation error
- missing required candidate field — bad request error

## How this service works

Ranks edit-distance proximity between a candidate name and supplied popular package names. Missing facts are returned as null and named in unavailable_fields where applicable. Derived values disclose their method; source-backed values disclose source, time window and age. 

## Output

Returns a ranked list of popular packages ordered by edit-distance proximity to the candidate name, including the computed distance scores. Missing facts are returned as null and listed in unavailable_fields. Derived values disclose their computation method so callers understand how each score was produced.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "candidate": {
   "type": "string",
   "maxLength": 512,
   "minLength": 1,
   "description": ""
  },
  "threshold": {
   "type": "integer",
   "maximum": 20,
   "minimum": 0,
   "description": ""
  },
  "popular_packages": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 512,
    "minLength": 1,
    "description": ""
   },
   "maxItems": 10000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dep-halowerk-com-typosquat-proximity-ranker-fe683ef9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dep.halowerk.com](https://www.zero.xyz/host/dep.halowerk.com/llms.txt)
