You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=react&page=22&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 13055 results for "react"(637ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
34import { AnthropicStreamEvent } from "../../shared/types.ts";
326};
327328const handleKeyPress = (e: React.KeyboardEvent) => {
329if (e.key === "Enter" && !e.shiftKey) {
330e.preventDefault();
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4import { Message } from "./App.tsx";
5