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%22Image%20title%22?q=fetch&page=1110&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 13310 results for "fetch"(1392ms)

227
228// Authentication Middleware
229export default passwordAuth(app.fetch, { verifyPassword: verifyToken });
230
107const app = new Hono();
108app.get('/', c => c.html(html));
109export default app.fetch;
110

VALLEmain.tsx1 match

@pomdtr•Updated 10 months ago
278app.post("/", mainHandler);
279
280export default passwordAuth(app.fetch, { verifyPassword: verifyToken });
281
282// <form method="GET" action="/" class="flex">
149});
150
151export default app.fetch;
152
90});
91
92export default app.fetch;
93
13});
14
15export default app.fetch;
16
17
63 e.preventDefault();
64 const formData = new FormData(this);
65 const response = await fetch(location.href, { method: "POST", body: formData });
66 const data = await response.text();
67 document.getElementById("greetingMessage").innerHTML = data;

cheerioScrapermain.tsx1 match

@damidina•Updated 10 months ago
5
6export default async function scrapeWebsite(url: string) {
7 const response = await fetch(url);
8 const body = await response.text();
9 const $ = cheerio.load(body);

valTownChatGPT2main.tsx3 matches

@janpaul123•Updated 10 months ago
210 form.addEventListener("submit", (e) => {
211 e.preventDefault();
212 // make fetch POST request to /save and write the result to .saveValResult.
213 fetch("/save", {
214 method: "POST",
215 body: new FormData(form),
306});
307
308export default passwordAuth(app.fetch, { verifyPassword: verifyToken });

valwriter_outputmain.tsx2 matches

@stevekrouse•Updated 10 months ago
8
9app.get("/", async (c) => {
10 const response = await fetch(
11 `${BASE_URL}?q=Brooklyn&units=metric&appid=${WEATHER_API_KEY}`
12 );
20});
21
22export default app.fetch;

GithubPRFetcher

@andybak•Updated 1 day ago

proxiedfetch1 file match

@jayden•Updated 1 day ago