You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=react&page=18&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 19119 results for "react"(3235ms)
3435If you want more interactivity, check out this
36[React starter](https://www.val.town/x/std/reactHonoStarter).
3738### ← favicon.svg
1/** @jsxImportSource https://esm.sh/react@19 */
2import React from "https://esm.sh/react@19";
3import {
4RootRoute,
7createRouter,
8RouterProvider,
9} from "https://esm.sh/@tanstack/react-router@^1.121.0?deps=react@19";
10import {
11QueryClient,
12QueryClientProvider,
13} from "https://esm.sh/@tanstack/react-query@^5.0.0?deps=react@19";
14import { App } from "./components/App.tsx";
155960// Register the router for TypeScript
61declare module "@tanstack/react-router" {
62interface Register {
63router: typeof router;