# Sindri Text Diff (Myers Algorithm)

> Sindri Text Diff (Myers Algorithm) is a paid API for AI agents from ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Computes a line-based diff between two text strings using the Myers diff algorithm, returning a list of equal, add, and remove operations.

## Facts

- Endpoint: POST https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/diffText?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-text-diff-myers-algorithm-82f3bbcd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R8ES8i4VQt3yFtC-WXFGH

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 sindri-text-diff-myers-algorithm-82f3bbcd -d '<json body>'
```

Example prompt: Can you diff these two versions of my README and show me which lines were added, removed, or stayed the same? Here's the original: 'Hello world
This is version 1' and the updated version: 'Hello world
This is version 2
New line added'.

## When to prefer this

Choose this endpoint when you need a structured, programmatic line-based diff between two strings and want a list of typed operations (equal/add/remove) rather than a visual unified diff. Ideal for agents that need to programmatically detect changes, build revision tracking, validate edits, or summarize what changed between two text versions. Best for texts under 50,000 characters and 2,000 lines.

## Known failure modes

- Input exceeds 50,000 characters or 2,000 lines — request rejected
- Missing textA or textB fields — malformed request error
- Very large identical texts may return a single 'equal' operation with no changes
- Network timeout on AWS Lambda cold start
- Payment failure via x402 protocol blocks the request

## How this service works

Line-based diff between two strings using the Myers diff algorithm (via the diff/jsdiff library), returning a list of equal/add/remove operations.

## Output

An array of diff operations where each operation has a type ('equal', 'add', or 'remove') and the corresponding text content, representing the line-by-line differences between textA and textB as computed by the Myers diff algorithm.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "textA": {
   "type": "string",
   "description": "Original text. Max 50,000 characters and 2,000 lines."
  },
  "textB": {
   "type": "string",
   "description": "Modified text. Max 50,000 characters and 2,000 lines."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sindri-text-diff-myers-algorithm-82f3bbcd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws](https://www.zero.xyz/host/ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/llms.txt)
