66trust / 100

Repo Search

by Aayat AI in Developer tools

x402 APIFailing, checked 2 h ago

Search inside one public GitHub repository: every line where a word or code snippet appears, with file, line number and a link. Reads up to 120 likely source files per call (skips vendored, built and lock files) and says how many it covered; may lag GitHub by up to 12 hours; narrow big repos with path=src/ or ext=ts. Pass ?owner=honojs&repo=hono&q=getCookie. Then read a file with /repo/file.

GET https://aayatai.com/repo/search

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
50.0%
Response time
50 ms typical, 50 ms slowest 5%
Last check
2 h ago: Expected HTTP 402, got 410
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://aayatai.com/repo/search?limit=3&owner=honojs&path=src%2Fhelper%2Fcookie%2F&q=getCookie&repo=hono"
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%2Faayatai.com%2Frepo%2Fsearch
const res = await pay("https://aayatai.com/repo/search?limit=3&owner=honojs&path=src%2Fhelper%2Fcookie%2F&q=getCookie&repo=hono");
console.log(await res.json());

Example input

{
  "limit": 3,
  "owner": "honojs",
  "path": "src/helper/cookie/",
  "q": "getCookie",
  "repo": "hono"
}

Example output

{
  "candidateFiles": 2,
  "complete": true,
  "files": [
    {
      "count": 8,
      "path": "src/helper/cookie/index.test.ts"
    },
    {
      "count": 3,
      "path": "src/helper/cookie/index.ts"
    }
  ],
  "filesSearched": 2,
  "matches": [
    {
      "line": 10,
      "path": "src/helper/cookie/index.ts",
      "text": "interface GetCookie {",
      "url": "https://github.com/honojs/hono/blob/main/src/helper/cookie/index.ts#L10"
    },
    {
      "line": 27,
      "path": "src/helper/cookie/index.ts",
      "text": "export const getCookie: GetCookie = (c, key?, prefix?: CookiePrefixOptions) => {",
      "url": "https://github.com/honojs/hono/blob/main/src/helper/cookie/index.ts#L27"
    }
  ],
  "query": "getCookie",
  "ref": "main",
  "repo": "honojs/hono",
  "source": "Files from jsDelivr (mirrors public GitHub repositories); each file keeps its repository's licence.",
  "totalMatches": 11
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 41041039 ms-
7 h agoPassed40250 ms$0.005