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%22Optional%20title%22?q=fetch&page=1115&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 13197 results for "fetch"(2473ms)

emojiExplodermain.tsx1 match

@jdan•Updated 11 months ago
100 );
101});
102export default app.fetch;

weatherGPTmain.tsx1 match

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

blobAdminmain.tsx2 matches

@yawnxyz•Updated 11 months 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";
135});
136
137export default modifyFetchHandler(passwordAuth(app.fetch, {
138 // password: "123", // Deno.env.get("AUTH_TEST"),
139}));

hostResumemain.tsx3 matches

@iamseeley•Updated 11 months ago
4
5 // get user details
6 const userDetailsResponse = await fetch(userDetailsEndpoint, {
7 method: 'GET',
8 headers: {
12
13 if (!userDetailsResponse.ok) {
14 throw new Error(`Error fetching user details: ${userDetailsResponse.statusText}`);
15 }
16
19
20 // create resume json val
21 const createValResponse = await fetch(createValEndpoint, {
22 method: 'POST',
23 headers: {

sqliteExplorerAppmain.tsx4 matches

@adrianmg•Updated 11 months ago
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
15import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=70";
16import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
17import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
18import { Hono } from "npm:hono";
19import type { FC } from "npm:hono/jsx";
174});
175
176export const handler = app.fetch;
177export default iframeHandler(modifyFetchHandler(passwordAuth(handler)));

isMyWebsiteDownmain.tsx2 matches

@adrianmg•Updated 11 months ago
14 start = performance.now();
15 try {
16 const res = await fetch(url);
17 end = performance.now();
18 status = res.status;
25 } catch (e) {
26 end = performance.now();
27 reason = `couldn't fetch: ${e}`;
28 ok = false;
29 console.log(`Website down (${url}): ${reason} (${end - start}ms)`);

pinkBearmain.tsx1 match

@iamseeley•Updated 11 months ago
5
6export const resumeConfig = {
7 // URL to fetch the resume JSON data. This should point to your raw resume JSON.
8 // If you want to host your resume JSON somewhere I recommend a setup like this on val town (https://www.val.town/v/iamseeley/resumeDetails) or a github gist.
9 // You can test out the resume view using my resume: https://iamseeley-resumedetails.web.val.run

turquoiseSkunkmain.tsx1 match

@iamseeley•Updated 11 months ago
5
6export const resumeConfig = {
7 // URL to fetch the resume JSON data. This should point to your raw resume JSON.
8 // If you want to host your resume JSON somewhere I recommend a setup like this on val town (https://www.val.town/v/iamseeley/resumeDetails) or a github gist.
9 // You can test out the resume view using my resume: https://iamseeley-resumedetails.web.val.run

purpleKangaroomain.tsx2 matches

@willthereader•Updated 11 months ago
33
34 // Post the message so we can deal with large text data.
35 await fetch(`/post-message?threadId=${input.getAttribute("data-thread-id")}`, {
36 method: "post",
37 body: msgDiv.textContent,
147 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
148});
149export default app.fetch;

chocolateCanidmain.tsx2 matches

@willthereader•Updated 11 months ago
32 // Post the message so we can deal with large text data.
33 try {
34 await fetch(`/post-message?threadId=${input.getAttribute("data-thread-id")}`, {
35 method: "post",
36 body: msgDiv.textContent,
169});
170
171export default app.fetch;

GithubPRFetcher

@andybak•Updated 1 hour ago

proxiedfetch1 file match

@jayden•Updated 21 hours ago