You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=api&page=25&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 19373 results for "api"(3108ms)
34const anthropic = new Anthropic({
5apiKey: Deno.env.get("ANTHROPIC_API_KEY"),
6});
7
12app.get("/frontend/**/*", c => serveFile(c.req.path, import.meta.url));
1314// Add your API routes here
15// app.get("/api/data", c => c.json({ hello: "world" }));
1617// Unwrap and rethrow Hono errors as the original error