You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7BsvgDataUrl%7D?q=react&page=19&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=react
Returns an array of strings in format "username" or "username/projectName"
Found 17056 results for "react"(1574ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import type { ChangeEvent } from "https://esm.sh/react@18.2.0";
3import type { ValFormProps } from "../types.ts";
4
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
3import EnhancedCommandPalette from "./EnhancedCommandPalette.tsx";
4import MessageComponent from "./Message.tsx";
245};
246247const handleKeyDown = (e: React.KeyboardEvent) => {
248// Don't handle keys when command palette is managing them
249if (showCommandPalette) {