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/image-url.jpg%20%22Image%20title%22?q=fetch&page=1&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 14433 results for "fetch"(1154ms)

testWeatherFetcher1 file match

@sjaskeprut•Updated 10 hours ago

weatherFetcher1 file match

@sjaskeprut•Updated 10 hours ago

FetchBasic2 file matches

@ther•Updated 1 week ago

GithubPRFetcher

@andybak•Updated 2 weeks ago

proxiedfetch1 file match

@jayden•Updated 2 weeks ago

fetch-socials4 file matches

@welson•Updated 2 weeks ago
fetch and archive my social posts

fetchRssForSubcurrent2 file matches

@ashryanio•Updated 2 weeks ago

fetch_template2 file matches

@gwoods22•Updated 3 weeks ago

HN-fetch-call3 file matches

@ImGqb•Updated 3 weeks ago
fetch HackerNews by API

FRAMERFetchBasic1 file match

@bresnik•Updated 3 weeks ago

TownieMessages.tsx9 matches

@valdottown•Updated 16 mins ago
256 </>
257 );
258 case "fetch":
259 return (
260 <Details
269 summary={(
270 <>
271 <div>fetch:</div>
272 <div>{args?.valPath}</div>
273 <div>{args?.urlPath || "/"}</div>
275 )}>
276 {result?.type === "success" ? (
277 <div className="fetch-result">
278 <div className="fetch-header">
279 <span className={`status-badge ${result.data.status >= 200 && result.data.status < 300 ? 'success' :
280 result.data.status >= 300 && result.data.status < 400 ? 'redirect' :
284 <span className="response-time">{result.data.responseTime}ms</span>
285 </div>
286 <div className="fetch-section">
287 <h4>Headers</h4>
288 <pre className="fetch-headers">{JSON.stringify(result.data.headers, null, 2)}</pre>
289 </div>
290 <div className="fetch-section">
291 <h4>Response Body</h4>
292 <pre className="fetch-body">
293 {typeof result.data.body === 'object'
294 ? JSON.stringify(result.data.body, null, 2)
298 </div>
299 ) : (
300 <div className="fetch-error">
301 <h4>Error</h4>
302 <pre>{result?.message || "Unknown error"}</pre>

HelloWorld2main.tsx1 match

@wolf•Updated 16 mins ago
6 });
7
8export default app.fetch;