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=231&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 2375 results for "fetch"(497ms)

datemeindex1 match

@stevekrouse•Updated 2 months ago
12app.get("/faq", faq);
13app.get("/rss.xml", c => rss(c.req.raw));
14export default app.fetch;
38 formData.append("type", imageType);
39
40 fetch("/upload", {
41 method: "POST",
42 body: formData,

statusmonitor2 matches

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

statusmonitor2 matches

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

codemirrorTsdemo1 match

@maxm•Updated 2 months ago
8 // if this script is not on that domain. Proxy it.
9 if (u.pathname === "/worker.ts") {
10 const js = await (await fetch(import.meta.resolve("./worker"))).text();
11 return new Response(js, {
12 headers: {

charmainesStatusmonitor2 matches

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

logmeindb1 match

@maxm•Updated 2 months ago
25
26 async login(email: string, config: Config | undefined): Promise<string> {
27 const resp = await fetch("https://api.val.town/v1/me", {
28 headers: {
29 "Authorization": `Bearer ${Deno.env.get("valtown")}`,

parseImportMetaval.test8 matches

@std•Updated 2 months ago
5 {
6 name: "standard val",
7 input: "https://esm.town/v/stevekrouse/fetchJSON?v=45",
8 expected: {
9 email: "stevekrouse.fetchJSON@valtown.email",
10 links: {
11 embed: "https://val.town/embed/stevekrouse/fetchJSON",
12 endpoint: "https://stevekrouse-fetchJSON.web.val.run",
13 module: "https://esm.town/v/stevekrouse/fetchJSON",
14 self: "https://val.town/v/stevekrouse/fetchJSON",
15 },
16 name: "fetchJSON",
17 slug: "stevekrouse/fetchJSON",
18 username: "stevekrouse",
19 version: 45,

surprisingEmbeddingsbots6 matches

@tmcw•Updated 2 months ago
119 "frequency": "Unclear at this time.",
120 "description":
121 "DuckAssistBot is used by DuckDuckGo's DuckAssist feature to fetch content and generate realtime AI answers to user searches. More info can be found at https://darkvisitors.com/agents/agents/duckassistbot",
122 },
123 "FacebookBot": {
146 "GoogleOther": {
147 "description":
148 "\"Used by various product teams for fetching publicly accessible content from sites. For example, it may be used for one-off crawls for internal research and development.\"",
149 "frequency": "No information.",
150 "function": "Scrapes data.",
154 "GoogleOther-Image": {
155 "description":
156 "\"Used by various product teams for fetching publicly accessible content from sites. For example, it may be used for one-off crawls for internal research and development.\"",
157 "frequency": "No information.",
158 "function": "Scrapes data.",
162 "GoogleOther-Video": {
163 "description":
164 "\"Used by various product teams for fetching publicly accessible content from sites. For example, it may be used for one-off crawls for internal research and development.\"",
165 "frequency": "No information.",
166 "function": "Scrapes data.",
230 "\"The Meta-ExternalAgent crawler crawls the web for use cases such as training AI models or improving products by indexing content directly.\"",
231 },
232 "Meta-ExternalFetcher": {
233 "operator": "Unclear at this time.",
234 "respect": "Unclear at this time.",
236 "frequency": "Unclear at this time.",
237 "description":
238 "Meta-ExternalFetcher is dispatched by Meta AI products in response to user prompts, when they need to fetch an individual links. More info can be found at https://darkvisitors.com/agents/agents/meta-externalfetcher",
239 },
240 "OAI-SearchBot": {

reactRouter7server.tsx1 match

@charmaine•Updated 2 months ago
5 if (url.pathname == "/js/entry.client.js") {
6 const moduleUrl = new URL("./entry.client.tsx", import.meta.url);
7 return fetch(moduleUrl);
8 }
9 return handler(request);

fetchPaginatedData2 file matches

@nbbaier•Updated 3 days ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago