Skip to content

Add SEO features: sitemap, robots.txt, and JSON-LD data#63

Merged
truthixify merged 2 commits into
wraith-protocol:developfrom
Dubemtopsite:sitemap-robot-json-23
Jun 29, 2026
Merged

Add SEO features: sitemap, robots.txt, and JSON-LD data#63
truthixify merged 2 commits into
wraith-protocol:developfrom
Dubemtopsite:sitemap-robot-json-23

Conversation

@Dubemtopsite

Copy link
Copy Markdown
Contributor

PR Description: feat(seo): Add Sitemap, Robots.txt, and JSON-LD Structured Data

Closes #23

This PR implements a comprehensive SEO and structured data setup for Wraith Protocol, including automated sitemap generation, crawl guidelines via robots.txt, rich JSON-LD schema objects, and page-specific metadata injection during the build process.


🚀 Key Changes

1. 🤖 Crawl & Indexing Configuration

  • Added public/robots.txt: Declares default crawler behaviors (allowing indexation on all routes) and points search engines to the location of the XML sitemap.

2. 🗺️ Automated Sitemap Generation

  • Added scripts/sitemap.ts: A node script that scans the built production assets in dist/ and dynamically generates a sitemap.xml matching all active static routes (such as /, /blog, /compare, /faq, /privacy, /stellar, /use-cases).
  • Output Targets: Writes sitemap.xml to both dist/ (for immediate hosting/deployment) and public/ (for version control and dev previews).

3. 🏷️ Structured Data (JSON-LD) & Page Metadata Patching

  • Global Schema: Embedded global structured schemas inside index.html for search engines to recognize:
    • Organization: Represents Wraith Protocol (defining logo, site URL, and social presence).
    • SoftwareApplication: Represents the Wraith Protocol SDK (detailing package category, supported platforms, download URL on npm, and free licensing details).
  • Dynamic Page Patching (scripts/og.ts):
    • Upgraded the OG card generator script to not only patch images, but also patch titles, descriptions, and breadcrumb structures dynamically on a per-page basis.
    • Injects a unique BreadcrumbList schema dynamically matching the hierarchy of the subpages (e.g. Home -> Stellar on the /stellar route).

4. ⚙️ Build Pipeline Integration & Documentation

  • Updated package.json: Appended the sitemap script tsx scripts/sitemap.ts to the build script execution sequence, ensuring SEO artifacts are automatically built alongside distribution assets.
  • Updated README.md: Added dedicated sections describing the updated build steps and documenting how robots.txt, sitemap.xml, and JSON-LD structures operate.

🛠️ File-by-File Breakdown

  • public/robots.txt [NEW]: Configures crawler directives and registers the sitemap path.
  • public/sitemap.xml [NEW]: Static placeholder sitemap containing existing routes.
  • scripts/sitemap.ts [NEW]: Compiles the list of production routes and outputs a fresh sitemap.
  • index.html [MODIFY]: Added main Organization and SoftwareApplication JSON-LD schema blocks, plus a container script tag for the breadcrumbs.
  • scripts/og.ts [MODIFY]: Expanded OG logic to patchMetadata including custom HTML page titles, description tags, and dynamic route breadcrumbs.
  • package.json [MODIFY]: Runs scripts/sitemap.ts on standard build workflows.
  • README.md [MODIFY]: Documented build pipeline additions and details about SEO metadata files.

🧪 Verification & Testing

  1. Run a clean production build:
    pnpm build

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Dubemtopsite is attempting to deploy a commit to the truthixify's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Dubemtopsite Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify

Copy link
Copy Markdown
Contributor

Clean merge. Sitemap + robots.txt + JSON-LD via scripts + README update + index.html SEO meta. Same-day delivery on yesterday's assignment. Thanks @Dubemtopsite.

@truthixify truthixify merged commit 109c34b into wraith-protocol:develop Jun 29, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sitemap.xml + robots.txt + JSON-LD structured data

2 participants