You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg%20%22Image%20title%22?q=react&page=12&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 9284 results for "react"(1013ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import ReactDOMServer from "https://esm.sh/react-dom@18.2.0/server";
3import React from "https://esm.sh/react@18.2.0";
45function DesignPartnersSlide() {
88// HTTP handler function for Val Town
89export default async function(req: Request): Promise<Response> {
90const html = ReactDOMServer.renderToString(<DesignPartnersSlide />);
9192return new Response(
1/** @jsxImportSource npm:react@18.2.0 */
2import type { ReactNode } from "npm:react@18.2.0";
34export function Layout({ children }: { children: ReactNode }) {
5return (
6<html lang="en">