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/$%7Bart_info.art.src%7D?q=fetch&page=912&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 10218 results for "fetch"(2149ms)

emailRandomJokemain.tsx4 matches

@priya_singh_14•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

emailRandomJokemain.tsx4 matches

@shellypao•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

emailRandomJokemain.tsx4 matches

@madi_singlak•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

emailRandomJokemain.tsx4 matches

@pjc8889•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

emailRandomJokemain.tsx4 matches

@aku7703•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

rateLimitedAsyncPoolREADME.md3 matches

@harryhood•Updated 1 year ago
6
7```
8async function fetchURL(url: string): Promise<string[]> {
9 const response = await fetch(url);
10 const html = await response.text();
11 const urls = extractUrlsFromResponse(html);
14
15const allUrls = (await rateLimitedAsyncPool(
16 ["url1", "url2", "url3"], 2, fetchURL, 500
17)).flat();
18```

emailSubscriptionREADME.md3 matches

@petermillspaugh•Updated 1 year ago
93. Add an HTML form to your frontend that calls `/send-verification`, or just use `/` to return a simple HTML form
104. Add a confirmation page on the frontend that calls `/confirm-verification`
115. Fork sibling Vals to [get verification email markup](https://www.val.town/v/petermillspaugh/fetchVerificationEmailHtml), [send verification emails](https://www.val.town/v/petermillspaugh/sendVerificationEmail), [create a list of newsletters](https://www.val.town/v/petermillspaugh/newsletters), [create a newsletter template](https://www.val.town/v/petermillspaugh/generateNewsletterJsx), [create an individual newsletter](https://www.val.town/v/petermillspaugh/january2024), [send test emails](https://www.val.town/v/petermillspaugh/sendTestEmailNewsletter), [send emails](https://www.val.town/v/petermillspaugh/sendEmailNewsletter), and [handle unsubscribe](https://www.val.town/v/petermillspaugh/unsubscribeFromNewsletter)
126. Optionally, fork cousin Vals to [view subscribers](https://www.val.town/v/petermillspaugh/getSubscribers), [email yourself daily subscriber count](https://www.val.town/v/petermillspaugh/dailySubscriptionStats), [email yourself a reminder to write your next newsletter](https://www.val.town/v/petermillspaugh/sendNewsletterReminder), and [send test emails](https://www.val.town/v/petermillspaugh/sendTestEmailNewsletter)
13
30 formData.append("email", email);
31
32 await fetch("https://petermillspaugh-emailSubscription.web.val.run/send-verification", {
33 method: "POST",
34 body: formData,
78 if (!email || !token) return;
79
80 const response = await fetch(`https://petermillspaugh-emailSubscription.web.val.run/confirm-verification?email=${email}&token=${token}`, {
81 method: "PUT",
82 });

oldfashionedmain.tsx1 match

@tmcw•Updated 1 year ago
432});
433
434export const oldfashioned = app.fetch;

emailRandomJokemain.tsx4 matches

@gab0503•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

emailRandomJokemain.tsx4 matches

@linafu2•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

agentplex-deal-flow-email-fetch1 file match

@anandvc•Updated 4 days ago

proxyFetch2 file matches

@vidar•Updated 6 days ago