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/?q=fetch&page=620&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 8484 results for "fetch"(1049ms)

190 code: newCode,
191 });
192 fetch('/save', { method: "POST", body }).then(() => {
193 document.getElementById('code-input-hidden').value = newCode;
194 document.getElementById('preview-iframe').src += '';
297app.post("/", mainHandler);
298
299export default passwordAuth(app.fetch, { verifyPassword: verifyToken });
300
317app.post("/", mainHandler);
318
319export default passwordAuth(app.fetch, { verifyPassword: verifyToken });
320
156 code: newCode,
157 });
158 fetch('/save', { method: "POST", body }).then(() => {
159 document.getElementById('code-input-hidden').value = newCode;
160 document.getElementById('preview-iframe').src += '';
177 code: newCode,
178 });
179 fetch('/save', { method: "POST", body }).then(() => {
180 document.getElementById('code-input-hidden').value = newCode;
181 document.getElementById('preview-iframe').src += '';
168 code: newCode,
169 });
170 fetch('/save', { method: "POST", body }).then(() => {
171 document.getElementById('code-input-hidden').value = newCode;
172 document.getElementById('preview-iframe').src += '';
166 code: newCode,
167 });
168 fetch('/save', { method: "POST", body }).then(() => {
169 document.getElementById('code-input-hidden').value = newCode;
170 document.getElementById('preview-iframe').src += '';

perfmain.tsx2 matches

@stevekrouse•Updated 9 months ago
10 const start = performance.now();
11 try {
12 await fetch(url);
13 const end = performance.now();
14 return end - start;
15 } catch (error) {
16 console.error("Error fetching URL:", error);
17 return null;
18 }
2
3export default async function main(req: Request): Promise<Response> {
4 const response = await fetch("https://www.metaweather.com/api/location/2459115/");
5 const weatherData = await response.json();
6
2
3export default async function main(req: Request): Promise<Response> {
4 const response = await fetch("https://www.metaweather.com/api/location/2459115/");
5 const weatherData = await response.json();
6

fetchPaginatedData2 file matches

@nbbaier•Updated 2 weeks ago

FetchBasic1 file match

@fredmoon•Updated 2 weeks ago