MCPcopy Create free account
hub / github.com/Swizec/article-threader / findKeyInsight

Function findKeyInsight

components/KeyInsight.tsx:6–24  ·  view source on GitHub ↗
(vars: { url: string })

Source from the content-addressed store, hash-verified

4import { usePlausible } from "next-plausible";
5
6export async function findKeyInsight(vars: { url: string }) {
7 const res = await fetch("/api/findKeyInsight", {
8 method: "POST",
9 headers: {
10 "Content-Type": "application/json",
11 },
12 mode: "cors",
13 redirect: "follow",
14 referrer: "https://whatispoint.xyz/extension",
15 referrerPolicy: "origin",
16 body: JSON.stringify(vars),
17 });
18
19 if (!res.ok) {
20 throw new Error("Failed to find key insight");
21 }
22
23 return res.text();
24}
25
26const HowItWorks = () => {
27 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected