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=607&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 7881 results for "fetch"(1658ms)

hackernews_cmdkmain.tsx1 match

@pomdtr•Updated 12 months ago
54});
55
56export default app.fetch;

github_cmdk_extensionmain.tsx1 match

@pomdtr•Updated 12 months ago
28 })
29
30 return app.fetch
31}

val_town_cmdkmain.tsx1 match

@pomdtr•Updated 12 months ago
415});
416
417export default app.fetch;

sampleVanSSRmain.tsx1 match

@reosablo•Updated 12 months ago
49}
50
51export default async function fetch(req: Request) {
52 try {
53 const { pathname } = new URL(req.url);

uuidGeneratorStreammain.tsx1 match

@reosablo•Updated 12 months ago
1export default async function fetch(req: Request) {
2 const countParam = new URL(req.url).searchParams.get("count");
3 if (countParam === null) {

sampleVanIslandmain.tsx1 match

@reosablo•Updated 12 months ago
45 const requestUrl = `https://reosablo-uuidGeneratorStream.web.val.run/?count=${requestedCount.val}`;
46 const [response, { TextLineStream }] = await Promise.all([
47 fetch(requestUrl),
48 import("https://deno.land/std@0.224.0/streams/text_line_stream.ts"),
49 ]);

PersonalizationGPTmain.tsx1 match

@mjweaver01•Updated 1 year ago
143});
144
145export default app.fetch;

fetch_timeoutmain.tsx3 matches

@git•Updated 1 year ago
1async function fetchWithTimeout(timeout = 2_000) {
2 const abortSignal = AbortSignal.timeout(timeout);
3
4 try {
5 const response = await fetch("https://jsonplaceholder.typicode.com/posts/1", {
6 signal: abortSignal,
7 });
16}
17
18fetchWithTimeout(2_000).then(console.log);

val_town_clientmain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { paths } from "https://esm.town/v/pomdtr/openapi_schema";
2import createClient2 from "npm:openapi-fetch";
3
4/**

amaranthTakinmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
2import { form } from "https://esm.town/v/stevekrouse/date_me_form";
3import browse from "https://esm.town/v/stevekrouse/dateme_browse";
13app.get("/faq", faq);
14app.get("/rss.xml", c => dateMeRSS(c.req as unknown as Request));
15export default modifyFetchHandler(app.fetch, {
16 style: `@media (max-width: 500px) {
17 .github-fork-ribbon {

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago