{"uid":"cap_R8ES8i4VQt3yFtC-WXFGH","slug":"sindri-text-diff-myers-algorithm-82f3bbcd","name":"Sindri Text Diff (Myers Algorithm)","description":"Line-based diff between two strings using the Myers diff algorithm (via the diff/jsdiff library), returning a list of equal/add/remove operations.","url":"https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/diffText?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CvDMUwcIloHmYhiYfoFlW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a line-based diff between two text strings using the Myers diff algorithm, returning a list of equal, add, and remove operations.","exampleAgentPrompt":"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\nThis is version 1' and the updated version: 'Hello world\nThis is version 2\nNew line added'.","exampleUseCases":[{"title":"Code review change detection","prompt":"I have two versions of a config file — the original and a teammate's edit. Can you compare them line by line and tell me exactly what lines were added or removed?"},{"title":"Document revision tracking","prompt":"I wrote a first draft and then edited it. Here's draft one and draft two — can you run a line diff and show me what changed between them?"},{"title":"Automated test output comparison","prompt":"My test suite produced two output logs and I need to know what lines differ between them. Can you diff the two logs and list the equal, added, and removed lines?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:33:35.758Z","isFirstParty":false,"canonicalSlug":"sindri-text-diff-myers-algorithm-82f3bbcd"}