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=285&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 3120 results for "fetch"(338ms)

frequencyDotPlotmain.tsx1 match

@stevekrouse•Updated 1 year ago
23});
24
25export default app.fetch;

yellowBonobomain.tsx3 matches

@stevekrouse•Updated 1 year ago
1import { discordFetch } from "https://esm.town/v/vtdocs/discordFetch?v=10";
2
3const recipientId = "420257368417239041";
6const botToken = Deno.env.get("discordBot");
7
8const DM = await discordFetch(
9 botToken,
10 "/users/@me/channels",
16console.log(DM);
17// Then, we send a message via the DM
18const result = await discordFetch(
19 botToken,
20 `/channels/${DM.id}/messages`,

bookmarkmain.tsx1 match

@stevekrouse•Updated 1 year ago
78});
79
80export default app.fetch;

upload_urlmain.tsx1 match

@stevekrouse•Updated 1 year ago
4 formData.append("file", file);
5
6 const response = await fetch("https://file.io", {
7 method: "POST",
8 body: formData,

uploadTo0x0main.tsx1 match

@stevekrouse•Updated 1 year ago
4 formData.append("file", blob, name);
5 formData.append("expires", "1");
6 const response = await fetch("https://0x0.st", {
7 method: "POST",
8 body: formData,

compress_image_demomain.tsx1 match

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

oak_demomain.tsx1 match

@stevekrouse•Updated 1 year ago
7});
8
9export default app.fetch;

plantsmain.tsx1 match

@stevekrouse•Updated 1 year ago
78});
79
80export default app.fetch;

jadeOpossummain.tsx2 matches

@tmcw•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 {

datememain.tsx2 matches

@tmcw•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

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago