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%22Image%20title%22?q=fetch&page=1106&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 15229 results for "fetch"(4837ms)

cerebras_searchermain.tsx3 matches

@meamitpatil•Updated 5 months ago
27 try {
28 // First API call - Get search results
29 const searchResult = await fetch("/api/search", {
30 method: "POST",
31 headers: { "Content-Type": "application/json" },
38 // Second API call - Get summary
39 setSummaryLoading(true);
40 const summaryResult = await fetch("/api/summarize", {
41 method: "POST",
42 headers: { "Content-Type": "application/json" },
149 // Search using SerpApi
150 try {
151 const searchResponse = await fetch(
152 `https://serpapi.com/search.json?q=${encodeURIComponent(query)}&api_key=${Deno.env.get("SERP_API_KEY")}`,
153 );

cerebrasTemplatemain.tsx1 match

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

getRandomWordmain.tsx2 matches

@alexwein•Updated 5 months ago
20 const useSeed = seed ?? Date.now().toString();
21
22 // Fetch and cache the word list if not already done
23 if (!wordListCache) {
24 const response = await fetch("https://raw.githubusercontent.com/wordnik/wordlist/main/wordlist-20210729.txt");
25 const text = await response.text();
26 wordListCache = text.trim().split("\n")

UImain.tsx1 match

@gokulnpc•Updated 5 months ago
46
47 try {
48 const response = await fetch("/generate-component", {
49 method: "POST",
50 headers: { "Content-Type": "application/json" },

cerebras_codermain.tsx1 match

@gokulnpc•Updated 5 months ago
236
237 try {
238 const response = await fetch("/", {
239 method: "POST",
240 body: JSON.stringify({

cerebrasTemplatemain.tsx4 matches

@gokulnpc•Updated 5 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 5 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 5 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 5 months ago
234
235 try {
236 const response = await fetch("/", {
237 method: "POST",
238 body: JSON.stringify({

cerebras_codermain.tsx1 match

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

fake-https1 file match

@blazemcworld•Updated 6 days ago
simple proxy to fetch http urls using https

testWeatherFetcher1 file match

@sjaskeprut•Updated 2 weeks ago