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/$%7Burl%7D?q=fetch&page=675&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 9115 results for "fetch"(2470ms)

streamwishmain.tsx2 matches

@tempguy•Updated 9 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3function unpack(p, a, c, k) {
13}
14export async function streamwish(ctx) {
15 const _embed = await fetch(ctx.url);
16 const embed = await _embed.text();
17 const pr = /p}\('(.*?)',(\d+),(\d+),'(.*?)'\.split/gm;

amberPigmain.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);
7 let url = ctx.url;
8 if (ctx.url.includes("primewire")) {
9 const request = await fetch(ctx.url);
10 }
11 const id = url.split("/d/")[1] || url.split("/e/")[1];
12
13 const doodDataReq = await fetch(
14 `https://structural-sidonia-supergalaxy-4284f8da.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
15 + encodeURIComponent(`${baseUrl}/e/${id}`),
24 const thumbnailTrack = doodData.match(/thumbnails:\s\{\s*vtt:\s'([^']*)'/);
25 console.log(path);
26 const doodPageReq = await fetch(
27 `https://structural-sidonia-supergalaxy-4284f8da.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
28 + encodeURIComponent(`${baseUrl}/pass_md5${path}`),
94 // if (Number(_) > 100000) throw new Error("limit reached");
95 // await blob.set("streamtapeLimit", `${Number(_) + 1}`);
96 const _embed = await proxiedFetch(
97 `https://proxy-worker.thunderspeed.workers.dev/proxy?destination=${encodeURIComponent(ctx.url)}`,
98 );
129
130export async function streamium(ctx) {
131 const _embed = await fetch(ctx.url);
132 // https://pump.watchfree.ax/start-play?imdbid=tt11389872&name=apple&season=&episode=
133 const embed = await _embed.text();

playMeASongmain.tsx1 match

@dthyresson•Updated 9 months ago
246});
247
248export default app.fetch;

getSpotifyTrackUrlmain.tsx1 match

@dthyresson•Updated 9 months ago
69
70 // Search for the track
71 const response = await fetch(`https://api.spotify.com/v1/search?q=${query}&type=track`, {
72 headers: {
73 "Authorization": `Bearer ${accessToken.access_token}`,

tracksAPImain.tsx1 match

@dthyresson•Updated 9 months ago
89});
90
91export default yoga.fetch;

playRandomSongmain.tsx1 match

@dthyresson•Updated 9 months ago
43});
44
45export default app.fetch;

graphQLYogamain.tsx1 match

@dthyresson•Updated 9 months ago
45});
46
47export default yoga.fetch;

graphQLYogaDeferAndStreammain.tsx1 match

@dthyresson•Updated 9 months ago
95});
96
97export default yoga.fetch;

graphQLYogaWithSubscriptionsmain.tsx1 match

@dthyresson•Updated 9 months ago
91});
92
93export default yoga.fetch;

compileAndUploadTinygoWasmREADME.md1 match

@kora•Updated 9 months ago
34
35import { wasmHandler } from "https://esm.town/v/maxm/tinygoHttp";
36const resp = await fetch("https://maxm-wasmBlobHost.web.val.run/jpxqvyy5tphiwehzklmioklpkpz4gpzs.wasm");
37const handler = await wasmHandler(new Uint8Array(await resp.arrayBuffer()));
38export default async function(req: Request): Promise<Response> {

proxyFetch2 file matches

@vidar•Updated 10 hours ago

TAC_FetchBasic2 file matches

@A7_OMC•Updated 1 day ago