From 299a021349f8fee4ca1eed1e4d03437248e6431c Mon Sep 17 00:00:00 2001 From: bokiko Date: Fri, 20 Mar 2026 01:23:52 +0000 Subject: [PATCH] feat(seo): add GEO/SEO optimizations for AI search visibility - Add llms.txt for AI crawler discoverability - Add AI crawler rules to robots.txt (GPTBot, ClaudeBot, etc.) - Add dynamic OG image via Next.js ImageResponse API - Remove fake aggregateRating from schema - Add FAQPage structured data (5 gaming-relevant FAQs) - Add twitter:site and twitter:creator meta tags --- web/public/llms.txt | 40 +++++++++ web/src/app/layout.tsx | 62 ++++++++++++-- web/src/app/opengraph-image.tsx | 143 ++++++++++++++++++++++++++++++++ web/src/app/robots.ts | 27 ++++-- 4 files changed, 260 insertions(+), 12 deletions(-) create mode 100644 web/public/llms.txt create mode 100644 web/src/app/opengraph-image.tsx diff --git a/web/public/llms.txt b/web/public/llms.txt new file mode 100644 index 0000000..f730e18 --- /dev/null +++ b/web/public/llms.txt @@ -0,0 +1,40 @@ +# PingDiff + +> Test your ping, packet loss, and jitter to game servers before you queue. Know your connection. Win more games. + +PingDiff is a free, open-source game server connection testing tool. It lets gamers test their network quality (ping, packet loss, jitter) to real game server IPs using ICMP ping — without launching the game. + +## Key Facts + +- **Supported Games (9):** Valorant, CS2, Overwatch 2, Call of Duty, Apex Legends, Fortnite, League of Legends, Battlefield 6, Marvel Rivals +- **Server Coverage:** 141 servers across EU, NA, Asia, South America, and Middle East +- **Platforms:** Web app (pingdiff.com) + Windows desktop app +- **Tech Stack:** Next.js (web), Python/Tkinter (desktop), TypeScript, Tailwind CSS +- **License:** MIT — 100% free and open source +- **Privacy:** No tracking by default. Optional anonymous data sharing for community insights. + +## Links + +- Website: https://pingdiff.com +- Download Desktop App: https://pingdiff.com/download +- Dashboard: https://pingdiff.com/dashboard +- GitHub: https://github.com/bokiko/pingdiff + +## How It Works + +1. Select a game from the supported list +2. PingDiff tests your connection to real game server IPs +3. Get results showing ping (latency), packet loss, and jitter +4. See which server region gives you the best connection +5. Optionally share anonymous results to help the community + +## FAQ + +### How do I test my ping before playing? +PingDiff tests real game server IPs using ICMP ping. Select your game, pick a region, and get instant results — no game launch required. + +### Is PingDiff free? +Yes, 100% free and open source under the MIT license. No ads, no premium tiers. + +### What data does PingDiff collect? +None by default. You can optionally share anonymous ping data to help build community connection insights. diff --git a/web/src/app/layout.tsx b/web/src/app/layout.tsx index 7add92e..b798fda 100644 --- a/web/src/app/layout.tsx +++ b/web/src/app/layout.tsx @@ -28,7 +28,7 @@ export const metadata: Metadata = { type: "website", images: [ { - url: "/og-image.svg", + url: "/opengraph-image", width: 1200, height: 630, alt: "PingDiff - Know Your Connection Before You Queue", @@ -39,7 +39,9 @@ export const metadata: Metadata = { card: "summary_large_image", title: "PingDiff - Know Your Connection Before You Queue", description: "Test your ping to game servers without launching the game.", - images: ["/og-image.svg"], + images: ["/opengraph-image"], + site: "@pingdiff", + creator: "@pingdiff", }, robots: { index: true, @@ -71,11 +73,53 @@ const jsonLd = { price: "0", priceCurrency: "USD", }, - aggregateRating: { - "@type": "AggregateRating", - ratingValue: "5", - ratingCount: "100", - }, +}; + +const faqJsonLd = { + "@context": "https://schema.org", + "@type": "FAQPage", + mainEntity: [ + { + "@type": "Question", + name: "How do I test my ping before playing?", + acceptedAnswer: { + "@type": "Answer", + text: "PingDiff tests real game server IPs using ICMP ping. Select your game, pick a region, and get instant results showing your ping, packet loss, and jitter — no game launch required.", + }, + }, + { + "@type": "Question", + name: "What games does PingDiff support?", + acceptedAnswer: { + "@type": "Answer", + text: "PingDiff supports 9 games: Valorant, CS2 (Counter-Strike 2), Overwatch 2, Call of Duty, Apex Legends, Fortnite, League of Legends, Battlefield 6, and Marvel Rivals.", + }, + }, + { + "@type": "Question", + name: "Is PingDiff free?", + acceptedAnswer: { + "@type": "Answer", + text: "Yes, PingDiff is 100% free and open source under the MIT license. There are no ads, no premium tiers, and no hidden costs.", + }, + }, + { + "@type": "Question", + name: "Does PingDiff track my data?", + acceptedAnswer: { + "@type": "Answer", + text: "No, PingDiff is privacy-first. There is no tracking by default. You can optionally enable anonymous data sharing to contribute community connection insights, but this is entirely opt-in.", + }, + }, + { + "@type": "Question", + name: "What regions can I test?", + acceptedAnswer: { + "@type": "Answer", + text: "PingDiff covers EU, NA, Asia, South America, and Middle East regions with 141 servers worldwide. You can test your connection to any supported server to find the best region for your game.", + }, + }, + ], }; export default function RootLayout({ @@ -90,6 +134,10 @@ export default function RootLayout({ type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} /> +