You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=function&page=2&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=function
Returns an array of strings in format "username" or "username/projectName"
Found 30159 results for "function"(1030ms)
1// Convert image URL to base64
2async function getImageBase64(url: string): Promise<string> {
3const res = await fetch(url);
4const buffer = await res.arrayBuffer();
151};
152153export default async function (req: Request): Promise<Response> {
154try {
155// Test data - modify this directly in the code to test different scenarios
1export default async function(req: Request): Promise<Response> {
2// fetch tex.web and extract all the lines containing primitive descriptions
3// e.g. primitive("lineskip",assign_glue,glue_base+line_skip_code);@/