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=1042&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 13349 results for "fetch"(2558ms)

GDI_GoodMorningmain.tsx1 match

@rozek•Updated 8 months ago
2
3async function getWeather() {
4 const response = await fetch(
5 "https://api.open-meteo.com/v1/forecast?latitude=48.7758&longitude=9.1829&current=temperature_2m,weathercode&daily=weathercode,temperature_2m_max,temperature_2m_min&timezone=Europe%2FBerlin"
6 );

GDI_EMailSendermain.tsx1 match

@rozek•Updated 8 months ago
17 setStatus("sending...");
18 try {
19 await fetch("/send-email", {
20 method: "POST",
21 headers: { "Content-Type": "application/json" },

GDI_FormUploadmain.tsx1 match

@rozek•Updated 8 months ago
62
63 try {
64 const response = await fetch("https://rozek-gdi_formuploadservice.web.val.run", {
65 method: "POST",
66 body: formDataToSend,

multiplayerCirclesmain.tsx2 matches

@peterqliu•Updated 8 months ago
86 const y = d3.select(this).attr("cy");
87
88 fetch(`/update?x=${x}&y=${y}&i=${d3.select(this).attr("idx")}`, { method: "post" });
89 d3.select(this).attr("stroke", null);
90 }
190 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
191});
192export default app.fetch;

slamBotPostmain.tsx3 matches

@dupontgu•Updated 8 months ago
130 formData.append("description", altText);
131
132 const uploadResponse = await fetch(`${MASTODON_URL}/api/v2/media`, {
133 method: "POST",
134 headers: {
149 const mediaId = await uploadImage(imageBuffer, altText);
150
151 const postResponse = await fetch(`${MASTODON_URL}/api/v1/statuses`, {
152 method: "POST",
153 headers: {
172async function overlayTextOnImage(slammer_text: string, slammed_text: string, imageDef: Image): Promise<Uint8Array> {
173 const image = await loadImage(imageDef.url);
174 let fontFile = await fetch(
175 "https://github.com/sophilabs/macgifer/raw/master/static/font/impact.ttf",
176 );

GDI_FileUploadmain.tsx1 match

@all•Updated 8 months ago
57
58 try {
59 const response = await fetch("https://rozek-gdi_fileuploadservice.web.val.run/", {
60 method: "POST",
61 body: formData,

GDI_FileUploadmain.tsx1 match

@rozek•Updated 8 months ago
57
58 try {
59 const response = await fetch("https://rozek-gdi_fileuploadservice.web.val.run/", {
60 method: "POST",
61 body: formData,

blob_adminmain.tsx2 matches

@thesolarmonk•Updated 8 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";
137});
138
139export default modifyFetchHandler(passwordAuth(app.fetch));

dependency_graphmain.tsx1 match

@peterqliu•Updated 8 months ago
81 }
82});
83export default app.fetch;

blob_adminmain.tsx2 matches

@akilangh•Updated 8 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";
137});
138
139export default modifyFetchHandler(passwordAuth(app.fetch));

GithubPRFetcher

@andybak•Updated 1 day ago

proxiedfetch1 file match

@jayden•Updated 2 days ago