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/?q=fetch&page=133&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 8656 results for "fetch"(1553ms)

fetchPaginatedDatamain.tsx1 match

@nbbaier•Updated 3 weeks ago
1export { fetchPaginatedData } from "https://esm.town/v/nbbaier/utilities/pagination/fetchPaginatedData";

EmailAttachmentLogindex.ts2 matches

@wolf•Updated 3 weeks ago
67});
68
69// Export the fetch handler
70export default app.fetch;

EmailAttachmentLogApp.tsx4 matches

@wolf•Updated 3 weeks ago
39
40 useEffect(() => {
41 const fetchAttachments = async () => {
42 try {
43 const response = await fetch("/api/attachments");
44 if (!response.ok) {
45 throw new Error("Failed to fetch attachments");
46 }
47 const data = await response.json();
54 };
55
56 fetchAttachments();
57 }, []);
58

fiberplaneHonoZodStarterindex.ts1 match

@crisscrossed•Updated 3 weeks ago
105});
106
107export default app.fetch;

EmailAttachmentLogindex.ts2 matches

@wolf•Updated 3 weeks ago
56});
57
58// Export the fetch handler
59export default app.fetch;

EmailAttachmentLogApp.tsx4 matches

@wolf•Updated 3 weeks ago
67 }
68
69 // Fetch attachments
70 fetch('/api/attachments')
71 .then(response => {
72 if (!response.ok) {
73 throw new Error('Failed to fetch attachments');
74 }
75 return response.json();
80 })
81 .catch(err => {
82 console.error('Error fetching attachments:', err);
83 setError('Failed to load attachments');
84 setLoading(false);

statusmonitor2 matches

@crisscrossed•Updated 3 weeks ago
15 const start = performance.now();
16 try {
17 res = await fetch(url);
18 end = performance.now();
19 status = res.status;
25 } catch (e) {
26 end = performance.now();
27 reason = `couldn't fetch: ${e}`;
28 ok = false;
29 }

templateTwitterAlertmain.tsx1 match

@fredmoon•Updated 3 weeks ago
19 : Math.floor((Date.now() - 2 * 24 * 60 * 60 * 1000) / 1000);
20
21 // Fetch and log tweets
22 const response = await socialDataSearch(`${query} since_time:${timeFrame}`);
23 console.log("Response from socialDataSearch:", response);

FetchBasicREADME.md2 matches

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

stevensDemosendDailyBrief.ts1 match

@ziipo•Updated 3 weeks ago
135 const lastSunday = today.startOf("week").minus({ days: 1 });
136
137 // Fetch relevant memories using the utility function
138 const memories = await getRelevantMemories();
139

fetchPaginatedData2 file matches

@nbbaier•Updated 3 weeks ago

FetchBasic1 file match

@fredmoon•Updated 3 weeks ago