72trust / 100

Bidi Check

by text.halowerk.com in AI models & inference

x402 APIPassing, checked 4 h ago

Check text, code, file names or identifiers for bidirectional control characters (Trojan Source, RLO file-name spoofing), unbalanced embeddings/isolates and paragraph direction. Lists all bidi controls (ALM, LRM, RLM, LRE, RLE, PDF, LRO, RLO, LRI, RLI, FSI, PDI) with position and name, tracks the embedding/isolate stack per paragraph as in UAX #9 (X1–X8, paragraph separators of class B) and reports unterminated or stray controls.

POST
https://text.halowerk.com/v1/bidi-check
Price
$0.002
per call in USDC
Uptime
96.3%
last 30 days
Response time
41 ms
172 ms slowest 5%
Last check
Passed
4 h ago, next any minute now

Run a free test callHow to call it

This listing's own text contains instructions aimed at AI agents (see the security scan below). We withhold that text from agents and never recommend this service.

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://text.halowerk.com/v1/bidi-check

Each call costs $0.002 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

The listing's own example input is withheld: it contains instructions aimed at AI agents. Built from the input schema. Replace the values with your own.

POST https://text.halowerk.com/v1/bidi-check
content-type: application/json

{
  "text": "example"
}

Parameters

ParameterTypeRequiredDescription
contextstringNoWhere the text is used; code, file names and identifiers are graded more strictly. One of: text, code, filename, identifier. Default: "text".
return_sanitizedbooleanNoAlso return the text with all bidi controls removed. Default: false.
textstringYesText, source code, file name or identifier.

Example response

The provider's example. We can't check it without paying.

Example response, 46 lines
{
  "limitations": [
    "The full UAX #9 reordering is not computed; the displayed form is only approximated for a single override in a file name.",
    "Whether a control sits inside a comment or string literal is not parsed."
  ],
  "result": {
    "contains_rtl": false,
    "context": "filename",
    "control_count": 1,
    "controls": [
      {
        "abbreviation": "RLO",
        "code_point": "U+202E",
        "name": "RIGHT-TO-LEFT OVERRIDE",
        "offset": 8,
        "paragraph": 0
      }
    ],
    "displayed_extension_approx": "pdf",
    "displayed_name_approx": "rechnungexe.pdf",
    "paragraphs": [
      {
        "base_direction": "ltr",
        "has_rtl_characters": false,
        "implicitly_closed_by_pdi": [],
        "index": 0,
        "offset": 0,
        "stray": [],
        "unterminated": [
          {
            "abbreviation": "RLO",
            "kind": "override",
            "offset": 8
          }
        ]
      }
    ],
    "real_extension": "exe",
    "real_name": "rechnungfdp.exe",
    "risk": "high",
    "stray_total": 0,
    "unterminated_total": 1
  },
  "service": "bidi-check",
  "status": "success"
}

Call it from code

The curl command shows the payment challenge.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://text.halowerk.com/v1/bidi-check' \
  -H 'content-type: application/json' \
  --data-raw '{"text":"example"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://text.halowerk.com/v1/bidi-check' \
  -H 'content-type: application/json' \
  --data-raw '{"text":"example"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode

We don't show code that pays this service: its listing contains instructions aimed at AI agents.

Security scan

1 finding

  • Invisible Unicode characters in example_input
    {"context":"filename","text":"rechnung[U+202E]fdp.exe"}

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed40239 ms$0.002
15 h agoPassed40243 ms$0.002
25 h agoPassed402135 ms$0.002
35 h agoPassed40243 ms$0.002
45 h agoPassed40240 ms$0.002
Show 10 older checks
2 days agoPassed402218 ms$0.002
4 days agoTimed out---
6 days agoPassed40241 ms$0.002
6 days agoPassed402137 ms$0.002
7 days agoPassed402172 ms$0.002
7 days agoPassed402114 ms$0.002
7 days agoPassed40239 ms$0.002
8 days agoPassed40241 ms$0.002
8 days agoPassed40241 ms$0.002
8 days agoPassed402118 ms$0.002