80trust / 100
Diff
by Tanod utilpeek in Weather & location
x402 APIPassing, checked 3 h ago
utilpeek (Tanod) text diff: a unified line diff or word/character changes of two texts.
POST https://tanod.dev/v1/diff
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 278 ms typical, 834 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/diff" \
-H "content-type: application/json" \
-d '{"a":"one\ntwo\nthree\n","b":"one\n2\nthree\nfour\n","mode":"line"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fdiff
const res = await pay("https://tanod.dev/v1/diff", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"a":"one\ntwo\nthree\n","b":"one\n2\nthree\nfour\n","mode":"line"}),
});
console.log(await res.json());Example input
{
"a": "one\ntwo\nthree\n",
"b": "one\n2\nthree\nfour\n",
"mode": "line"
}Example output
{
"context": 3,
"hunks": [
{
"a_lines": 3,
"a_start": 1,
"b_lines": 4,
"b_start": 1
}
],
"identical": false,
"mode": "line",
"similarity": 0.571429,
"source": {
"library": "Python difflib",
"license": "PSF-2.0"
},
"stats": {
"a_units": 3,
"b_units": 4,
"deleted": 1,
"inserted": 2,
"unchanged": 2,
"units": "lines"
},
"truncated": false,
"unified": "--- a\n+++ b\n@@ -1,3 +1,4 @@\n one\n-two\n+2\n three\n+four\n"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 834 ms | $0.001 |
| 7 h ago | Passed | 402 | 711 ms | $0.001 |
| 11 h ago | Passed | 402 | 278 ms | $0.001 |
| 14 h ago | Passed | 402 | 281 ms | $0.001 |
| 18 h ago | Passed | 402 | 873 ms | $0.001 |
| 21 h ago | Passed | 402 | 265 ms | $0.001 |
| 25 h ago | Passed | 402 | 271 ms | $0.001 |
| 30 h ago | Passed | 402 | 272 ms | $0.001 |