Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

feat(web): publish a sitemap and the FAQ as structured data

leepokai3425a4f5e9fd
diff --git a/web/app/components/questions.tsx b/web/app/components/questions.tsx
index 20f3defa..3bed8a8d 100644
--- a/web/app/components/questions.tsx
+++ b/web/app/components/questions.tsx
@@ -37,9 +37,24 @@ const questions: [string, string][] = [
],
];
+// The same questions as FAQPage structured data, so search and AI answers can quote them.
+const faqJsonLd = {
+ "@context": "https://schema.org",
+ "@type": "FAQPage",
+ mainEntity: questions.map(([q, a]) => ({
+ "@type": "Question",
+ name: q,
+ acceptedAnswer: { "@type": "Answer", text: a },
+ })),
+};
+
export default function Questions() {
return (
<section id="questions" className="px-4 py-20 sm:px-6 md:py-28">
+ <script
+ type="application/ld+json"
+ dangerouslySetInnerHTML={{ __html: JSON.stringify(faqJsonLd).replace(/</g, "\\u003c") }}
+ />
<div className="mx-auto grid max-w-6xl grid-cols-1 gap-10 md:grid-cols-[1fr_1.4fr] md:gap-20">
<Reveal>
<h2 className="text-3xl font-semibold tracking-tight text-neutral-50 md:text-4xl">Questions</h2>
diff --git a/web/app/sitemap.ts b/web/app/sitemap.ts
new file mode 100644
index 00000000..9f2b8782
--- /dev/null
+++ b/web/app/sitemap.ts
@@ -0,0 +1,16 @@
+import type { MetadataRoute } from "next";
+import { rivals } from "./compare/rivals";
+import { SITE } from "./site";
+
+export const dynamic = "force-static";
+
+export default function sitemap(): MetadataRoute.Sitemap {
+ const pages: [path: string, priority: number][] = [
+ ["", 1],
+ ["/compare", 0.8],
+ ...rivals.map((r): [string, number] => [`/compare/${r.slug}`, 0.7]),
+ ["/privacy", 0.2],
+ ["/terms", 0.2],
+ ];
+ return pages.map(([path, priority]) => ({ url: `${SITE}${path}`, lastModified: new Date(), priority }));
+}