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=703&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 9460 results for "fetch"(1572ms)

featureflagsmain.tsx1 match

@fmac•Updated 9 months ago
112});
113
114export default app.fetch;

FetchBasicREADME.md2 matches

@hunty•Updated 9 months ago
1# Framer Fetch: Basic
2
3A basic example of an API endpoint to use with Framer Fetch.

comparableJadePtarmiganmain.tsx3 matches

@fahmi•Updated 9 months ago
4
5 try {
6 // Fetch the data from the Google Script URL
7 const response = await fetch(url);
8 const jsonData = await response.json();
9
30 });
31 } catch (error) {
32 return new Response("Failed to fetch data", { status: 500 });
33 }
34}

accessibleScarletToadmain.tsx3 matches

@fahmi•Updated 9 months ago
4
5 try {
6 // Fetch the data from the Google Script URL
7 const response = await fetch(url);
8 const jsonData = await response.json();
9
38 });
39 } catch (error) {
40 return new Response("Failed to fetch data", { status: 500 });
41 }
42}

probableMaroonGuanmain.tsx3 matches

@tempdev•Updated 9 months ago
555 module: mod,
556 bytes: buffer,
557 } = (url = fetch(url), void 0, await QN(await url, mod)),
558 assignWasm(url),
559 buffer);
610const getMeta = async (url: string) => {
611 console.log(url);
612 let resp = await fetch(url, {
613 "headers": {
614 "UserAgent": user_agent,
629 let getSourcesUrl = "https://rabbitstream.net/ajax/v2/embed-4/getSources?id=" + xrax + "&v="
630 + fake_window.localStorage.kversion + "&h=" + fake_window.localStorage.kid + "&b=1676800512";
631 let resp_json = await (await fetch(getSourcesUrl, {
632 "headers": {
633 "User-Agent": user_agent,

getWeathermain.tsx2 matches

@carts•Updated 9 months ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function getWeather(location: string): Promise<WeatherResponse> {
4 return fetchJSON(`https://wttr.in/${location}?format=j1`);
5}
6

distinctGoldLarkmain.tsx3 matches

@tempdev•Updated 9 months ago
1const jsonData = await (await fetch("https://tempdev-brilliantbronzevicuna.web.val.run/")).text();
2
3// Create a FormData object
13const apiUrl = "https://filehaus.top/api/upload/data.ts"; // Replace with your API URL
14
15// Send the file using fetch
16try {
17 const response = await fetch(apiUrl, {
18 method: "POST",
19 body: formData,

lucia_middleware_demomain.tsx1 match

@stevekrouse•Updated 9 months ago
31});
32
33export default luciaMiddleware(app.fetch);

featureflagsmain.tsx1 match

@samwho•Updated 9 months ago
112});
113
114export default app.fetch;

generateGuestbookSnippetmain.tsx2 matches

@tedlee•Updated 9 months ago
12 const submitBtn = document.querySelector('#valtown-submit');
13 async function getMessages() {
14 const r = await fetch('https://${valUser}-${valName}.express.val.run');
15 msgList.innerHTML = '<ul>';
16 msgList.innerHTML += (await r.json()).map(msg => {
21 async function sendMessage() {
22 submitBtn.disabled = true
23 const r = await fetch('https://${valUser}-${valName}.express.val.run', {
24 method: 'POST',
25 headers: {

agentplex-deal-flow-email-fetch1 file match

@anandvc•Updated 1 hour ago

proxyFetch2 file matches

@vidar•Updated 2 days ago