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=214&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 2447 results for "fetch"(454ms)

cerebras_coderindex1 match

@kizzlah•Updated 1 month ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

statusmonitor2 matches

@peetzweg•Updated 1 month ago
15 const start = performance.now();
16 try {
17 res = await fetch(url);
18 end = performance.now();
19 status = res.status;
25 } catch (e) {
26 end = performance.now();
27 reason = `couldn't fetch: ${e}`;
28 ok = false;
29 }

portdateme2 matches

@charmaine•Updated 1 month 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 {

localTestdeno.lock7 matches

@maxm•Updated 1 month ago
36 "integrity": "sha512-OF8fFQSkbL7vJY9rfuegK1R7sPgQ6kFMkDamiEccNUvieQ+3urzfDFI616oPl8V7T9zRmnTkSjMOImYCAVRVuw==",
37 "dependencies": [
38 "@libsql/isomorphic-fetch",
39 "@libsql/isomorphic-ws",
40 "js-base64",
41 "node-fetch"
42 ]
43 },
44 "@libsql/isomorphic-fetch@0.3.1": {
45 "integrity": "sha512-6kK3SUK5Uu56zPq/Las620n5aS9xJq+jMBcNSOmjhNf/MUvdyji4vrMTqD7ptY7/4/CAVEAYDeotUz60LNQHtw=="
46 },
101 "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw=="
102 },
103 "fetch-blob@3.2.0": {
104 "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
105 "dependencies": [
111 "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
112 "dependencies": [
113 "fetch-blob"
114 ]
115 },
143 "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="
144 },
145 "node-fetch@3.3.2": {
146 "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
147 "dependencies": [
148 "data-uri-to-buffer",
149 "fetch-blob",
150 "formdata-polyfill"
151 ]

forky-1741889903243App.tsx1 match

@shouser•Updated 1 month ago
25 }
26
27 const response = await fetch(`/fork?url=${encodeURIComponent(projectUrl)}`, {
28 method: "POST",
29 headers: {

forky-1741889903243index.ts2 matches

@shouser•Updated 1 month ago
202});
203
204// HTTP vals expect an exported "fetch handler"
205// This is how you "run the server" in Val Town with Hono
206export default app.fetch;

import_from_githubApp.tsx1 match

@shouser•Updated 1 month ago
25 }
26
27 const response = await fetch(`/import-github?url=${encodeURIComponent(projectUrl)}`, {
28 method: "POST",
29 headers: {

fiberplaneHonoZodStarterindex.ts1 match

@nbbaier•Updated 1 month ago
105});
106
107export default app.fetch;

alexBlogsindex.tsx1 match

@charmaine•Updated 1 month ago
29 const posts = files.filter((file) => file.path.startsWith("posts/"));
30 const postContents = await Promise.all(
31 posts.map(async (file) => await (await fetch(file.links.module)).text()),
32 );
33

andrewBlogsindex.tsx1 match

@charmaine•Updated 1 month ago
29 const posts = files.filter((file) => file.path.startsWith("posts/"));
30 const postContents = await Promise.all(
31 posts.map(async (file) => await (await fetch(file.links.module)).text()),
32 );
33

fetchPaginatedData2 file matches

@nbbaier•Updated 5 days ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago