{"id":50011647,"url":"https://github.com/hardik-143/sanity-plugin-seofields","last_synced_at":"2026-05-19T23:18:24.836Z","repository":{"id":315920265,"uuid":"1061141595","full_name":"hardik-143/sanity-plugin-seofields","owner":"hardik-143","description":" Sanity plugin to manage SEO fields — meta titles, descriptions, Open Graph, X (Twitter) cards, robots settings, and an SEO Health Dashboard to  audit content quality across your dataset.","archived":false,"fork":false,"pushed_at":"2026-05-19T19:46:22.000Z","size":1226,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-05-19T23:17:16.859Z","etag":null,"topics":["headless-cms","plugin","sanity","seo","seo-plugin"],"latest_commit_sha":null,"homepage":"https://www.sanity.io/plugins/sanity-plugin-seofields","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardik-143.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-21T10:28:07.000Z","updated_at":"2026-05-19T19:46:25.000Z","dependencies_parsed_at":"2025-09-21T17:48:51.572Z","dependency_job_id":null,"html_url":"https://github.com/hardik-143/sanity-plugin-seofields","commit_stats":null,"previous_names":["hardik-143/sanity-plugin-seofields"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hardik-143/sanity-plugin-seofields","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardik-143%2Fsanity-plugin-seofields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardik-143%2Fsanity-plugin-seofields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardik-143%2Fsanity-plugin-seofields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardik-143%2Fsanity-plugin-seofields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardik-143","download_url":"https://codeload.github.com/hardik-143/sanity-plugin-seofields/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardik-143%2Fsanity-plugin-seofields/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33237283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["headless-cms","plugin","sanity","seo","seo-plugin"],"created_at":"2026-05-19T23:18:24.224Z","updated_at":"2026-05-19T23:18:24.825Z","avatar_url":"https://github.com/hardik-143.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sanity-plugin-seofields\n\n[![Docs](https://img.shields.io/badge/Docs-sanity--plugin--seofields-blue)](https://sanity-plugin-seofields.thehardik.in) [![npm version](https://img.shields.io/npm/v/sanity-plugin-seofields.svg?color=brightgreen\u0026label=npm)](https://www.npmjs.com/package/sanity-plugin-seofields) [![npm downloads](https://img.shields.io/npm/dm/sanity-plugin-seofields.svg?color=blue)](https://www.npmjs.com/package/sanity-plugin-seofields) [![license](https://img.shields.io/npm/l/sanity-plugin-seofields.svg?color=yellow)](./LICENSE) [![GitHub stars](https://img.shields.io/github/stars/hardik-143/sanity-plugin-seofields?style=social)](https://github.com/hardik-143/sanity-plugin-seofields)\n\n**The only Sanity SEO plugin with a built-in audit dashboard.**\n\nManage meta tags, Open Graph, Twitter Cards, robots directives, and 38 Schema.org/JSON-LD types — all inside Sanity Studio v3/v4/v5.\n\n📖 **[Full Documentation →](https://sanity-plugin-seofields.thehardik.in/docs)**\n\n---\n\n\u003e ⭐ If this plugin saves you time, please [leave a rating on the Sanity Plugin Directory](https://www.sanity.io/plugins/sanity-plugin-seofields), [star it on GitHub](https://github.com/hardik-143/sanity-plugin-seofields), and [leave a review on the docs site](https://sanity-plugin-seofields.thehardik.in/reviews). It helps other developers find it.\n\n\u003c!-- Demo GIF: SEO Health Dashboard in action --\u003e\n\u003c!-- Add a screen recording here showing the SEO Health Dashboard scoring documents, the live SERP preview, and the Schema.org JSON-LD editor --\u003e\n\u003c!-- Recommended tools: LICEcap (Mac/Windows), Kap (Mac), or ScreenToGif (Windows) --\u003e\n\n---\n\n## Installation\n\n```bash\nnpm install sanity-plugin-seofields\n```\n\n## Quick Start\n\n### 1. Register the plugin\n\n```ts\n// sanity.config.ts\nimport {defineConfig} from 'sanity'\nimport seofields from 'sanity-plugin-seofields'\n\nexport default defineConfig({\n  plugins: [seofields()],\n})\n```\n\n### 2. Add SEO fields to a document\n\n```ts\nimport {defineField, defineType} from 'sanity'\n\nexport default defineType({\n  name: 'page',\n  type: 'document',\n  fields: [\n    defineField({name: 'title', type: 'string'}),\n    defineField({name: 'seo', type: 'seoFields'}),\n  ],\n})\n```\n\nThat's it. The `seoFields` type is automatically registered by the plugin.\n\n---\n\n## Available Schema Types\n\n| Type            | Description                          |\n| --------------- | ------------------------------------ |\n| `seoFields`     | Complete SEO bundle (recommended)    |\n| `openGraph`     | Open Graph tags for social sharing   |\n| `twitter`       | X (Twitter) Card settings            |\n| `metaTag`       | Container for custom meta attributes |\n| `metaAttribute` | Single key/value meta attribute      |\n| `robots`        | noindex / nofollow directives        |\n\n---\n\n## Configuration\n\n```ts\nseofields({\n  seoPreview: true,\n  fieldOverrides: {\n    title: {title: 'Page Title'},\n  },\n  defaultHiddenFields: ['openGraphSiteName', 'twitterSite'],\n  fieldVisibility: {\n    post: {hiddenFields: ['twitterSite']},\n  },\n})\n```\n\n| Option                | Type      | Default | Description                             |\n| --------------------- | --------- | ------- | --------------------------------------- |\n| `seoPreview`          | `boolean` | `true`  | Enable/disable live SEO preview         |\n| `fieldOverrides`      | `object`  | `{}`    | Customize field titles and descriptions |\n| `defaultHiddenFields` | `array`   | `[]`    | Hide sitewide fields globally           |\n| `fieldVisibility`     | `object`  | `{}`    | Hide fields per document type           |\n\n→ [Full configuration reference](https://sanity-plugin-seofields.thehardik.in/docs/configuration)\n\n---\n\n## SEO Health Dashboard\n\n\u003e **This is the feature that sets this plugin apart from every other Sanity SEO plugin.**\n\nA built-in Studio tool that audits SEO completeness across all your documents at once — scores each document, highlights missing fields, and links directly to what needs fixing. No external tools. No leaving Studio.\n\nRequires a free license key — [get yours here](https://sanity-plugin-seofields.thehardik.in/get-license).\n\n```ts\nseofields({\n  dashboard: {\n    enabled: true,\n    licenseKey: process.env.SANITY_STUDIO_SEO_LICENSE_KEY,\n  },\n})\n```\n\n→ [Dashboard docs](https://sanity-plugin-seofields.thehardik.in/docs/dashboard)\n\n---\n\n## Schema.org / JSON-LD\n\nThe plugin ships 38 Schema.org types as Sanity schema definitions + React components that render `\u003cscript type=\"application/ld+json\"\u003e` tags.\n\n### 1. Register schema types in Studio\n\n```ts\n// sanity.config.ts\nimport {schemaOrg} from 'sanity-plugin-seofields/schema'\n\nexport default defineConfig({\n  plugins: [seofields(), schemaOrg()], // all 38 types at once\n})\n```\n\nOr register only what you need:\n\n```ts\nimport {schemaOrgArticlePlugin, schemaOrgOrganizationPlugin} from 'sanity-plugin-seofields/schema'\n\nexport default defineConfig({\n  plugins: [seofields(), schemaOrgArticlePlugin(), schemaOrgOrganizationPlugin()],\n})\n```\n\n### 2. Add to a document schema\n\n```ts\ndefineField({name: 'schemaOrg', type: 'schemaOrg'}) // combined array field\n// or individual types:\ndefineField({name: 'article', type: 'schemaOrgArticle'})\n```\n\n### 3. Render in Next.js\n\n```tsx\n// Combined renderer\nimport {SchemaOrgScripts} from 'sanity-plugin-seofields/schema/next'\n\nexport default function Layout({data}) {\n  return \u003cSchemaOrgScripts items={data.schemaOrg} /\u003e\n}\n\n// Or individual components\nimport {ArticleSchema, OrganizationSchema} from 'sanity-plugin-seofields/schema/next'\n\nexport default function Page({data}) {\n  return (\n    \u003c\u003e\n      \u003cArticleSchema data={data.article} /\u003e\n      \u003cOrganizationSchema data={data.org} /\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n**All 38 available types:** `AggregateRating`, `Article`, `BlogPosting`, `Book`, `Brand`, `BreadcrumbList`, `ContactPoint`, `Country`, `Course`, `Event`, `FAQPage`, `HowTo`, `ImageObject`, `ItemList`, `JobPosting`, `LegalService`, `LocalBusiness`, `Movie`, `MusicAlbum`, `MusicRecording`, `NewsArticle`, `Offer`, `Organization`, `Person`, `Place`, `PostalAddress`, `Product`, `ProfilePage`, `Recipe`, `Restaurant`, `Review`, `Service`, `SocialMediaPosting`, `SoftwareApplication`, `VideoObject`, `WebApplication`, `WebPage`, `Website`.\n\n→ [Schema.org docs](https://sanity-plugin-seofields.thehardik.in/docs/schema-org)\n\n---\n\n## Next.js Integration\n\n```ts\nimport {buildSeoMeta, SeoMetaTags} from 'sanity-plugin-seofields/next'\n```\n\n→ [Next.js integration guide](https://sanity-plugin-seofields.thehardik.in/docs/nextjs)\n\n---\n\n## CLI\n\n```bash\nnpx seofields\n```\n\n→ [CLI docs](https://sanity-plugin-seofields.thehardik.in/docs/cli)\n\n---\n\n## Links\n\n- 📖 [Documentation](https://sanity-plugin-seofields.thehardik.in/docs)\n- 🐛 [Issues](https://github.com/hardik-143/sanity-plugin-seofields/issues)\n- 📦 [npm](https://www.npmjs.com/package/sanity-plugin-seofields)\n- 📝 [Changelog](./CHANGELOG.md)\n\n## Contributing\n\nPRs and issues are welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardik-143%2Fsanity-plugin-seofields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardik-143%2Fsanity-plugin-seofields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardik-143%2Fsanity-plugin-seofields/lists"}