Skip to content

Complete SoftwareApplication JSON-LD structured data for Next.js root layout#85

Merged
naheel0 merged 2 commits intomainfrom
copilot/add-json-ld-structured-data
Mar 11, 2026
Merged

Complete SoftwareApplication JSON-LD structured data for Next.js root layout#85
naheel0 merged 2 commits intomainfrom
copilot/add-json-ld-structured-data

Conversation

Copy link
Contributor

Copilot AI commented Mar 11, 2026

The existing SoftwareApplication JSON-LD in layout.tsx was a minimal stub — missing fields required for rich search results and full schema.org compliance.

Changes

  • New fields added to softwareAppJsonLd:

    • applicationSubCategory: "Documentation Generator"
    • screenshot — app preview image URL
    • softwareVersion — dynamically read from package.json via resolveJsonModule (single source of truth)
    • datePublished, inLanguage
    • keywords — comma-separated search terms
    • authorOrganization node pointing to BeyteFlow's GitHub
    • offers.availability: "https://schema.org/OnlineOnly" + offers.url
    • sameAs: ["https://github.com/BeyteFlow/ReadmeGenAI"]
    • Two additional featureList entries
  • Import package.json to source softwareVersion automatically instead of hardcoding it.

import pkg from "../../package.json";

const softwareAppJsonLd = {
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  name: "ReadmeGenAI",
  applicationCategory: "DeveloperTool",
  applicationSubCategory: "Documentation Generator",
  softwareVersion: pkg.version,           // stays in sync with package.json
  author: { "@type": "Organization", name: "BeyteFlow", url: "https://github.com/BeyteFlow" },
  offers: { "@type": "Offer", price: "0", priceCurrency: "USD", availability: "https://schema.org/OnlineOnly", url: siteUrl },
  sameAs: ["https://github.com/BeyteFlow/ReadmeGenAI"],
  // ...
};

The snippet is injected via the existing <script type="application/ld+json" dangerouslySetInnerHTML={...} /> in the root <head> — no structural changes to the layout.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

@vercel
Copy link
Contributor

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
readme-gen-ai Ready Ready Preview, Comment Mar 11, 2026 4:37pm

Co-authored-by: naheel0 <191262736+naheel0@users.noreply.github.com>
Copilot AI changed the title [WIP] Add JSON-LD structured data for ReadmeGenAI Complete SoftwareApplication JSON-LD structured data for Next.js root layout Mar 11, 2026
@naheel0 naheel0 marked this pull request as ready for review March 11, 2026 16:41
@naheel0 naheel0 merged commit d90a82a into main Mar 11, 2026
6 checks passed
@naheel0 naheel0 deleted the copilot/add-json-ld-structured-data branch March 11, 2026 16:41
@naheel0 naheel0 linked an issue Mar 11, 2026 that may be closed by this pull request
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.

Add JSON-LD structured data for software application

2 participants