Val Town Code SearchReturn to Val Town

API Access

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)

fetchJSON2 file matches

@val•Updated 1 year ago

handleFetchTextResponse2 file matches

@devdoshi•Updated 1 year ago

proxyFetch52 file matches

@alp•Updated 1 year ago

fetchFigmaFile2 file matches

@rodrigotello•Updated 1 year ago

discordFetch1 file match

@vtdocs•Updated 1 year ago

fetchJSON2 file matches

@mgruel•Updated 1 year ago

fetchTimeline1 file match

@dpetrouk•Updated 1 year ago

fetchJSON1 file match

@hanu•Updated 1 year ago

fetchTwitterUser2 file matches

@andreterron•Updated 1 year ago

proxyFetch12 file matches

@alp•Updated 1 year ago

ChatEnhancedCommandPalette.tsx4 matches

@c15r•Updated 22 mins ago
153 const argumentInputRefs = useRef<Map<string, HTMLElement>>(new Map());
154
155 // Initialize MCP clients and fetch prompts/tools
156 useEffect(() => {
157 const initializeClients = async () => {
179 }
180
181 // Fetch prompts and tools
182 const [prompts, tools] = await Promise.all([
183 client.listPrompts().catch(() => {
184 console.warn(`Failed to fetch prompts for ${server.name}`);
185 return [];
186 }),
187 client.listTools().catch(() => {
188 console.warn(`Failed to fetch tools for ${server.name}`);
189 return [];
190 }),

honeydewmain.tsx3 matches

@legal•Updated 3 hours ago
682
683    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");Â