You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7BsvgDataUrl%7D?q=fetch&page=16&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=fetch
Returns an array of strings in format "username" or "username/projectName"
Found 14090 results for "fetch"(2005ms)
153const argumentInputRefs = useRef<Map<string, HTMLElement>>(new Map());
154155// Initialize MCP clients and fetch prompts/tools
156useEffect(() => {
157const initializeClients = async () => {
179}
180181// Fetch prompts and tools
182const [prompts, tools] = await Promise.all([
183client.listPrompts().catch(() => {
184console.warn(`Failed to fetch prompts for ${server.name}`);
185return [];
186}),
187client.listTools().catch(() => {
188console.warn(`Failed to fetch tools for ${server.name}`);
189return [];
190}),
682683Â Â try {Â
684Â Â Â const res = await fetch(\`\${API_URL}?action=chat\`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ messages: conversationHistory.slice(0, -1), tasks, projects }) });Â
685Â Â Â const data = await res.json();Â
686Â Â Â if (!res.ok || data.error) throw new Error(data.error || 'Server error');Â
786Â Â toggleLoading(btn, true);Â
787Â Â try {Â
788Â Â Â const res = await fetch(\`\${API_URL}?action=synthesizeProject\`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ goal }) });Â
789Â Â Â const data = await res.json();Â
790Â Â Â if (!res.ok || data.error) throw new Error(data.error || "Server error");Â
804Â Â toggleLoading(btn, true);Â
805Â Â try {Â
806Â Â Â const res = await fetch(\`\${API_URL}?action=dailyRebalance\`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ tasks: todayTasks }) });Â
807Â Â Â const data = await res.json();Â
808Â Â Â if (!res.ok || data.error) throw new Error(data.error || "Server error");Â