You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=react&page=19&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 17492 results for "react"(1400ms)
949const hasInteractiveElements = /onclick|addEventListener/i.test(html);
950const hasAjax = /fetch\(|xhr|ajax/i.test(html);
951const hasPopularLibs = /jquery|react|vue|angular/i.test(html);
952953// High complexity - redirect to original
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import type { GameRound, User, Vote } from "../../shared/types.ts";
4