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/$1?q=fetch&page=16&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 12877 results for "fetch"(3810ms)

AmaraDashboard.tsx8 matches

@Victoria1234•Updated 14 hours ago
9
10 useEffect(() => {
11 fetchVoiceNotes();
12 }, []);
13
14 const fetchVoiceNotes = async () => {
15 try {
16 setLoading(true);
17 const response = await fetch('/api/voicenotes');
18 const data = await response.json();
19
21 setVoiceNotes(data.voiceNotes || []);
22 } else {
23 setError(data.error || 'Failed to fetch voice notes');
24 }
25 } catch (err) {
26 setError('Failed to load voice notes');
27 console.error('Error fetching voice notes:', err);
28 } finally {
29 setLoading(false);
120
121 try {
122 const response = await fetch(`/api/voicenotes/${voiceNoteId}`, {
123 method: 'DELETE'
124 });
160 <p className="text-red-600 mb-4">{error}</p>
161 <button
162 onClick={fetchVoiceNotes}
163 className="px-6 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700"
164 >
177 </h2>
178 <button
179 onClick={fetchVoiceNotes}
180 className="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 text-sm"
181 >

VictoriaVoiceRecorder.tsx1 match

@Victoria1234•Updated 14 hours ago
146 }
147
148 fetch('/api/voicenotes', {
149 method: 'POST',
150 body: formData

VictoriaVoicePlayer.tsx4 matches

@Victoria1234•Updated 14 hours ago
14
15 useEffect(() => {
16 fetchVoiceNote();
17 }, [voiceNoteId]);
18
19 const fetchVoiceNote = async () => {
20 try {
21 setLoading(true);
22 const response = await fetch(`/api/voicenotes/${voiceNoteId}`);
23 const data = await response.json();
24
32 } catch (err) {
33 setError('Failed to load voice note');
34 console.error('Error fetching voice note:', err);
35 } finally {
36 setLoading(false);

Victoriavoicenotes.ts3 matches

@Victoria1234•Updated 14 hours ago
23 return c.json({ success: true, voiceNotes });
24 } catch (error) {
25 console.error("Error fetching voice notes:", error);
26 return c.json({ success: true, voiceNotes: [] });
27 }
98
99 } catch (error) {
100 console.error("Error fetching voice note:", error);
101 return c.json({ success: false, error: "Failed to fetch voice note" }, 500);
102 }
103});

Victoriaindex.ts1 match

@Victoria1234•Updated 14 hours ago
23app.route("/", staticRoutes);
24
25export default app.fetch;

VictoriaDashboard.tsx8 matches

@Victoria1234•Updated 14 hours ago
9
10 useEffect(() => {
11 fetchVoiceNotes();
12 }, []);
13
14 const fetchVoiceNotes = async () => {
15 try {
16 setLoading(true);
17 const response = await fetch('/api/voicenotes');
18 const data = await response.json();
19
21 setVoiceNotes(data.voiceNotes || []);
22 } else {
23 setError(data.error || 'Failed to fetch voice notes');
24 }
25 } catch (err) {
26 setError('Failed to load voice notes');
27 console.error('Error fetching voice notes:', err);
28 } finally {
29 setLoading(false);
120
121 try {
122 const response = await fetch(`/api/voicenotes/${voiceNoteId}`, {
123 method: 'DELETE'
124 });
160 <p className="text-red-600 mb-4">{error}</p>
161 <button
162 onClick={fetchVoiceNotes}
163 className="px-6 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700"
164 >
177 </h2>
178 <button
179 onClick={fetchVoiceNotes}
180 className="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 text-sm"
181 >

voicemessagesVoiceRecorder.tsx1 match

@Victoria1234•Updated 14 hours ago
146 }
147
148 fetch('/api/voicenotes', {
149 method: 'POST',
150 body: formData

voicemessagesVoicePlayer.tsx4 matches

@Victoria1234•Updated 14 hours ago
14
15 useEffect(() => {
16 fetchVoiceNote();
17 }, [voiceNoteId]);
18
19 const fetchVoiceNote = async () => {
20 try {
21 setLoading(true);
22 const response = await fetch(`/api/voicenotes/${voiceNoteId}`);
23 const data = await response.json();
24
32 } catch (err) {
33 setError('Failed to load voice note');
34 console.error('Error fetching voice note:', err);
35 } finally {
36 setLoading(false);

voicemessagesvoicenotes.ts3 matches

@Victoria1234•Updated 14 hours ago
23 return c.json({ success: true, voiceNotes });
24 } catch (error) {
25 console.error("Error fetching voice notes:", error);
26 return c.json({ success: true, voiceNotes: [] });
27 }
98
99 } catch (error) {
100 console.error("Error fetching voice note:", error);
101 return c.json({ success: false, error: "Failed to fetch voice note" }, 500);
102 }
103});

voicemessagesindex.ts1 match

@Victoria1234•Updated 14 hours ago
23app.route("/", staticRoutes);
24
25export default app.fetch;

fetch-socials4 file matches

@welson•Updated 2 days ago
fetch and archive my social posts

fetchRssForSubcurrent2 file matches

@ashryanio•Updated 2 days ago