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/$%7Burl%7D?q=fetch&page=5&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 14486 results for "fetch"(1238ms)

FetchBasic2 file matches

@julesb22•Updated 8 months ago

FetchBasic_deleted_17295039551 file match

@julesb22•Updated 8 months ago

fetchValInfo2 file matches

@pomdtr•Updated 8 months ago

mlbScoreFetcher1 file match

@charmaine•Updated 8 months ago

ThreadmarkLISTFetcher22 file matches

@willthereader•Updated 8 months ago

ThreadmarkLISTFetcher1 file match

@willthereader•Updated 8 months ago

BrowserbaseFetcherFromURL1 file match

@willthereader•Updated 8 months ago

Fetch2 file matches

@niek•Updated 8 months ago

fetchTwitterUserInfoBroken1 file match

@shawnbasquiat•Updated 9 months ago

fetchIpfsPosts1 file match

@stevedylandev•Updated 10 months ago

cardamomparse.ts3 matches

@connnolly•Updated 39 mins ago
166 const { content: url } = await c.req.json() as ParseRequest;
167
168 // Fetch the webpage content
169 const response = await fetch(url);
170 if (!response.ok) {
171 return c.json({ success: false, error: "Failed to fetch URL" } as ParseResponse);
172 }
173

cardamomval-town.mdc3 matches

@connnolly•Updated 39 mins ago
221
222 // Inject data to avoid extra round-trips
223 const initialData = await fetchInitialData();
224 const dataScript = `<script>
225 window.__INITIAL_DATA__ = ${JSON.stringify(initialData)};
268
2695. **API Design:**
270 - `fetch` handler is the entry point for HTTP vals
271 - Run the Hono app with `export default app.fetch // This is the entry point for HTTP vals`
272
2736. **Hono Peculiarities:**