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=1154&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 13481 results for "fetch"(1328ms)

142const app = new Hono();
143app.get("/", Time_Blindness_Loud_Calendar_via_iOS_shortcuts);
144export default app.fetch;

oldBringing_My_OCD_Onlinemain.tsx1 match

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

favFarmmain.tsx1 match

@stevekrouse•Updated 1 year ago
105});
106
107export default app.fetch;

isMyWebsiteDownmain.tsx3 matches

@dvsj•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=11";
2import { fetch } from "https://esm.town/v/std/fetch";
3
4export default async (URL) => {
8 let reason: string;
9 try {
10 const res = await fetch(URL);
11 if (res.status !== 200) {
12 reason = `(status code: ${res.status})`;
14 }
15 } catch (e) {
16 reason = `couldn't fetch: ${e}`;
17 ok = false;
18 }

weatherGPTmain.tsx1 match

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

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:

GithubPRFetcher

@andybak•Updated 2 days ago

proxiedfetch1 file match

@jayden•Updated 3 days ago