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=1020&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 13573 results for "fetch"(5608ms)

bskymain.tsx1 match

@stevekrouse•Updated 6 months ago
9 "https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=stevekrouse.com&filter=posts_no_replies";
10
11 const data: Feed = await fetch(url).then((r) => r.json());
12
13 return new Response(

funnyAmaranthCrabmain.tsx3 matches

@savinoventura•Updated 6 months ago
4};
5
6// Fetches a random joke.
7function fetchRandomJoke() {
8 const SAMPLE_JOKE = {
9 "setup": "What do you call a group of disorganized cats?",
14}
15
16const randomJoke = fetchRandomJoke();
17const setup = randomJoke.setup;
18const punchline = randomJoke.punchline;

valSessionmain.tsx2 matches

@maxm•Updated 6 months ago
28
29 try {
30 // Fetch user data
31 const resp = await client.me.profile.retrieve();
32 const token = jwt.sign(resp, privateKeyPem, { algorithm: "RS256", expiresIn: "1h" });
142}
143
144export default app.fetch.bind(app);

bskymain.tsx1 match

@wilhelm•Updated 6 months ago
8 const url = "https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=wilb.me&filter=posts_no_replies";
9
10 const data: Feed = await fetch(url).then((r) => r.json());
11
12 return new Response(

isAaronAtTheBadPlaceYetmain.tsx1 match

@karkowg•Updated 6 months ago
7 for (const handle of handles) {
8 try {
9 const response = await fetch(`https://bsky.social/xrpc/com.atproto.identity.resolveHandle?handle=${handle}`);
10
11 if (response.status === 200) {

peacefulYellowBoamain.tsx4 matches

@kevinmatula•Updated 6 months 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;

polishedCoffeeSlothmain.tsx3 matches

@obenga24•Updated 6 months ago
4};
5import { email } from "https://esm.town/v/std/email?v=9";
6// Fetches a random joke.
7function fetchRandomJoke() {
8 const SAMPLE_JOKE = {
9 "setup": "What do you call a group of disorganized cats?",
13 return SAMPLE_JOKE;
14}
15const randomJoke = fetchRandomJoke();
16const setup = randomJoke.setup;
17const punchline = randomJoke.punchline;

solidAquaHarriermain.tsx3 matches

@mcfarquad•Updated 6 months ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4function fetchRandomJoke() {
5 const SAMPLE_JOKE = {
6 "setup": "What do you call a group of disorganized cats?",
10}
11
12const randomJoke = fetchRandomJoke();
13const setup = randomJoke.setup;
14const punchline = randomJoke.punchline;

scientificSalmonBonobomain.tsx4 matches

@ugochionyejiaka•Updated 6 months ago
1// ... imports ...
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;

obedientPeachPheasantmain.tsx4 matches

@johncassidy18•Updated 6 months ago
2// ... imports ...
3
4// Fetches a random joke.
5async function fetchRandomJoke() {
6 const response = await fetch(
7 "https://official-joke-api.appspot.com/random_joke",
8 );
10}
11
12const randomJoke = await fetchRandomJoke();
13const setup = randomJoke.setup;
14const punchline = randomJoke.punchline;

FetchBasic2 file matches

@ther•Updated 5 hours ago

GithubPRFetcher

@andybak•Updated 3 days ago