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/$%7Bsuccess?q=fetch&page=621&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 9289 results for "fetch"(1180ms)

jubilantMagentaMitemain.tsx3 matches

@youchen•Updated 6 months ago
30
31 modifiedRequest.headers.set("Referer", `${EMBY_SERVER}/web/index.html`);
32 return fetch(modifiedRequest);
33 }
34 }
47 modifiedRequest.headers.set("Connection", request.headers.get("Connection") || "close");
48
49 return fetch(modifiedRequest);
50}
51
52addEventListener("fetch", event => {
53 event.respondWith(handleRequest(event.request));
54});

fetchXMLREADME.md1 match

@g000m•Updated 6 months ago
1Migrated from folder: utils/fetchXML

sendxmppmain.tsx1 match

@singpolyma•Updated 6 months ago
1export default async function sendxmpp(target: string, body: string) {
2 await fetch("https://singpolyma-sendxmppapi.web.val.run", {
3 method: "POST",
4 body: JSON.stringify({ target, body })

blob_adminmain.tsx2 matches

@car•Updated 6 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));

handlermain.tsx1 match

@temptemp•Updated 6 months ago
60}
61async function getMeta(imdbId: string): Promise<Meta> {
62 const searchResult = await fetch(`${primewireBase}/api/v1/show?key=${primewireApiKey}&imdb_id=${imdbId}`);
63 return await searchResult.json() as Meta;
64}

crossmintSolanaTxGeneratormain.tsx1 match

@alfongj•Updated 6 months ago
29 setLoading(true);
30 try {
31 const res = await fetch("/generate", {
32 method: "POST",
33 headers: { "Content-Type": "application/json" },

sendxmppapiREADME.md1 match

@singpolyma•Updated 6 months ago
4
5```js
6await fetch("https://singpolyma-sendxmppapi.web.val.run", {
7 method: "POST",
8 body: JSON.stringify({ target: "someone@example.com", body: "Hello!" })

worthyCyanRoundwormmain.tsx2 matches

@vawogbemi•Updated 6 months ago
246 e.preventDefault();
247 const finalAmount = showCustomAmount ? parseFloat(customAmount) : amount;
248 const response = await fetch("/create-checkout-session", {
249 method: "POST",
250 headers: { "Content-Type": "application/json" },
504 }
505
506 // Fetch all tips for the root endpoint
507 const allTips = await sqlite.execute(
508 `SELECT name, amount, comment, timestamp FROM ${KEY}_payments_${SCHEMA_VERSION} ORDER BY amount DESC`,

forbearingAmethystToadmain.tsx2 matches

@vawogbemi•Updated 6 months ago
246 e.preventDefault();
247 const finalAmount = showCustomAmount ? parseFloat(customAmount) : amount;
248 const response = await fetch("/create-checkout-session", {
249 method: "POST",
250 headers: { "Content-Type": "application/json" },
504 }
505
506 // Fetch all tips for the root endpoint
507 const allTips = await sqlite.execute(
508 `SELECT name, amount, comment, timestamp FROM ${KEY}_payments_${SCHEMA_VERSION} ORDER BY amount DESC`,

fluentAmberHyenamain.tsx7 matches

@deepmojo•Updated 6 months ago
9 const [error, setError] = useState("");
10
11 const fetchCrawlResults = async () => {
12 setLoading(true);
13 setError("");
14 try {
15 const res = await fetch(`${window.location.href}api/map`, {
16 method: "POST",
17 headers: {
27 }
28 } catch (error) {
29 console.error("Error fetching crawl results:", error);
30 setError(`Error: ${error.message}`);
31 } finally {
52 />
53 <button
54 onClick={fetchCrawlResults}
55 disabled={loading || !domain}
56 style={{
110
111 try {
112 const response = await fetch("https://api.firecrawl.dev/v1/map", {
113 method: "POST",
114 headers: {
121 const data = await response.json();
122 if (!response.ok) {
123 return Response.json({ error: data.message || "Failed to fetch data" }, { status: response.status });
124 }
125
126 return Response.json(data);
127 } catch (error) {
128 console.error("Error fetching data:", error);
129 return Response.json({ error: "Internal server error" }, { status: 500 });
130 }

proxyFetch2 file matches

@vidar•Updated 1 day ago

TAC_FetchBasic2 file matches

@A7_OMC•Updated 2 days ago