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/$%7Bsuccess?q=fetch&page=660&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 8997 results for "fetch"(2410ms)

bumpyGreenAntelopeREADME.md2 matches

@hunty•Updated 9 months ago
1# Fetch Template
2Example template to quickly get started with a backend for Fetch in Framer.

IsNDRRMCDownmain.tsx2 matches

@rkda•Updated 9 months ago
9 let reason: string;
10 try {
11 const res = await fetch(URL, { redirect: "follow" });
12 if (res.status !== 200) {
13 reason = `(status code: ${res.status})`;
15 }
16 } catch (e) {
17 reason = `couldn't fetch: ${e}`;
18 ok = false;
19 }

bbrunmain.tsx1 match

@dglazkov•Updated 9 months ago
115 const body = await req.json() as { $key: string };
116 body.$key = $key;
117 const response = await fetch(endpointURL, {
118 method: "POST",
119 headers: {

umbrellaRemindermain.tsx2 matches

@nancypants•Updated 9 months ago
1import { email } from "https://esm.town/v/std/email?v=9";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3import { nominatimSearch } from "https://esm.town/v/stevekrouse/nominatimSearch";
4import { weatherGovGrid } from "https://esm.town/v/stevekrouse/weatherGovGrid";
14 lon,
15 });
16 let { properties: { periods } } = await fetchJSON(
17 grid.forecastHourly,
18 );

shortmain.tsx1 match

@vawogbemi•Updated 9 months ago
76});
77
78export default app.fetch;

viewOnValTownComponentmain.tsx1 match

@dthyresson•Updated 9 months ago
43app.get("/", (c) => c.html(<ValTownLink />));
44
45export default app.fetch;

featureflagsREADME.md2 matches

@samwho•Updated 9 months ago
25There are two endpoints:
26
27- `/` -- the root endpoint fetches all flags for the given user.
28- `/:id` -- fetches just one flag value, given by `:id`, for the given user.
29
30## Specifying users

animemain.tsx7 matches

@tempguy•Updated 9 months ago
10
11 const results = [];
12 const metaResponse = await fetch(
13 `https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=https://api.malsync.moe/mal/anime/${id}`,
14 );
22 const episodeIdentifier = `${data.identifier}-episode-${ep}`;
23 return [
24 fetch(`https://animetize-api.vercel.app/servers/${episodeIdentifier}`),
25 fetch(`https://animetize-api.vercel.app/watch/${episodeIdentifier}`),
26 ];
27 }
158
159 const results = [];
160 const metaResponse = await fetch(
161 `https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=https://api.malsync.moe/mal/anime/${id}`,
162 );
169 const episodeIdentifier = `${data.identifier}-episode-${ep}`;
170 return [
171 fetch(`https://animetize-api.vercel.app/servers/${episodeIdentifier}`),
172 fetch(`https://animetize-api.vercel.app/watch/${episodeIdentifier}`),
173 ];
174 }
222 );
223});
224export default app.fetch;

scarletSolemain.tsx3 matches

@tempguy•Updated 9 months ago
32 url: "https://d000d.com/e/9x3w3pu0xemy",
33 };
34 const req = await fetch("http://turnsolver.pythonanywhere.com/solve", {
35 method: "POST",
36 headers: { "Content-Type": "application/json" },
39 const tokenReq = await req.json();
40 const token = tokenReq.token;
41 const ver = await fetch(
42 `https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
43 + encodeURIComponent(`https://d0000d.com/dood?op=validate&gc_response=${token}`),
66 return c.json({ worked: true });
67});
68export default app.fetch;

redMonkeymain.tsx6 matches

@tempguy•Updated 9 months ago
1import { fetch as proxiedFetch } from "https://esm.town/v/std/fetch";
2import { customAlphabet } from "npm:nanoid";
3const nanoid = customAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 10);
8 const id = url.split("/e/")[1];
9
10 const doodDataReq = await fetch(
11 `https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
12 + encodeURIComponent(`${url}`),
19 const path = doodData.match(/\$\.get\('\/pass_md5([^']+)/)?.[1];
20 const thumbnailTrack = doodData.match(/thumbnails:\s\{\s*vtt:\s'([^']*)'/);
21 const doodPageReq = await fetch(
22 `https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
23 + encodeURIComponent(`${baseUrl}/pass_md5${path}`),
70}
71export async function streamwish(ctx) {
72 const _embed = await fetch(ctx.url);
73 const embed = await _embed.text();
74 console.log(embed);
134 // if (Number(_) > 100000) throw new Error("limit reached");
135 // await blob.set("streamtapeLimit", `${Number(_) + 1}`);
136 const _embed = await proxiedFetch(
137 `https://proxy-worker.thunderspeed.workers.dev/proxy?destination=${encodeURIComponent(ctx.url)}`,
138 );
169
170export async function streamium(ctx) {
171 const _embed = await fetch(ctx.url);
172 // https://pump.watchfree.ax/start-play?imdbid=tt11389872&name=apple&season=&episode=
173 const embed = await _embed.text();

TAC_FetchBasic2 file matches

@A7_OMC•Updated 5 hours ago

hn-fetch1 file match

@matija•Updated 7 hours ago