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=1213&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 15277 results for "fetch"(16514ms)

blob_adminmain.tsx2 matches

@vip•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
137});
138
139export default modifyFetchHandler(passwordAuth(app.fetch));

sqliteExplorerAppmain.tsx4 matches

@mixer•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
16import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken";
17import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
18import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
19import { Hono } from "npm:hono";
20import type { FC } from "npm:hono/jsx";
175});
176
177export const handler = app.fetch;
178export default iframeHandler(modifyFetchHandler(passwordAuth(handler, { verifyPassword: verifyToken })));

blob_admin_oldmain.tsx2 matches

@dcm31•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
137});
138
139export default modifyFetchHandler(passwordAuth(app.fetch));

boldRoseWaspmain.tsx1 match

@parkerdavis•Updated 7 months ago
10app.get("/", async (c) => c.html(await sqlite_admin_tables()));
11app.get("/:table", async (c) => c.html(await sqlite_admin_table(c.req.param("table"))));
12export default basicAuth(app.fetch, { verifyUser: (_, password) => verifyToken(password) });

uptimemain.tsx2 matches

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

codecommentermain.tsx1 match

@JamesAndrew•Updated 7 months ago
32 try {
33 setIsLoading(true);
34 const response = await fetch("/comment", {
35 method: "POST",
36 headers: { "Content-Type": "application/json" },

sqliteExplorerAppmain.tsx4 matches

@sammeltassen•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
16import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken";
17import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
18import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
19import { Hono } from "npm:hono";
20import type { FC } from "npm:hono/jsx";
175});
176
177export const handler = app.fetch;
178export default iframeHandler(modifyFetchHandler(passwordAuth(handler, { verifyPassword: verifyToken })));

shirtGenmain.tsx1 match

@torlanco•Updated 7 months ago
23
24 try {
25 const response = await fetch("https://torlanco-shirtgenscript.web.val.run", {
26 method: "POST",
27 headers: {

stableAzureDragonmain.tsx2 matches

@temptemp•Updated 7 months ago
1import { canvas } from "npm:canvas";
2import { JSDOM } from "npm:jsdom";
3const html = await (await fetch("https://megacloud.tv/embed-1/e-1/N4ctGzf2XjdY?z=&_debug=true")).text();
4const dom = new JSDOM(html);
5const document = dom.window.document;
838// module: BW,
839// bytes: BT,
840// } = (BE = fetch(BE), Bc(BW), await Bd(await BE, BW)));
841// BR(BE, BW);
842// return BT;

obedientHarlequinHedgehogmain.tsx1 match

@taurusismagic•Updated 7 months ago
65
66 try {
67 const response = await fetch("/check-email", {
68 method: "POST",
69 headers: { "Content-Type": "application/json" },

fake-https1 file match

@blazemcworld•Updated 1 week ago
simple proxy to fetch http urls using https

testWeatherFetcher1 file match

@sjaskeprut•Updated 2 weeks ago