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/$%7Bart_info.art.src%7D?q=fetch&page=695&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 8634 results for "fetch"(2007ms)

calorieappmain.tsx1 match

@stevekrouse•Updated 1 year ago
83});
84
85export default app.fetch;

cron2main.tsx1 match

@stevekrouse•Updated 1 year ago
5
6const app = new Hono();
7export default app.fetch;
8app.get("/", async (c) => {
9 const description = c.req.query("description") || "On weekdays at noon";

apimain.tsx2 matches

@weaverwhale•Updated 1 year ago
15
16 while (true) {
17 const resp = await fetch(url);
18 if (!resp.ok) {
19 throw new Error(await resp.text());
32 return { data } as T;
33 }
34 const resp = await fetch(`${API_URL}${path}`, {
35 ...options,
36 headers: {

poembuilder3main.tsx1 match

@stevekrouse•Updated 1 year ago
59});
60
61export default app.fetch;

poembuildermain.tsx1 match

@stevekrouse•Updated 1 year ago
60});
61
62export default app.fetch

roastCastmain.tsx7 matches

@jamiedubs•Updated 1 year ago
4import process from "node:process";
5
6async function fetchCast({ fid, hash }: { fid: string; hash: string }) {
7 console.log("fetchCast", { fid, hash });
8 const res = await fetch(
9 `https://api.neynar.com/v2/farcaster/cast?identifier=${hash}&type=hash`,
10 {
34 };
35
36 const res = await fetch(`https://simple-api.glif.app`, {
37 method: "POST",
38 body: JSON.stringify(body),
76 };
77
78 console.log("postCast fetching...", url, cast);
79 const res = await fetch(url, options);
80 let json;
81 try {
152
153 const cast = data.castId;
154 const castText = await fetchCast(cast);
155 console.log({ cast, castText });
156 const inputs = [castText];

indieauth_servermain.tsx1 match

@pomdtr•Updated 1 year ago
17});
18
19export default app.fetch;

greenSnipeREADME.md1 match

@pomdtr•Updated 1 year ago
11How does this new shiny search engine work? Well, it's quite simple.
12
131. I wrote a [Deno script](https://github.com/pomdtr/val-town-mirror/blob/main/scripts/pull.ts) that fetches all vals from the Val Town API.
142. I pushed the data to a [Github Repository](https://github.com/pomdtr/val-town-mirror)
153. I added a [Github Action](https://github.com/pomdtr/val-town-mirror/blob/main/.github/workflows/sync.yaml) that runs the script every hour to refresh the data.

code_search_is_easyREADME.md1 match

@stevekrouse•Updated 1 year ago
11How does this new shiny search engine work? Well, it's quite simple.
12
131. I wrote a [Deno script](https://github.com/pomdtr/val-town-mirror/blob/main/scripts/pull.ts) that fetches all vals from the Val Town API.
142. I pushed the data to a [Github Repository](https://github.com/pomdtr/val-town-mirror)
153. I added a [Github Action](https://github.com/pomdtr/val-town-mirror/blob/main/.github/workflows/sync.yaml) that runs the script every hour to refresh the data.

code_search_is_easyREADME.md5 matches

@pomdtr•Updated 1 year ago
11How does this new shiny search engine work? Well, it's quite simple.
12
131. I wrote a Deno script that fetches all vals from the Val Town API.
14
15```ts
27const vals = [];
28while (true) {
29 console.log("fetching", url);
30 const resp = await fetch(url);
31 if (!resp.ok) {
32 console.error(resp.statusText);
76const vals = [];
77while (true) {
78 console.log("fetching", url);
79 const resp = await fetch(url);
80 if (!resp.ok) {
81 console.error(resp.statusText);

fetchPaginatedData2 file matches

@nbbaier•Updated 3 weeks ago

FetchBasic1 file match

@fredmoon•Updated 3 weeks ago