You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=linkedom&page=1&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=linkedom
Returns an array of strings in format "username" or "username/projectName"
Found 27 results for "linkedom"(1070ms)
5import * as Plot from "npm:@observablehq/plot@0.6.14";
6import { d3 } from "npm:d3@7";
7import { parseHTML } from "npm:linkedom@0.15";
89const style = `
89// Create a mock document object to prevent undefined errors
10const { document } = await import("https://cdn.jsdelivr.net/npm/linkedom@0.16.1/+esm").then((m) =>
11m.parseHTML(`<html><body></body></html>`)
12);