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=1153&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 13277 results for "fetch"(3781ms)

MusicAPI2main.tsx3 matches

@nishui•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export default async function(req: Request): Promise<Response> {
20 try {
21 [data1, data2] = await Promise.all([
22 fetch(encodedUri),
23 fetch(`https://music.163.com/api/song/media?id=${id}`),
24 ]);
25

uploadTo0x0main.tsx1 match

@easrng•Updated 1 year ago
4 formData.append("file", blob, name);
5 formData.append("expires", "1");
6 const response = await fetch("https://0x0.st", {
7 method: "POST",
8 body: formData,

upload_urlmain.tsx1 match

@stevekrouse•Updated 1 year ago
4 formData.append("file", file);
5
6 const response = await fetch("https://file.io", {
7 method: "POST",
8 body: formData,

uploadTo0x0main.tsx1 match

@stevekrouse•Updated 1 year ago
4 formData.append("file", blob, name);
5 formData.append("expires", "1");
6 const response = await fetch("https://0x0.st", {
7 method: "POST",
8 body: formData,

compress_image_demomain.tsx1 match

@stevekrouse•Updated 1 year ago
18});
19
20export default app.fetch;

oak_demomain.tsx1 match

@stevekrouse•Updated 1 year ago
7});
8
9export default app.fetch;

GistGPT_Clientmain.tsx3 matches

@weaverwhale•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/hono/jsx */
2import { fetch } from "https://esm.town/v/std/fetch";
3import { Marked } from "npm:@ts-stack/markdown";
4import { Hono } from "npm:hono";
55 const url = c.req.query("url");
56 // https://www.val.town/v/weaverwhale/GistGPT
57 const answer = await fetch(`https://weaverwhale-gistgpt.web.val.run/gist?url=${url}`).then(
58 (res) => res.text(),
59 );
83});
84
85export default app.fetch;

PriestGPTClientmain.tsx3 matches

@mjweaver01•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/hono/jsx */
2import { fetch } from "https://esm.town/v/std/fetch";
3import { Hono } from "npm:hono";
4
41 const verse = c.req.param("verse");
42 // https://www.val.town/v/mjweaver01/PriestGPT
43 const answer = await fetch(`https://mjweaver01-priestgpt.web.val.run/ask/${encodeURI(verse)}`).then(
44 (res) => res.text(),
45 );
64});
65
66export default app.fetch;

blob_adminmain.tsx2 matches

@curtcox•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";
88});
89
90export default modifyFetchHandler(passwordAuth(app.fetch));

dailyDadJokemain.tsx2 matches

@bomberstudios•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export async function dailyDadJoke() {
5 let { setup, punchline } = await fetchJSON("https://official-joke-api.appspot.com/random_joke");
6 return email({
7 text: punchline,

GithubPRFetcher

@andybak•Updated 13 hours ago

proxiedfetch1 file match

@jayden•Updated 1 day ago