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=900&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 13170 results for "fetch"(1381ms)

cerebrasTemplatemain.tsx4 matches

@gokulnpc•Updated 4 months ago
113
114 useEffect(() => {
115 fetchSubscriptions();
116 }, []);
117
118 const fetchSubscriptions = async () => {
119 try {
120 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
128 setSubscriptions(result.rows);
129 } catch (error) {
130 console.error("Error fetching subscriptions:", error);
131 }
132 };
151 ]);
152
153 fetchSubscriptions();
154 } catch (error) {
155 console.error("Error adding subscription:", error);

cerebrasTemplatemain.tsx1 match

@keien•Updated 4 months ago
20
21 try {
22 const response = await fetch("/chat", {
23 method: "POST",
24 headers: { "Content-Type": "application/json" },

cerebrasTemplatemain.tsx1 match

@cory16457•Updated 4 months ago
20
21 try {
22 const response = await fetch("/chat", {
23 method: "POST",
24 headers: { "Content-Type": "application/json" },

hopefulGoldChinchillamain.tsx1 match

@charmaine•Updated 4 months ago
234
235 try {
236 const response = await fetch("/", {
237 method: "POST",
238 body: JSON.stringify({

cerebras_codermain.tsx1 match

@harrythedevopsguy•Updated 4 months ago
187
188 try {
189 const response = await fetch("/", {
190 method: "POST",
191 body: JSON.stringify({

quoteExtractormain.tsx1 match

@dh1011•Updated 4 months ago
17 setIsLoading(true);
18 try {
19 const response = await fetch('/extract', {
20 method: 'POST',
21 body: JSON.stringify({ text })

blobCommentDemomain.tsx1 match

@airandopal•Updated 4 months ago
133})
134
135export default app.fetch;

newFavoriteSongBotmain.tsx3 matches

@alexwein•Updated 4 months ago
48async function uploadImage(agent: AtpAgent, imageUrl: string) {
49 try {
50 // Fetch the image
51 const response = await fetch(imageUrl);
52 if (!response.ok) {
53 console.error(`Failed to fetch image: ${imageUrl}`);
54 return null;
55 }

cerebras_codermain.tsx1 match

@ninadxc•Updated 4 months ago
187
188 try {
189 const response = await fetch("/", {
190 method: "POST",
191 body: JSON.stringify({

geminichatmain.tsx6 matches

@arfan•Updated 4 months ago
218 });
219 } catch (error) {
220 console.error("Error fetching messages:", error);
221 return new Response(
222 JSON.stringify({ error: "Failed to fetch messages" }),
223 { status: 500 },
224 );
379 const loadMessages = async () => {
380 try {
381 const response = await fetch("/messages");
382 if (!response.ok) {
383 throw new Error("Failed to fetch messages");
384 }
385 const data = await response.json();
386 setMessages(data);
387 } catch (error) {
388 console.error("Error fetching messages:", error);
389 setMessages([
390 {
406
407 try {
408 const response = await fetch("/chat", {
409 method: "POST",
410 headers: { "Content-Type": "application/json" },

proxiedfetch1 file match

@jayden•Updated 7 hours ago

fetch-socials4 file matches

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