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?q=fetch&page=182&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 10673 results for "fetch"(854ms)

LiveStormMCPrules3 matches

@supagroova•Updated 1 week ago
275
276 // Inject data to avoid extra round-trips
277 const initialData = await fetchInitialData();
278 const dataScript = `<script>
279 window.__INITIAL_DATA__ = ${JSON.stringify(initialData)};
325
3265. **API Design:**
327 - `fetch` handler is the entry point for HTTP vals
328 - Run the Hono app with
329 `export default app.fetch // This is the entry point for HTTP vals`
330

Respecindex.html1 match

@Problewk•Updated 1 week ago
229 try {
230 // Send message to API
231 const response = await fetch('/api/chat', {
232 method: 'POST',
233 headers: {

AppkyBookingFlow.tsx7 matches

@OssyNach•Updated 1 week ago
29 const [paymentSuccess, setPaymentSuccess] = useState(false);
30
31 // Fetch package details
32 useEffect(() => {
33 const fetchPackageDetails = async () => {
34 try {
35 setLoading(true);
36 setError(null);
37
38 const response = await fetch(`/api/packages/${packageId}`);
39 const result = await response.json();
40
41 if (!result.success) {
42 throw new Error(result.error || 'Failed to fetch package details');
43 }
44
51 };
52
53 fetchPackageDetails();
54 }, [packageId]);
55
60 setError(null);
61
62 const response = await fetch('/api/bookings', {
63 method: 'POST',
64 headers: {
134
135 // Send payment request
136 const response = await fetch('/api/payments/process', {
137 method: 'POST',
138 headers: {

AppkyPackageDetails.tsx8 matches

@OssyNach•Updated 1 week ago
15 const [error, setError] = useState<string | null>(null);
16
17 // Fetch package details
18 useEffect(() => {
19 const fetchPackageDetails = async () => {
20 try {
21 setLoading(true);
22 setError(null);
23
24 // Fetch package data
25 const response = await fetch(`/api/packages/${packageId}`);
26 const result = await response.json();
27
28 if (!result.success) {
29 throw new Error(result.error || 'Failed to fetch package details');
30 }
31
32 setPackageData(result.data);
33
34 // Fetch agency data
35 const agencyResponse = await fetch(`/api/agencies/${result.data.agency_id}`);
36 const agencyResult = await agencyResponse.json();
37
46 };
47
48 fetchPackageDetails();
49 }, [packageId]);
50

AppkySearchPage.tsx1 match

@OssyNach•Updated 1 week ago
73
74 // Make API request
75 const response = await fetch(`/api/packages/search?${queryParams.toString()}`);
76 const result = await response.json();
77

Appkyindex.ts1 match

@OssyNach•Updated 1 week ago
81
82// Export the Hono app for HTTP val
83export default app.fetch;

untitled-9291index.ts1 match

@maria26•Updated 1 week ago
77
78// This is the entry point for HTTP vals
79export default app.fetch;

dddindex.ts17 matches

@Dhanu•Updated 1 week ago
104 return c.json({ success: true, data: properties });
105 } catch (error) {
106 console.error("Error fetching properties:", error);
107 return c.json({ success: false, error: "Failed to fetch properties" }, 500);
108 }
109});
116 return c.json({ success: true, data: properties });
117 } catch (error) {
118 console.error("Error fetching featured properties:", error);
119 return c.json({ success: false, error: "Failed to fetch featured properties" }, 500);
120 }
121});
210 return c.json({ success: true, data: users });
211 } catch (error) {
212 console.error("Error fetching users:", error);
213 return c.json({ success: false, error: "Failed to fetch users" }, 500);
214 }
215});
220 return c.json({ success: true, data: agents });
221 } catch (error) {
222 console.error("Error fetching agents:", error);
223 return c.json({ success: false, error: "Failed to fetch agents" }, 500);
224 }
225});
390 return c.json({ success: true, data: inquiries });
391 } catch (error) {
392 console.error("Error fetching inquiries:", error);
393 return c.json({ success: false, error: "Failed to fetch inquiries" }, 500);
394 }
395});
402 return c.json({ success: true, data: inquiries });
403 } catch (error) {
404 console.error("Error fetching user inquiries:", error);
405 return c.json({ success: false, error: "Failed to fetch inquiries" }, 500);
406 }
407});
529 return c.json({ success: true, data: favorites });
530 } catch (error) {
531 console.error("Error fetching favorites:", error);
532 return c.json({ success: false, error: "Failed to fetch favorites" }, 500);
533 }
534});
561 return c.json({ success: true, data: stats });
562 } catch (error) {
563 console.error("Error fetching dashboard stats:", error);
564 return c.json({ success: false, error: "Failed to fetch dashboard stats" }, 500);
565 }
566});
582
583// This is the entry point for HTTP vals
584export default app.fetch;

untitled-3483index.ts1 match

@Satheesh_25•Updated 1 week ago
221
222// This is the entry point for HTTP vals
223export default app.fetch;

untitled-3483index.js1 match

@Satheesh_25•Updated 1 week ago
700
701 try {
702 const response = await fetch(`/api/products?search=${encodeURIComponent(query)}`);
703 const products = await response.json();
704

FRAMERFetchBasic1 file match

@bresnik•Updated 7 hours ago

FetchBasic1 file match

@bresnik•Updated 7 hours ago