# Elixir Static Linter & Debugger

> Elixir Static Linter & Debugger is a paid API for AI agents from api.webbersites.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Statically analyzes Elixir source code and returns bugs, warnings, and hints with line numbers — no code execution, fully deterministic.

## Facts

- Endpoint: POST https://api.webbersites.com/api/lint/elixir
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/elixir-static-linter-debugger-7dfcdb22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b3agSeJbS0elHbZempBDh

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 elixir-static-linter-debugger-7dfcdb22 -d '<json body>'
```

Example prompt: Can you lint this Elixir code for me and tell me exactly which lines have bugs, warnings, or bad patterns like mismatched do/end, = used instead of == in a condition, or string concat with +?

## When to prefer this

Choose this endpoint when you need fast, deterministic, offline-safe Elixir static analysis without any AI inference or code execution. Ideal for CI pipelines, pre-commit hooks, or agent workflows that need reliable line-level bug detection in Elixir code without runtime risk.

## Known failure modes

- Code exceeds 128 KB limit — request rejected
- Malformed JSON body — 400 error
- Non-Elixir or completely unparseable input — may return empty results or parse error
- Network timeout on very large payloads near the size limit

## How this service works

Elixir lint / debug kit: POST {code}, get the bugs back with line numbers. Deterministic static analysis — code is parsed, never executed, no AI. Catches unbalanced do/end and brackets, missing do, 'return', '+' string concat, trailing commas, field assignment, = vs == in conditions and guards, block-scoped rebinding (the classic), charlist vs String mixups, unused variables. Errors, warnings and hints with fixes. Max 128 KB.

## Output

A structured list of errors, warnings, and hints found in the submitted Elixir source code, each with a line number, description of the issue, and suggested fix. Covers unbalanced do/end and brackets, missing do, use of 'return', '+' for string concat, trailing commas, field assignment errors, = vs == in conditions/guards, block-scoped rebinding, charlist vs String mixups, and unused variables.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Elixir source to lint, max 128 KB"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "counts": {
       "type": "object"
      },
      "issues": {
       "type": "array"
      },
      "syntax": {
       "type": "object"
      },
      "verdict": {
       "type": "string"
      },
      "language": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "counts": {
   "info": 0,
   "error": 0,
   "warning": 1
  },
  "issues": [
   {
    "hint": "bind the block's result instead: result = if ... do ... else ... end",
    "line": 4,
    "rule": "scope/rebind-in-block",
    "message": "'result = ...' inside this block does not change 'result' outside it (first bound on line 2)",
    "severity": "warning"
   }
  ],
  "syntax": {
   "ok": true,
   "errors": []
  },
  "verdict": "warnings",
  "language": "elixir"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/elixir-static-linter-debugger-7dfcdb22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.webbersites.com](https://www.zero.xyz/host/api.webbersites.com/llms.txt)
