Skip to content
Fourohtwo

Explains a code snippet (max 20,000 characters)

api.sitecheck-api.workers.dev/api/code/explain

Explains a code snippet (max 20,000 characters): detected language, a summary, a step-by-step explanation, the functions and classes it defines, and possible bugs and security issues with line numbers. Line numbers outside the snippet are dropped. Model-written: a finding is a lead to check, not a verified defect.

BaseSolanaArcPolygonArbitrumWorld Chain+1Unchecked
POSThttps://api.sitecheck-api.workers.dev/api/code/explain

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.sitecheck-api.workers.dev/api/code/explain", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"code":"def add(a, b):\n    return a - b\n"}),
});
console.log(await res.json());

Example input

{
  "code": "def add(a, b):\n    return a - b\n"
}

More from SiteCheck