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=2&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 14160 results for "fetch"(1958ms)

agentplex-deal-flow-email-fetch1 file match

@anandvc•Updated 4 weeks ago

proxyFetch2 file matches

@vidar•Updated 1 month ago

TAC_FetchBasic2 file matches

@A7_OMC•Updated 1 month ago

hn-fetch1 file match

@matija•Updated 1 month ago

fetchPaginatedData2 file matches

@nbbaier•Updated 1 month ago

FetchBasic1 file match

@fredmoon•Updated 1 month ago

tweetFetcher2 file matches

@nbbaier•Updated 1 month ago

fetchAndStoreOpenAiUsage22 file matches

@nbbaier•Updated 1 month ago

fetchRss2 file matches

@pierremenard•Updated 1 month ago

fetchAndConvertToWebP1 file match

@AIWB•Updated 2 months ago

huyhieumain.js13 matches

@lanly•Updated 49 mins ago
31 <pre><code>/huyhieu?url=&lt;website&gt;&label=&lt;label&gt;&value=&lt;value&gt;&color=&lt;color&gt;&text=&lt;textColor&gt;&size=&lt;size&gt;</code></pre>
32 <ul>
33 <li><b>url</b> (optional): Website to fetch favicon from</li>
34 <li><b>label</b> (optional): Left text (default: 'huy' if both label and value are missing)</li>
35 <li><b>value</b> (optional): Right text (default: 'hieu' if both label and value are missing)</li>
98 const urlObj = new URL('https://' + siteUrl)
99 const faviconUrl = `${urlObj.origin}/favicon.ico`
100 const res = await fetch(faviconUrl)
101 if (res.ok) {
102 const buffer = new Uint8Array(await res.arrayBuffer())
105 }
106 } catch {
107 console.error('HuyHieu: Failed to fetch favicon:', siteUrl)
108 faviconDataUrl = null // Fallback to no favicon if fetch fails
109 }
110 }
201 const borderRadius = radiusParam !== undefined ? Number(radiusParam) : 0
202
203 // Fetch VS Marketplace favicon
204 try {
205 const faviconUrl = 'https://marketplace.visualstudio.com/favicon.ico'
206 const res = await fetch(faviconUrl)
207 if (res.ok) {
208 const buffer = new Uint8Array(await res.arrayBuffer())
211 }
212 } catch (error) {
213 console.error('Failed to fetch VS Marketplace favicon:', error)
214 }
215
216 // Fetch stats from VS Marketplace API
217 try {
218 // Use the correct VS Marketplace Gallery API with POST method
219 const apiUrl = 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery'
220 console.log('Fetching extension stats for:', namespace)
221
222 const requestBody = {
234 }
235
236 const response = await fetch(apiUrl, {
237 method: 'POST',
238 headers: {
282 }
283 } catch (error) {
284 console.error('Failed to fetch VS Marketplace stats:', error)
285 value = 'Error'
286 }
335})
336
337export default app.fetch
338// Serve the app in local to test
339Deno.serve(app.fetch)
340

test-apns-voip-notimain.tsx1 match

@rafaelortizzableh•Updated 1 hour ago
58
59 // 3. Send the request to the APNs server.
60 const apnsResponse = await fetch(
61 // The APNs endpoint includes the target device token.
62 `${endpoint}/${deviceToken}`,