You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=react&page=16&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 17389 results for "react"(3135ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState } from "https://esm.sh/react@18.2.0";
3import { LocationSearchProps } from "./types";
4import { Location } from "../../shared/types";
91id="zip-search"
92value={zipCode}
93onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
94setZipCode(e.target.value)
95}
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useRef, useEffect } from "https://esm.sh/react@18.2.0";
3import { Product, ProductCardProps, ProductCard } from "./ProductCard";
4