80trust / 100
Text Replace
by Tanod utilpeek in Weather & location
x402 APIPassing, checked 3 h ago
utilpeek (Tanod) find and replace: literal or RE2 regex (linear time).
POST https://tanod.dev/v1/text/replace
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 277 ms typical, 354 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/text/replace" \
-H "content-type: application/json" \
-d '{"find":"(?i)order (\\d+)","mode":"regex","replace":"#\\1","text":"Order 123 shipped; order 456 pending"}'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%2Ftext%2Freplace
const res = await pay("https://tanod.dev/v1/text/replace", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"find":"(?i)order (\\d+)","mode":"regex","replace":"#\\1","text":"Order 123 shipped; order 456 pending"}),
});
console.log(await res.json());Example input
{
"find": "(?i)order (\\d+)",
"mode": "regex",
"replace": "#\\1",
"text": "Order 123 shipped; order 456 pending"
}Example output
{
"engine": "RE2 (google-re2 1.1.20251105)",
"limit_reached": false,
"mode": "regex",
"replacements": 2,
"text": "#123 shipped; #456 pending"
}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 | 274 ms | $0.001 |
| 7 h ago | Passed | 402 | 354 ms | $0.001 |
| 11 h ago | Passed | 402 | 271 ms | $0.001 |
| 14 h ago | Passed | 402 | 319 ms | $0.001 |
| 18 h ago | Passed | 402 | 277 ms | $0.001 |
| 21 h ago | Passed | 402 | 1.6 s | $0.001 |
| 25 h ago | Passed | 402 | 270 ms | $0.001 |
| 30 h ago | Passed | 402 | 278 ms | $0.001 |