Fetches my articles from Readwise. Syncs with/ Neon + Instapaper
simple proxy to fetch http urls using https
251 }
252
253 const response = await fetch(\`/api/run-agent/\${agentName}\`, {
254 method: 'POST',
255 headers: { 'Content-Type': 'application/json' },
382app.get("/", (c) => {
383 const sourceUrl = new URL(c.req.url);
384 // Ensure the URL is clean for the script's fetch calls (no path, no query)
385 const baseUrl = `https://${sourceUrl.hostname}`;
386 return c.html(generateHtml(baseUrl));
387});
388
389export default app.fetch;
17 const start = performance.now();
18 try {
19 res = await fetch(url);
20 end = performance.now();
21 status = res.status;
27 } catch (e) {
28 end = performance.now();
29 reason = `couldn't fetch: ${e}`;
30 ok = false;
31 }