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=18&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"(2193ms)

fetchRss2 file matches

@pdebie•Updated 1 year ago

proxyFetch42 file matches

@alp•Updated 1 year ago

fetchJSON1 file match

@dvergin•Updated 1 year ago

fetchBcycleCounts1 file match

@jonbo•Updated 1 year ago

cardamomparse.ts3 matches

@connnolly•Updated 52 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 52 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:**