tools/text/text diff
// textnew

text diff

line-level diff between two texts

— paste two texts to compare // client-only
original
modified
// diff appears here
curl -sX POST 'https://api.whittly.dev/v1/text/diff' \
  -H 'Authorization: Bearer $WHITTLY_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"a":"hello\nworld","b":"hello\nearth"}'
const res = await fetch('https://api.whittly.dev/v1/text/diff', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + apiKey,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ a: "hello\nworld", b: "hello\nearth" }),
});
const data = await res.json();
const { data } = await axios.post(
  'https://api.whittly.dev/v1/text/diff',
  { a: "hello\nworld", b: "hello\nearth" },
  { headers: { Authorization: 'Bearer ' + apiKey } }
);
// pro3-way merge viewpro·history syncproupgrade →
// history
Pro Cloud Sync — upgrade
no operations yet