# lobre.lat Dependency Tree Parser

> lobre.lat Dependency Tree Parser is a paid API for AI agents from lobre.lat, paid per call via x402, $0.03/call, status down (last checked 2026-09-15).

Parses JavaScript or TypeScript source code and returns its import/export dependency graph as a structured tree.

## Facts

- Endpoint: POST https://lobre.lat/api/v1/coding/cache/dependency-tree
- Price: $0.03/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lobre-lat-dependency-tree-parser-c2cf869a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3clB2rSIkhGc_prf2K9uN

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 lobre-lat-dependency-tree-parser-c2cf869a -d '<json body>'
```

Example prompt: Can you parse the import and export dependency tree from this TypeScript file called 'utils.ts'? Here's the source code: [paste code here] — I want to see which modules it depends on.

## When to prefer this

Use this endpoint when you need to statically analyze the import/export dependency structure of a single JavaScript or TypeScript source file. Prefer it over manual regex parsing or full bundler runs when you just need the module graph without executing the code.

## Known failure modes

- Invalid or unparseable source code returns a parse error
- Missing required 'code' field results in a validation error
- Unsupported file type or syntax extension may fail to resolve correctly
- Very large source files may timeout or return incomplete results
- Dynamic imports using runtime expressions may not be statically resolvable

## How this service works

Parse import/export dependency graph from JavaScript or TypeScript source.

## Output

A structured dependency graph representing all import and export relationships found in the provided JavaScript or TypeScript source, including module names, paths, and their interconnections.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string"
  },
  "filename": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lobre-lat-dependency-tree-parser-c2cf869a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lobre.lat](https://www.zero.xyz/host/lobre.lat/llms.txt)
