isMyWebsiteDownmain.tsx2 matches
9let reason: string;
10try {
11const res = await fetch(URL, { redirect: "follow" });
12if (res.status !== 200) {
13reason = `(status code: ${res.status})`;
15}
16} catch (e) {
17reason = `couldn't fetch: ${e}`;
18ok = false;
19}
crypto_prices_infomain.tsx2 matches
45const getCryptoPrices = async () => {
6const response = await fetch(
7"https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids=bitcoin,ethereum,dogecoin,solana,binancecoin,ripple,pepe",
8{
52const telegramSendUrl =
53`https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage?chat_id=${TELEGRAM_CHAT_ID}&parse_mode=HTML&disable_notification=true&text=${text}`;
54await fetch(telegramSendUrl);
55};
56
smallboatsapimain.tsx2 matches
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=6";
2import { load } from "npm:cheerio";
34const html = await fetchText(
5"https://www.gov.uk/government/publications/migrants-detected-crossing-the-english-channel-in-small-boats/migrants-detected-crossing-the-english-channel-in-small-boats-last-7-days",
6);
sqliteExplorerAppmain.tsx4 matches
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
23import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
16import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken";
17import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
18import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
19import { Hono } from "npm:hono";
20import type { FC } from "npm:hono/jsx";
175});
176177export const handler = app.fetch;
178export default iframeHandler(modifyFetchHandler(passwordAuth(handler, { verifyPassword: verifyToken })));
1# Fetch Template
2Example template to quickly get started with a backend for Fetch in Framer.
streamwishmain.tsx2 matches
1import { fetch } from "https://esm.town/v/std/fetch";
23function unpack(p, a, c, k) {
13}
14export async function streamwish(ctx) {
15const _embed = await fetch(ctx.url);
16const embed = await _embed.text();
17const pr = /p}\('(.*?)',(\d+),(\d+),'(.*?)'\.split/gm;
1import { fetch as proxiedFetch } from "https://esm.town/v/std/fetch";
2import { customAlphabet } from "npm:nanoid";
3const nanoid = customAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 10);
7let url = ctx.url;
8if (ctx.url.includes("primewire")) {
9const request = await fetch(ctx.url);
10}
11const id = url.split("/d/")[1] || url.split("/e/")[1];
1213const doodDataReq = await fetch(
14`https://structural-sidonia-supergalaxy-4284f8da.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
15+ encodeURIComponent(`${baseUrl}/e/${id}`),
24const thumbnailTrack = doodData.match(/thumbnails:\s\{\s*vtt:\s'([^']*)'/);
25console.log(path);
26const doodPageReq = await fetch(
27`https://structural-sidonia-supergalaxy-4284f8da.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
28+ encodeURIComponent(`${baseUrl}/pass_md5${path}`),
94// if (Number(_) > 100000) throw new Error("limit reached");
95// await blob.set("streamtapeLimit", `${Number(_) + 1}`);
96const _embed = await proxiedFetch(
97`https://proxy-worker.thunderspeed.workers.dev/proxy?destination=${encodeURIComponent(ctx.url)}`,
98);
129130export async function streamium(ctx) {
131const _embed = await fetch(ctx.url);
132// https://pump.watchfree.ax/start-play?imdbid=tt11389872&name=apple&season=&episode=
133const embed = await _embed.text();
playMeASongmain.tsx1 match
246});
247248export default app.fetch;
getSpotifyTrackUrlmain.tsx1 match
6970// Search for the track
71const response = await fetch(`https://api.spotify.com/v1/search?q=${query}&type=track`, {
72headers: {
73"Authorization": `Bearer ${accessToken.access_token}`,