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/?q=fetch&page=1036&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 12793 results for "fetch"(2192ms)

emailPostsmain.tsx4 matches

@stevedylandev•Updated 9 months ago
1import { email } from "https://esm.town/v/std/email?v=9";
2import { fetchIPFSPosts } from "https://esm.town/v/stevedylandev/fetchIpfsPosts";
3//import { fetchPinataPosts } from "https://esm.town/v/stevedylandev/fetchPinatsPosts";
4
5//const emailBody1 = await fetchPinataPosts();
6const emailBody2 = await fetchIPFSPosts();
7
8export let emailExample = email({

emailMeWhenBadAirQualitymain.tsx2 matches

@bcongdon•Updated 9 months ago
1import { lastRun } from "https://esm.town/v/logan/lastRun";
2import { fetch } from "https://esm.town/v/std/fetch";
3import { set } from "https://esm.town/v/std/set?v=11";
4import process from "node:process";
14 throw new Error("Must define WEATHER_BIT_API_KEY in secrets");
15 }
16 const res = await fetch(
17 `https://api.weatherbit.io/v2.0/current/airquality?lat=${lat}&lon=${long}&key=${apiKey}`,
18 );

spacex_migratedREADME.md1 match

@moe•Updated 9 months ago
2
3todo:
4- fetch and persist data on regular basis
5- display data from cache
6

featureflagsREADME.md2 matches

@fmac•Updated 9 months ago
25There are two endpoints:
26
27- `/` -- the root endpoint fetches all flags for the given user.
28- `/:id` -- fetches just one flag value, given by `:id`, for the given user.
29
30## Specifying users

featureflagsmain.tsx1 match

@fmac•Updated 9 months ago
112});
113
114export default app.fetch;

FetchBasicREADME.md2 matches

@hunty•Updated 9 months ago
1# Framer Fetch: Basic
2
3A basic example of an API endpoint to use with Framer Fetch.

comparableJadePtarmiganmain.tsx3 matches

@fahmi•Updated 9 months ago
4
5 try {
6 // Fetch the data from the Google Script URL
7 const response = await fetch(url);
8 const jsonData = await response.json();
9
30 });
31 } catch (error) {
32 return new Response("Failed to fetch data", { status: 500 });
33 }
34}

accessibleScarletToadmain.tsx3 matches

@fahmi•Updated 9 months ago
4
5 try {
6 // Fetch the data from the Google Script URL
7 const response = await fetch(url);
8 const jsonData = await response.json();
9
38 });
39 } catch (error) {
40 return new Response("Failed to fetch data", { status: 500 });
41 }
42}

probableMaroonGuanmain.tsx3 matches

@tempdev•Updated 9 months ago
555 module: mod,
556 bytes: buffer,
557 } = (url = fetch(url), void 0, await QN(await url, mod)),
558 assignWasm(url),
559 buffer);
610const getMeta = async (url: string) => {
611 console.log(url);
612 let resp = await fetch(url, {
613 "headers": {
614 "UserAgent": user_agent,
629 let getSourcesUrl = "https://rabbitstream.net/ajax/v2/embed-4/getSources?id=" + xrax + "&v="
630 + fake_window.localStorage.kversion + "&h=" + fake_window.localStorage.kid + "&b=1676800512";
631 let resp_json = await (await fetch(getSourcesUrl, {
632 "headers": {
633 "User-Agent": user_agent,

getWeathermain.tsx2 matches

@carts•Updated 9 months ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function getWeather(location: string): Promise<WeatherResponse> {
4 return fetchJSON(`https://wttr.in/${location}?format=j1`);
5}
6

fetch-socials4 file matches

@welson•Updated 2 days ago
fetch and archive my social posts

fetchRssForSubcurrent2 file matches

@ashryanio•Updated 2 days ago