From 51030632d0563cd8dd1bab1cda7c0b22291886d0 Mon Sep 17 00:00:00 2001 From: Alexa Amundson <118287761+blackboxprogramming@users.noreply.github.com> Date: Mon, 23 Feb 2026 00:23:07 -0600 Subject: [PATCH] feat: add verify page showing fact-check system --- app/(app)/verify/page.tsx | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 app/(app)/verify/page.tsx diff --git a/app/(app)/verify/page.tsx b/app/(app)/verify/page.tsx new file mode 100644 index 0000000..eef5e31 --- /dev/null +++ b/app/(app)/verify/page.tsx @@ -0,0 +1,65 @@ +async function getVerifyStats() { + try { + const res = await fetch("https://verify.blackroad.io/facts", { next: { revalidate: 60 } }) + return res.ok ? res.json() : null + } catch { return null } +} + +export default async function VerifyPage() { + const data = await getVerifyStats() + + return ( +
+
+

✅ Verify

+

Information verification and fact-checking system

+
+ +
+
+
Known Facts
+
{data?.count ?? "—"}
+
+
+
Status
+
{data ? "Online" : "—"}
+
+
+ + {data?.facts && ( +
+

Verified Facts

+
+ {Object.entries(data.facts).map(([key, val]) => ( +
+ {key} + {String(val)} +
+ ))} +
+
+ )} + +
+

API Endpoints

+
+ {[ + ["GET", "/health", "Service health check"], + ["GET", "/facts", "List known facts"], + ["POST", "/verify/url", "Verify URL reachability"], + ["POST", "/verify/claim", "Fact-check a claim"], + ["POST", "/verify/schema", "Validate JSON/YAML"], + ["POST", "/verify/batch", "Batch verify multiple items"], + ].map(([method, path, desc]) => ( +
+ {method} + {path} + {desc} +
+ ))} +
+

Base URL: https://verify.blackroad.io

+
+
+ ) +}