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/$%7Bart_info.art.src%7D?q=fetch&page=1133&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 13267 results for "fetch"(4151ms)

blackRodentmain.tsx1 match

@stevekrouse•Updated 1 year ago
49app.get("/projects/Time_Blindness_Loud_Calendar_via_iOS_shortcuts", Time_Blindness_Loud_Calendar_via_iOS_shortcuts);
50
51export default app.fetch;

purpleHornetmain.tsx1 match

@stevekrouse•Updated 1 year ago
56const app = new Hono();
57app.get("/", Bringing_My_OCD_Online);
58export default app.fetch;

azureBeetlemain.tsx1 match

@stevekrouse•Updated 1 year ago
55const app = new Hono();
56app.get("/", homepage);
57export default app.fetch;

valTownAnalyticsmain.tsx2 matches

@maxm•Updated 1 year ago
34 }
35 // Do not await the response
36 fetch(`${httpEndpoint}/event?name=import-init&val=${runningValInfo.author}/${runningValInfo.name}`);
37 } catch (e) {
38 console.error(`Error initializing analytics: ${e}`);
45 const runningValInfo = getRunningValInfo();
46 return async (req: Request): Promise<Response> => {
47 fetch(`${httpEndpoint}/event?name=request&val=${runningValInfo.author}/${runningValInfo.name}&url=${req.url}`);
48 return handler(req);
49 };
3I wanted to log this data so I can analyse which days do I game the most ? which periods do I log the most hours in my confort game (Dead By Daylight) ? And so on. I think the data viz possibilities are super interesting, just like when Valve releases the "Steam in review" at the end of the year
4
5This val fetches your recent playtime history from valve's API and stores it in a database every day !
6
7The project uses multiple vals to work:

weatherGPTmain.tsx1 match

@developersdigest•Updated 1 year ago
4let location = "toronto on";
5let lang = "en";
6const weather = await fetch(
7 `https://wttr.in/${location}?lang=${lang}&format=j1`,
8).then(r => r.json());

blob_adminmain.tsx2 matches

@bjtitus•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
133});
134
135export default modifyFetchHandler(passwordAuth(app.fetch));

honoJsxAlpineReactivemain.tsx1 match

@yawnxyz•Updated 1 year ago
30
31
32export default app.fetch;

Appmain.tsx1 match

@xyc•Updated 1 year ago
7import { ObjectInspector } from "https://esm.sh/react-inspector";
8
9async function fetchGgufMetadata(url: string) {
10 const { metadata, tensorInfos } = await gguf(url);
11 return { metadata, tensorInfos };

ageGlifREADME.md1 match

@fab1an•Updated 1 year ago
1a super simple JSON setter/getter using valtown blobs. use GET to fetch it, use POST to set it. expects the inbound data to be JSON for simplicity. use `?key=foobar` to specify different storage locations.
2
3set:

GithubPRFetcher

@andybak•Updated 9 hours ago

proxiedfetch1 file match

@jayden•Updated 1 day ago