bumpyGreenAntelopeREADME.md2 matches
1# Fetch Template
2Example template to quickly get started with a backend for Fetch in Framer.
IsNDRRMCDownmain.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}
115const body = await req.json() as { $key: string };
116body.$key = $key;
117const response = await fetch(endpointURL, {
118method: "POST",
119headers: {
umbrellaRemindermain.tsx2 matches
1import { email } from "https://esm.town/v/std/email?v=9";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3import { nominatimSearch } from "https://esm.town/v/stevekrouse/nominatimSearch";
4import { weatherGovGrid } from "https://esm.town/v/stevekrouse/weatherGovGrid";
14lon,
15});
16let { properties: { periods } } = await fetchJSON(
17grid.forecastHourly,
18);
43app.get("/", (c) => c.html(<ValTownLink />));
4445export default app.fetch;
featureflagsREADME.md2 matches
25There are two endpoints:
2627- `/` -- the root endpoint fetches all flags for the given user.
28- `/:id` -- fetches just one flag value, given by `:id`, for the given user.
2930## Specifying users
1011const results = [];
12const metaResponse = await fetch(
13`https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=https://api.malsync.moe/mal/anime/${id}`,
14);
22const episodeIdentifier = `${data.identifier}-episode-${ep}`;
23return [
24fetch(`https://animetize-api.vercel.app/servers/${episodeIdentifier}`),
25fetch(`https://animetize-api.vercel.app/watch/${episodeIdentifier}`),
26];
27}
158159const results = [];
160const metaResponse = await fetch(
161`https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=https://api.malsync.moe/mal/anime/${id}`,
162);
169const episodeIdentifier = `${data.identifier}-episode-${ep}`;
170return [
171fetch(`https://animetize-api.vercel.app/servers/${episodeIdentifier}`),
172fetch(`https://animetize-api.vercel.app/watch/${episodeIdentifier}`),
173];
174}
222);
223});
224export default app.fetch;
scarletSolemain.tsx3 matches
32url: "https://d000d.com/e/9x3w3pu0xemy",
33};
34const req = await fetch("http://turnsolver.pythonanywhere.com/solve", {
35method: "POST",
36headers: { "Content-Type": "application/json" },
39const tokenReq = await req.json();
40const token = tokenReq.token;
41const ver = await fetch(
42`https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
43+ encodeURIComponent(`https://d0000d.com/dood?op=validate&gc_response=${token}`),
66return c.json({ worked: true });
67});
68export default app.fetch;
1import { fetch as proxiedFetch } from "https://esm.town/v/std/fetch";
2import { customAlphabet } from "npm:nanoid";
3const nanoid = customAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 10);
8const id = url.split("/e/")[1];
910const doodDataReq = await fetch(
11`https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
12+ encodeURIComponent(`${url}`),
19const path = doodData.match(/\$\.get\('\/pass_md5([^']+)/)?.[1];
20const thumbnailTrack = doodData.match(/thumbnails:\s\{\s*vtt:\s'([^']*)'/);
21const doodPageReq = await fetch(
22`https://cool-proxy.koyeb.app/hdiuhmalkmc9d0ck7UCFVGBJHN?destination=`
23+ encodeURIComponent(`${baseUrl}/pass_md5${path}`),
70}
71export async function streamwish(ctx) {
72const _embed = await fetch(ctx.url);
73const embed = await _embed.text();
74console.log(embed);
134// if (Number(_) > 100000) throw new Error("limit reached");
135// await blob.set("streamtapeLimit", `${Number(_) + 1}`);
136const _embed = await proxiedFetch(
137`https://proxy-worker.thunderspeed.workers.dev/proxy?destination=${encodeURIComponent(ctx.url)}`,
138);
169170export async function streamium(ctx) {
171const _embed = await fetch(ctx.url);
172// https://pump.watchfree.ax/start-play?imdbid=tt11389872&name=apple&season=&episode=
173const embed = await _embed.text();