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/$2?q=fetch&page=30&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 13397 results for "fetch"(1410ms)

hono-utilsexample.http.ts1 match

@matt_hallway•Updated 2 days ago
14);
15
16export default app.fetch;

hono-utilsREADME.md1 match

@matt_hallway•Updated 2 days ago
14}))
15
16export default app.fetch
17```

hono-utilsmod.ts1 match

@matt_hallway•Updated 2 days ago
9 const getContent = async (url: string) => {
10 try {
11 const resp = await fetch(url)
12 if (!resp.ok) {
13 return null

paperang_printerindex.ts1 match

@dcm31•Updated 2 days ago
353});
354
355export default app.fetch;

paperang_printerutils.js2 matches

@dcm31•Updated 2 days ago
20 paperangProtocol.log(`Saving MAC address: ${macAddress}`, 'info');
21
22 const response = await fetch('/api/save-mac', {
23 method: 'POST',
24 headers: { 'Content-Type': 'application/json' },
45 paperangProtocol.log('Loading saved MAC address...', 'debug');
46
47 const response = await fetch('/api/get-mac');
48 const result = await response.json();
49

ctan-mirrormain.ts1 match

@aeaton•Updated 2 days ago
7 }
8
9 const result = await fetch(`https://mirrors.ctan.org/${path}`);
10 if (!result.ok) {
11 return new Response(result.statusText, { status: result.status });

bluetoothscannerindex.ts1 match

@dcm31•Updated 2 days ago
20});
21
22export default app.fetch;

HTTP_exampleshonoExample1 match

@eddloschi•Updated 2 days ago
4app.get("/", (c) => c.text("Hello from Hono!"));
5app.get("/yeah", (c) => c.text("Routing!"));
6export default app.fetch;

HTTP_examplesfetsExample1 match

@eddloschi•Updated 2 days ago
21});
22
23export default router.fetch;

socialDataSearchmain.tsx2 matches

@stevekrouse•Updated 2 days ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function socialDataSearch(query: string): Promise<SocialDataResponse> {
4 const url = new URL("https://stevekrouse-socialdataproxy.web.val.run/twitter/search");
5 url.searchParams.set("query", query);
6 return await fetchJSON(url.toString(), {
7 bearer: Deno.env.get("valtown"),
8 });

GithubPRFetcher

@andybak•Updated 2 days ago

proxiedfetch1 file match

@jayden•Updated 2 days ago