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/$%7Burl%7D?q=fetch&page=101&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 14486 results for "fetch"(3486ms)

YoutubeDownloaderDownloadForm.tsx1 match

@bman101•Updated 2 weeks ago
28 };
29
30 const response = await fetch("/api/download", {
31 method: "POST",
32 headers: {

tinyfeedhttp.ts4 matches

@ljus•Updated 2 weeks ago
2import { Hono } from "npm:hono@4";
3const app = new Hono();
4app.get("/feed.txt",(c) => tinyfeed.fetch(c.req));
5app.get("/feed.xml",(c) => tinyfeed.fetch(c.req));
6app.get("/",(c) => tinyfeed.fetch(c.req));
7export default app.fetch;

pixelartindex.ts1 match

@loading•Updated 2 weeks ago
407});
408
409export default app.fetch;

ai_comments_to_tasksindex.ts1 match

@arthrod•Updated 2 weeks ago
314});
315
316export default app.fetch;

ai_comments_to_tasksindex.tsx1 match

@arthrod•Updated 2 weeks ago
309
310 try {
311 const response = await fetch("/api/analyze", {
312 method: "POST",
313 headers: {

untitled-9921tools.ts10 matches

@DevGoku•Updated 2 weeks ago
30 return c.json({ success: true, data: allTools });
31 } catch (error) {
32 console.error("Error fetching tools:", error);
33 return c.json({ success: false, error: "Failed to fetch tools", details: error.message }, 500);
34 }
35});
41 return c.json({ success: true, data: featuredTools });
42 } catch (error) {
43 console.error("Error fetching featured tools:", error);
44 return c.json({ success: false, error: "Failed to fetch featured tools" }, 500);
45 }
46});
76 return c.json({ success: true, data: categoryTools, category });
77 } catch (error) {
78 console.error("Error fetching tools by category:", error);
79 return c.json({ success: false, error: "Failed to fetch tools by category" }, 500);
80 }
81});
96 });
97 } catch (error) {
98 console.error("Error fetching categories:", error);
99 return c.json({ success: false, error: "Failed to fetch categories" }, 500);
100 }
101});
107 return c.json({ success: true, data: stats });
108 } catch (error) {
109 console.error("Error fetching stats:", error);
110 return c.json({ success: false, error: "Failed to fetch stats" }, 500);
111 }
112});

untitled-9921index.ts1 match

@DevGoku•Updated 2 weeks ago
143});
144
145export default app.fetch; // This is the entry point for HTTP vals

untitled-9921App.tsx7 matches

@DevGoku•Updated 2 weeks ago
36 setLoading(false);
37 } else {
38 // Fallback: fetch data if not injected
39 fetchTools();
40 }
41 }, []);
42
43 const fetchTools = async (filters?: any) => {
44 setLoading(true);
45 try {
50 if (filters?.featured) params.append('featured', 'true');
51
52 const response = await fetch(`/api/tools/search?${params}`);
53 const data = await response.json();
54
57 }
58 } catch (error) {
59 console.error('Error fetching tools:', error);
60 } finally {
61 setLoading(false);
72 };
73
74 // Only fetch if we have filters, otherwise use initial data
75 if (searchQuery || selectedCategory || selectedPricing || showFeaturedOnly) {
76 fetchTools(filters);
77 } else if ((window as any).__INITIAL_DATA__) {
78 setTools((window as any).__INITIAL_DATA__.tools);

amaama.tsx1 match

@nbbaier•Updated 2 weeks ago
207});
208
209export default app.fetch;

amaheart.js2 matches

@nbbaier•Updated 2 weeks ago
63 }
64 async getCount() {
65 const t = await fetch(this.href, {
66 headers: { Accept: "application/json" },
67 });
80 if (this.hasReacted()) return this.setReacted();
81 this.setAttribute("aria-busy", "true"),
82 await fetch(this.href, {
83 method: "post",
84 body: this.emoji,

testWeatherFetcher1 file match

@sjaskeprut•Updated 2 days ago

weatherFetcher1 file match

@sjaskeprut•Updated 2 days ago