---
title: "Introducing sanity-plugin-seofields: Field Groups and Validation Scoring"
description: "Learn how the sanity-plugin-seofields field group and its real-time validation scoring help editors publish perfectly optimized, high-quality search and AI-ready content."
author: "Hardik Desai"
date: 2026-08-18
updated: 2026-08-18
tags: [sanity-plugin-seofields, SEO validation, Sanity SEO, Headless CMS SEO, Content Quality]
canonical: https://sanity-plugin-seofields.thehardik.in/blog/introducing-sanity-plugin-seofields-field-groups-validation-scoring
---

# Introducing sanity-plugin-seofields: Field Groups and Validation Scoring

For years, content editors working with headless content management systems have shared a common frustration: publishing blind. Unlike traditional monolithic platforms like WordPress, which provide immediate visual cues and SEO plugins like Yoast to grade content health, custom headless builds often leave authors guessing whether their titles are too long, descriptions are too short, or if their social previews look correct.

To bridge this gap, the `sanity-plugin-seofields` plugin introduces a unified, interactive suite of SEO controls directly inside Sanity Studio. In this post, we’ll explore how its field groups organize your metadata, how its real-time validation scoring works, and how to get started in under five minutes.

> **[INFO]** **Key Takeaway**
sanity-plugin-seofields is more than a list of fields—it's a real-time publishing assistant that guides editors to search and AI visibility as they write.

## Why Scattered Fields Fail Editors

In many custom Sanity setups, developers define basic string fields for SEO—like `seoTitle` and `seoDescription`—and place them at the bottom of a long document form. While this works technically, it fails the editorial workflow in three key ways:

- **No feedback loop: **Editors don't know if their title fits within search result limits until after search engines crop it.
- **Visual noise: **Mixing layout settings, body content, and technical indexing directives in a single long form distracts editors.
- **Pre-publishing drift: **Without automated scoring, quality control depends entirely on human memory, leading to broken open-graph links and missing focus keywords.

## Introducing sanity-plugin-seofields: Unified Field Groups

The core philosophy of `sanity-plugin-seofields` is organizing fields so they are easily accessible but never in the way. It consolidates all search, social, and indexing configurations into a single, cohesive field group called 'SEO & Metadata'.

Within this group, fields are sub-categorized into three intuitive tabs or sections:

- **Search (Basic Metadata): **Dedicated fields for the search engine title, meta description, focus keywords, and canonical URL, with visual character counts that update as you type.
- **Social Sharing (Open Graph & Twitter): **Visual configuration cards for Facebook, LinkedIn, and Twitter/X, enabling independent title, description, and image assets.
- **Advanced Indexing (Robots): **Simple toggle switches for `noindex` and `nofollow` to keep search bots away from checkout, account, utility, or staging pages.

## How Real-Time Validation Scoring Works

The crowning feature of 						`sanity-plugin-seofields` is its active validation and scoring engine. Instead of a passive field group, it acts as a real-time editor-side coach. The scoring engine evaluates your fields against established search engine guidelines, giving you a dynamic percentage score from 0% to 100%.

Here's exactly how the scoring algorithm grades your content:

- **Length checks: 	**The plugin grades length using strict boundaries. Titles get a perfect score between 50 and 60 characters. Descriptions get a perfect score between 120 and 160 characters. Values outside these brackets reduce the score and show helpful instructions.
- **Asset presence: 	**Missing a canonical URL or a dedicated Open Graph image? The validation bar flags a warning and suggests uploading or entering them.
- **Keyword alignment: 	**If you input a focus keyword, the scoring engine analyzes your title, meta description, and slug to check for natural density and placement.

> **[SUCCESS]** **Pro Tip**
You can use the focus keyword density analysis to keep your headings and intro copy tightly focused on search intent, improving both human readability and machine parsing.

## Installing & Configuring sanity-plugin-seofields

Adding these editorial superpowers to your Sanity Studio is incredibly straightforward.

First, install the plugin in your Sanity project root using your package manager: `npm install sanity-plugin-seofields`.

Second, register the plugin in your `sanity.config.ts` by importing 	`seoFields` from 	`sanity-plugin-seofields` and adding it to the plugins array.

Third, add the 	`seoFields` type directly into your document schema (such as 	`blogPost.ts` or 	`page.ts`). This instantly injects the 'SEO & Metadata' field group with its real-time previews and scoring widgets.

## Better Tools, Stronger Search Results

By incorporating 	`sanity-plugin-seofields` into your workflow, you bridge the technical gap between developers and editors. Developers write structured schema types, and editors receive immediate, actionable validation scoring that keeps content quality high.

If you are looking to audit your headless site's SEO further, check out our related guides below, or explore how to configure structured Schema.org data for complete search coverage.
