80trust / 100

Text Lines

by Tanod utilpeek in Weather & location

x402 APIPassing, checked 3 h ago

utilpeek (Tanod) line tools: trim, dedupe, sort, shuffle and number lines.

POST https://tanod.dev/v1/text/lines

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
268 ms typical, 283 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/lines" \
  -H "content-type: application/json" \
  -d '{"case_insensitive":true,"operations":["remove_empty","dedupe","sort"],"sort_mode":"natural","text":"banana\napple\n\nBanana\ncherry 10\ncherry 9"}'
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%2Flines
const res = await pay("https://tanod.dev/v1/text/lines", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"case_insensitive":true,"operations":["remove_empty","dedupe","sort"],"sort_mode":"natural","text":"banana\napple\n\nBanana\ncherry 10\ncherry 9"}),
});
console.log(await res.json());

Example input

{
  "case_insensitive": true,
  "operations": [
    "remove_empty",
    "dedupe",
    "sort"
  ],
  "sort_mode": "natural",
  "text": "banana\napple\n\nBanana\ncherry 10\ncherry 9"
}

Example output

{
  "lines_in": 6,
  "lines_out": 4,
  "operations": [
    "remove_empty",
    "dedupe",
    "sort"
  ],
  "removed": 2,
  "source": {
    "library": "own implementation (standard library)",
    "license": "n/a"
  },
  "text": "apple\nbanana\ncherry 9\ncherry 10",
  "unique_lines": 4
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402283 ms$0.001
7 h agoPassed402268 ms$0.001
11 h agoPassed402350 ms$0.001
14 h agoPassed402273 ms$0.001
18 h agoPassed402263 ms$0.001
21 h agoPassed402262 ms$0.001
25 h agoPassed402265 ms$0.001
30 h agoPassed402270 ms$0.001