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=280&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 3114 results for "fetch"(461ms)

tinygoHttpExamplemain.tsx1 match

@maxm•Updated 11 months ago
1import { wasmHandler } from "https://esm.town/v/maxm/tinygoHttp";
2const resp = await fetch("https://maxm-wasmblobhost.web.val.run/ihml3eg6qee7q2navnnpjqysogqvzdy7.wasm");
3
4export const handler = await wasmHandler(new Uint8Array(await resp.arrayBuffer()));

tinygoMandelbrotExamplemain.tsx1 match

@stevekrouse•Updated 11 months ago
1import { wasmHandler } from "https://esm.town/v/maxm/tinygoHttp";
2const resp = await fetch("https://maxm-wasmblobhost.web.val.run/ihml3eg6qee7q2navnnpjqysogqvzdy7.wasm");
3
4export const handler = await wasmHandler(new Uint8Array(await resp.arrayBuffer()));

tinygoMandelbrotExampleREADME.md1 match

@stevekrouse•Updated 11 months ago
16
17import { wasmHandler } from "https://esm.town/v/maxm/tinygoHttp";
18const resp = await fetch("https://maxm-wasmblobhost.web.val.run/jpxqvyy5tphiwehzklmioklpkpz4gpzs.wasm");
19const handler = await wasmHandler(new Uint8Array(await resp.arrayBuffer()));
20export default async function(req: Request): Promise<Response> {

maroonArmadillomain.tsx1 match

@stevekrouse•Updated 11 months ago
4app.get("/", (c) => c.text("Hello world!"));
5app.get("/yeah", (c) => c.text("Routing!"));
6export default app.fetch;

allValsmain.tsx1 match

@stevekrouse•Updated 11 months ago
11
12const app = new Hono();
13export default app.fetch;
14app.get("/", async (c) => {
15 const vals = await sqlite.execute(

fal_demomain.tsx1 match

@stevekrouse•Updated 11 months ago
48 );
49});
50export default app.fetch;

tanPeacockmain.tsx2 matches

@maxm•Updated 11 months ago
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
133});
134
135export default modifyFetchHandler(passwordAuth(app.fetch));

safeMessageBoardmain.tsx1 match

@stevekrouse•Updated 11 months ago
55});
56
57export default valTownBadge(app.fetch, import.meta.url);

aquamarinePiranhamain.tsx1 match

@maxm•Updated 11 months ago
1import { wasmHandler } from "https://esm.town/v/maxm/tinygoHttp";
2const resp = await fetch("https://maxm-wasmblobhost.web.val.run/e5vpzt253pv5jxqfmygo7nytl5uvyn5c.wasm");
3const handler = await wasmHandler(new Uint8Array(await resp.arrayBuffer()));
4export default async function(req: Request): Promise<Response> {

compileAndUploadTinygoWasmmain.tsx2 matches

@maxm•Updated 11 months ago
42})();
43
44let resp = await fetch("https://maxm-wasmBlobHost.web.val.run", {
45 method: "POST",
46 headers: {
57
58import { wasmHandler } from "https://esm.town/v/maxm/tinygoHttp";
59const resp = await fetch("${url}");
60const handler = await wasmHandler(new Uint8Array(await resp.arrayBuffer()));
61export default async function(req: Request): Promise<Response> {

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago