You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=api&page=20&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=api
Returns an array of strings in format "username" or "username/projectName"
Found 19573 results for "api"(6142ms)
11}
1213// Inicializar cliente de Airtable con credenciales (API key y base definidas en Deno.env):contentReference[oaicite:3]{index=3}
14const airtable = new Airtable({
15apiKey: Deno.env.get("AIRTABLE_API_KEY") || "",
16baseId: Deno.env.get("AIRTABLE_BASE_ID") || "",
17tableName: Deno.env.get("AIRTABLE_TABLE_NAME") || "",
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getCreditAdditions } from "./api/credit-additions.ts";
3import { handleApiRequest } from "./api/index.ts";
4import { getInferenceCalls } from "./api/inference-calls.ts";
5import {
6getInferenceCallsForRequest,
8getRequestById,
9getRequests,
10} from "./api/requests.ts";
11import { getUserSummary } from "./api/user-summary.ts";
12import { getValSummary } from "./api/val-summary.ts";
13import { basicAuthMiddleware } from "./auth.ts";
14import { renderCreditAdditions } from "./views/credit-additions.ts";
31});
3233// API routes
34app.all("/api/*", async (c) => {
35return handleApiRequest(c.req.raw);
36});
37