Introduction
sanity-plugin-seofields is a comprehensive Sanity Studio v3/v4/v5 plugin that manages SEO fields including meta titles, descriptions, Open Graph tags, X (formerly Twitter) Cards, and robots settings — with live preview, Schema.org JSON-LD helpers, and health scoring.
Key Philosophy
One plugin, zero configuration required. Add it to your Sanity config and every document can get structured SEO fields, live SERP previews, and a studio-wide health dashboard. Use Schema.org fields when you need machine-readable context for rich results and AI answer surfaces.
Features
Schema Types
seoFieldsComplete SEO package — meta tags, OG, Twitter, robots, editorial keywords, images.
baseMetaStandalone core meta fields — title, description, image, editorial keywords, canonical URL, and custom meta attributes.
openGraphStandalone Open Graph configuration for social media sharing.
twitterX (formerly Twitter) Card settings with card type, handles, and images.
metaTagArray container for custom meta attributes (key/value pairs).
metaAttributeIndividual meta attribute — supports both text and image values.
robotsSearch engine directives — noIndex and noFollow toggles.
Quick Example
import { defineConfig } from 'sanity'
import seofields from 'sanity-plugin-seofields'
export default defineConfig({
name: 'my-project',
title: 'My Project',
projectId: 'your-project-id',
dataset: 'production',
plugins: [
seofields(), // That's it — SEO fields + dashboard ready
],
schema: {
types: [/* your schemas */],
},
})Last updated: May 27, 2026. Tested with: Sanity Studio v3, v4, and v5.
Was this page helpful?