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/image-url.jpg%20%22Optional%20title%22?q=fetch&page=789&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 9927 results for "fetch"(1975ms)

pinkBearmain.tsx1 match

@iamseeley•Updated 11 months ago
5
6export const resumeConfig = {
7 // URL to fetch the resume JSON data. This should point to your raw resume JSON.
8 // If you want to host your resume JSON somewhere I recommend a setup like this on val town (https://www.val.town/v/iamseeley/resumeDetails) or a github gist.
9 // You can test out the resume view using my resume: https://iamseeley-resumedetails.web.val.run

turquoiseSkunkmain.tsx1 match

@iamseeley•Updated 11 months ago
5
6export const resumeConfig = {
7 // URL to fetch the resume JSON data. This should point to your raw resume JSON.
8 // If you want to host your resume JSON somewhere I recommend a setup like this on val town (https://www.val.town/v/iamseeley/resumeDetails) or a github gist.
9 // You can test out the resume view using my resume: https://iamseeley-resumedetails.web.val.run

purpleKangaroomain.tsx2 matches

@willthereader•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;

chocolateCanidmain.tsx2 matches

@willthereader•Updated 11 months ago
32 // Post the message so we can deal with large text data.
33 try {
34 await fetch(`/post-message?threadId=${input.getAttribute("data-thread-id")}`, {
35 method: "post",
36 body: msgDiv.textContent,
169});
170
171export default app.fetch;

coralCarpmain.tsx1 match

@willthereader•Updated 11 months ago
133 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
134});
135export default app.fetch;

emeraldRaccoonmain.tsx1 match

@willthereader•Updated 11 months ago
133 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
134});
135export default app.fetch;

valTownChatGPTmain.tsx1 match

@willthereader•Updated 11 months ago
133 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
134});
135export default app.fetch;

zwjEmojimain.tsx2 matches

@stevekrouse•Updated 11 months ago
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
2
3const EMOJI_DATA_URL = "https://unicode.org/Public/emoji/15.1/emoji-zwj-sequences.txt";
4
5export async function getCompoundEmojis(): Promise<string[]> {
6 const data = await fetchText(EMOJI_DATA_URL);
7 let result: string[] = [];
8 const lines = data.split("\n");

getContentFromUrlmain.tsx4 matches

@willthereader•Updated 11 months ago
12 }
13 url = "https://r.jina.ai/" + url
14 const response = await fetch(url);
15 if (!response.ok) {
16 throw new Error(`HTTP error! Status: ${response.status}`);
19 return data;
20 } catch (error) {
21 console.error('Error fetching the URL:', error);
22 return 'Error fetching the content.';
23 }
24};
129});
130
131export default app.fetch;
132

valBackupmain.tsx7 matches

@iamseeley•Updated 11 months ago
10const gitHubAPI = new GitHubAPI(GITHUB_TOKEN);
11
12async function fetchVals() {
13 const response = await valTownAPI.getAllVals();
14 return response.data;
16
17async function getExistingFiles() {
18 console.log(`Fetching existing files from repo: ${GITHUB_REPO}, branch: ${GITHUB_BRANCH}`);
19 try {
20 const response = await gitHubAPI.getRepoContent(GITHUB_REPO, "", GITHUB_BRANCH);
22 return response.map(file => file.path);
23 } catch (error) {
24 console.error(`Error fetching repo content: ${error.message}`);
25 throw error;
26 }
48 const shaResponse = await gitHubAPI.getRepoContent(GITHUB_REPO, filePath, GITHUB_BRANCH);
49 const sha = shaResponse.sha;
50 console.log(`Fetched SHA for ${filePath}: ${sha}`);
51 if (!sha) {
52 throw new Error(`Failed to fetch SHA for ${filePath}`);
53 }
54 await gitHubAPI.updateFile(GITHUB_REPO, filePath, fileContent, sha, commitMessage, GITHUB_BRANCH);
72
73async function backupVals() {
74 const vals = await fetchVals();
75 const lastBackupDates = await getLastBackupDates();
76 const allValsDetails = [];
105
106export async function runBackupIfChanged() {
107 const vals = await fetchVals();
108 const lastBackupDates = await getLastBackupDates();
109

agentplex-deal-flow-email-fetch1 file match

@anandvc•Updated 2 days ago

proxyFetch2 file matches

@vidar•Updated 4 days ago