You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=react&page=24&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 16962 results for "react"(2549ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
3import { MCPClient } from "../utils/MCPClient.ts";
4
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useRef } from "https://esm.sh/react@18.2.0";
3import type { Recipe, Ingredient, ParseRequest } from "../../shared/types.ts";
4145};
146147const handleFileUpload = (event: React.ChangeEvent<HTMLInputElement>) => {
148const file = event.target.files?.[0];
149if (!file) return;
169};
170171const handleSubmit = async (e: React.FormEvent) => {
172e.preventDefault();
173