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=691&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 8997 results for "fetch"(2815ms)

blob_adminmain.tsx2 matches

@vawogbemi•Updated 11 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";
133});
134
135export default modifyFetchHandler(passwordAuth(app.fetch));

readwiseHighlightsmain.tsx1 match

@zerovox•Updated 11 months ago
12 }
13 console.log("Making export api request with params " + queryParams.toString());
14 const response = await fetch("https://readwise.io/api/v2/export/?" + queryParams.toString(), {
15 method: "GET",
16 headers: {

readwiseReaderDocumentListmain.tsx1 match

@zerovox•Updated 11 months ago
44 }
45 console.log("Making export api request with params " + queryParams.toString());
46 const response = await fetch("https://readwise.io/api/v3/list/?" + queryParams.toString(), {
47 method: "GET",
48 headers: {

readwiseReaderReadItemsRssmain.tsx1 match

@zerovox•Updated 11 months ago
8 // Later, if you want to get new documents updated after some date, do this:
9 // const docsAfterDate = new Date(Date.now() - 24 * 60 * 60 * 1000); // use your own stored date
10 // const newData = await fetchDocumentListApi(docsAfterDate.toISOString());
11
12 return new Response(dataToRSS(

readwiseReaderDocumentListREADME.md1 match

@zerovox•Updated 11 months ago
1Reader docs here: https://readwise.io/reader_api
2
3Adapted from the example code. Fetches items from Readwise Reader given a token, and optional updatedAfter and location parameters.

readwiseReaderReadItemsRssREADME.md1 match

@zerovox•Updated 11 months ago
5In order to get read items from Readwise Reader -> Workflowy, this turns the read items (aka "archive") into an RSS feed, which Zapier picks up, and creates bullets in Workflowy.
6
7Ideally would store the generated RSS or the last fetch date, and only get new items, but for now `readwiseReaderDocumentList` re-fetches the full history each time.

valTownChatGPTmain.tsx2 matches

@simonw•Updated 11 months ago
33
34 // Post the message so we can deal with large text data.
35 await fetch(`/post-message?threadId=${input.getAttribute("data-thread-id")}`, {
36 method: "post",
37 body: msgDiv.textContent,
147 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
148});
149export default app.fetch;

ivoryPorpoisemain.tsx1 match

@neverstew•Updated 11 months ago
75 });
76
77 self.addEventListener('fetch', (event) =>

fetchTodaysNytCxGridAndCluesmain.tsx4 matches

@plr•Updated 11 months ago
1import { fetchTodaysNytCxPuzzle } from "https://esm.town/v/plr/fetchTodaysNytCxPuzzle";
2import type { Puzzle, PuzzleContent } from "https://esm.town/v/plr/fetchTodaysNytCxPuzzle";
3
4const formatGrid = (
10};
11
12export const fetchTodaysNytCxGridAndClues = async (
13 { filled }: { filled: boolean } = { filled: false },
14): Promise<Pick<PuzzleContent, "grid" | "clues">> => {
15 const puzzle = await fetchTodaysNytCxPuzzle();
16 const grid = formatGrid(puzzle.content.grid, { filled });
17 const clues = puzzle.content.clues;

duckdbExampleREADME.md1 match

@yawnxyz•Updated 11 months ago
1# DuckDB
2
3[DuckDB](https://duckdb.org/) works on Val Town, with only one small tweak! We're basically using DuckDB in the same way you'd use it with a browser - using the WASM package with its dependencies fetched from [jsdelivr](https://www.jsdelivr.com/).
4
5The only trick is to create the worker ourselves rather than using `duckdb.createWorker`. DuckDB's built-in createWorker method doesn't specify a worker type, which causes `type` to default to `classic`, and Deno (our runtime) doesn't support classic workers.

TAC_FetchBasic2 file matches

@A7_OMC•Updated 4 hours ago

hn-fetch1 file match

@matija•Updated 6 hours ago