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=681&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 9065 results for "fetch"(2381ms)

138});
139
140export default app.fetch;
141
108});
109
110export default app.fetch;
111
141});
142
143export default app.fetch;
144
164});
165
166export default app.fetch;
167
134});
135
136export default app.fetch;
137
147});
148
149export default app.fetch;
150
147});
148
149export default app.fetch;
150
120});
121
122export default app.fetch;
123
142});
143
144export default app.fetch;
145
2 // Helper functions for Blob storage
3 async function getBlob(key: string): Promise<any> {
4 const response = await fetch(`https://api.val.town/v/std/blob-${key}`);
5 if (!response.ok) throw new Error("Error fetching blob data");
6 return response.json();
7 }
8
9 async function setBlob(key: string, data: any): Promise<void> {
10 const response = await fetch(`https://api.val.town/v/std/blob-${key}`, {
11 method: "POST",
12 headers: { "Content-Type": "application/json" },
42 <li>
43 <a href="${story.url}">${story.title}</a>
44 <button onclick="fetch('/vote?id=${story.id}', { method: 'POST' }).then(() => location.reload())">Upvote (${story.votes})</button>
45 </li>`).join('')}
46 </ul>

proxyFetch2 file matches

@vidar•Updated 3 hours ago

TAC_FetchBasic2 file matches

@A7_OMC•Updated 18 hours ago