Introduction
sanity-plugin-seofields is a comprehensive Sanity Studio v3/v4 plugin that manages SEO fields including meta titles, descriptions, Open Graph tags, X (formerly Twitter) Cards, and robots settings — with live preview and health scoring.
Key Philosophy
One plugin, zero configuration required. Add it to your Sanity config and every document gets structured SEO fields, live SERP previews, and a studio-wide health dashboard — all out of the box.
Features
Schema Types
seoFieldsComplete SEO package — meta tags, OG, Twitter, robots, keywords, images.
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 */],
},
})