You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=api&page=15&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 18783 results for "api"(2764ms)
33try {
34const anthropic = new Anthropic({
35apiKey: Deno.env.get("ANTHROPIC_API_KEY"),
36});
37103104} catch (error) {
105console.error(`Error calling Claude API for ${email}:`, error);
106return new Response(
107JSON.stringify({
20- Compiler options are relaxed (`noImplicitAny: false`, `strict: false`)
21- Val Town types are included from `https://www.val.town/types/valtown.d.ts`
22- Experimental Node.js globals, Temporal API, and worker options are enabled
2324### Val Town Development Patterns