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/$%7Bsuccess?q=fetch&page=647&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 9134 results for "fetch"(2278ms)

vt_app_v3main.tsx1 match

@peterqliu•Updated 8 months ago
52app.route("/deleteAccount", deleteAccountRoute);
53
54export default app.fetch;

simpleLoginmain.tsx1 match

@yawnxyz•Updated 8 months ago
53});
54
55export default app.fetch;

zillowScrapermain.tsx2 matches

@rochambeau314•Updated 8 months ago
1// This scraper provides a simple HTML form to input a Zillow URL.
2// It then uses the fetch API to get the HTML content of the Zillow listing page,
3// parses it using cheerio to extract the required information,
4// and displays the results in a table.
26 if (zillowUrl) {
27 try {
28 const response = await fetch(zillowUrl);
29 const html = await response.text();
30 const $ = cheerio.load(html);

craigslistScrapermain.tsx3 matches

@rochambeau314•Updated 8 months ago
1// This approach will use the fetch API to get the Craigslist page content,
2// parse it using cheerio, extract the required information,
3// and render it in a table format. We'll use React for the client-side rendering.
16 setListing(null);
17 setError(null);
18 fetch(`/scrape?url=${encodeURIComponent(url)}`)
19 .then(response => response.json())
20 .then(data => setListing(data))
77 });
78 }
79 const response = await fetch(craigslistUrl);
80 const html = await response.text();
81

emailmain.tsx1 match

@aroyan•Updated 8 months ago
68 headers?: Record<string, string>;
69}) => {
70 let result = await fetch(
71 `${API_URL}/v1/email`,
72 {

selectHtmlREADME.md1 match

@yawnxyz•Updated 8 months ago
1SelectHtml is a Deno-based HTML scraper that integrates AI with Cheerio and Pug. This tool allows you to fetch, clean, and manipulate HTML content from URLs, using the Cheerio library to select and clean the HTML elements, and html2pug to convert HTML into Pug templates.
2
3Deprecated; use htmlTo instead, as that one supports more formats: https://www.val.town/v/yawnxyz/htmlTo

hnCloneOAuthmain.tsx1 match

@yawnxyz•Updated 8 months ago
188 try {
189 const tokens = await oauthClient.validateAuthorizationCode(code, codeVerifier);
190 const userInfoResponse = await fetch(this.config.services[service].userInfoUrl, {
191 headers: {
192 Authorization: `Bearer ${tokens.accessToken}`

discordWebhookmain.tsx2 matches

@stevekrouse•Updated 8 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const discordWebhook = async ({
8 content: string;
9}) => {
10 const res = await fetch(url, {
11 method: "POST",
12 redirect: "follow",

lucia_middlewaremain.tsx3 matches

@yawnxyz•Updated 8 months ago
246 try {
247 const tokens = await github.validateAuthorizationCode(code);
248 const githubUserResponse = await fetch("https://api.github.com/user", {
249 headers: {
250 Authorization: `Bearer ${tokens.accessToken}`
365
366 console.log('trying to get the user info: ', tokens)
367 const userInfoResponse = await fetch("https://openidconnect.googleapis.com/v1/userinfo", {
368 headers: {
369 Authorization: `Bearer ${tokens.accessToken}`
440 return response;
441 });
442 return app.fetch;
443};

easingbattlegroundmain.tsx7 matches

@ejfox•Updated 8 months ago
219
220 useEffect(() => {
221 fetchEasings();
222 }, []);
223
224 async function fetchEasings() {
225 const response = await fetch('/easings');
226 const data = await response.json();
227 setEasings(data);
229
230 async function submitEasing(newEasing) {
231 await fetch('/easings', {
232 method: 'POST',
233 headers: { 'Content-Type': 'application/json' },
234 body: JSON.stringify(newEasing)
235 });
236 fetchEasings();
237 }
238
239 async function vote(id, direction) {
240 await fetch(`/vote/${id}/${direction}`, { method: 'POST' });
241 setVotedEasings([...votedEasings, id]);
242 fetchEasings();
243 }
244

proxyFetch2 file matches

@vidar•Updated 16 hours ago

TAC_FetchBasic2 file matches

@A7_OMC•Updated 1 day ago