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=1134&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 13344 results for "fetch"(1117ms)

sqliteExplorerAppmain.tsx4 matches

@dtkav•Updated 11 months ago
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
15import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=70";
16import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
17import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
18import { Hono } from "npm:hono";
19import type { FC } from "npm:hono/jsx";
174});
175
176export const handler = app.fetch;
177export default iframeHandler(modifyFetchHandler(passwordAuth(handler)));

uptimemain.tsx2 matches

@cn_d_•Updated 11 months ago
14 start = performance.now();
15 try {
16 const res = await fetch(url);
17 end = performance.now();
18 status = res.status;
25 } catch (e) {
26 end = performance.now();
27 reason = `couldn't fetch: ${e}`;
28 ok = false;
29 console.log(`Website down (${url}): ${reason} (${end - start}ms)`);

emojiExplodermain.tsx1 match

@iamseeley•Updated 11 months ago
98});
99
100export default app.fetch;
101

semanticSearchmain.tsx1 match

@yawnxyz•Updated 12 months ago
162});
163
164export default app.fetch;
165export { SemanticSearch, semanticSearch };
166

createGeneratedValmain.tsx3 matches

@yawnxyz•Updated 12 months ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2import { runVal } from "https://esm.town/v/std/runVal";
3import { OpenAI } from "https://esm.town/v/std/openai";
55 );
56
57 const val = await fetchJSON(
58 `https://api.val.town/v1/vals`,
59 {
89console.log(newVal, newVal.name)
90
91// const results = await fetchJSON(`https://yawnxyz-${newVal.name}.web.val.run`);
92// console.log(`--->>>>>>>> https://yawnxyz-${newVal.name}.web.val.run, res);
93

nameOfUnicodeREADME.md1 match

@jdan•Updated 12 months ago
4import { blob } from "https://esm.town/v/std/blob?v=12";
5
6fetch("https://unicode.org/Public/UNIDATA/UnicodeData.txt").then(async function(response) {
7 const text = await response.text();
8 const data = {};

htmxGenFormsExamplemain.tsx1 match

@yawnxyz•Updated 12 months ago
114});
115
116export default app.fetch;
117
118export function showClicked() {

uptimemain.tsx2 matches

@wilg•Updated 12 months ago
14 start = performance.now();
15 try {
16 const res = await fetch(url);
17 end = performance.now();
18 status = res.status;
25 } catch (e) {
26 end = performance.now();
27 reason = `couldn't fetch: ${e}`;
28 ok = false;
29 console.log(`Website down (${url}): ${reason} (${end - start}ms)`);

aiHonoHtmxAlpineStreamingExamplemain.tsx1 match

@yawnxyz•Updated 12 months ago
129app.get('/', (c) => c.html(htmlContent));
130
131export default app.fetch; // val.town
132

isMyWebsiteDownmain.tsx2 matches

@healeycodes•Updated 12 months ago
14 start = performance.now();
15 try {
16 const res = await fetch(url);
17 end = performance.now();
18 status = res.status;
25 } catch (e) {
26 end = performance.now();
27 reason = `couldn't fetch: ${e}`;
28 ok = false;
29 console.log(`Website down (${url}): ${reason} (${end - start}ms)`);

GithubPRFetcher

@andybak•Updated 1 day ago

proxiedfetch1 file match

@jayden•Updated 2 days ago