Skip to content
Fourohtwo

Exact structured diff

touchstone.locomot.io/diff

Exact structured diff. mode=text -> unified diff + line counts; mode=json -> an RFC 6902 JSON Patch (RFC 6901 pointers) that round-trips a->b; mode=words -> inline word-level opcodes. For large inputs use POST. Every answer signed. Free sample, no payment required: GET /play/diff

BaseUnchecked
GEThttps://touchstone.locomot.io/diff

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://touchstone.locomot.io/diff?a=%7B%22v%22%3A1%7D&b=%7B%22v%22%3A2%7D&mode=json");
console.log(await res.json());

Example input

{
  "a": "{\"v\":1}",
  "b": "{\"v\":2}",
  "mode": "json"
}