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/image-url.jpg%20%22Optional%20title%22?q=fetch&page=728&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 9097 results for "fetch"(1623ms)

bookmarkmain.tsx1 match

@ramkarthik•Updated 1 year ago
111});
112
113export default app.fetch;

cors_examplemain.tsx1 match

@neverstew•Updated 1 year ago
9 async function request(url, options) {
10 try {
11 const response = await fetch(url, options);
12 const status = response.status;
13 const data = await response.text();

ask_aimain.tsx1 match

@pomdtr•Updated 1 year ago
43- You can use in JavaScript, TypeScript, JSX, or TSX
44- Utilize Deno-style import syntax for NPM packages, prefixed with "npm:"
45- Prefer native fetch for HTTP requests instead of axios
46- Prefer double quotes to single quotes
47

hackernews_cmdkmain.tsx1 match

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

github_cmdk_extensionmain.tsx1 match

@pomdtr•Updated 1 year ago
28 })
29
30 return app.fetch
31}

val_town_cmdkmain.tsx1 match

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

sampleVanSSRmain.tsx1 match

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

uuidGeneratorStreammain.tsx1 match

@reosablo•Updated 1 year 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 1 year 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;

proxyFetch2 file matches

@vidar•Updated 8 hours ago

TAC_FetchBasic2 file matches

@A7_OMC•Updated 23 hours ago