Skip to content

Getting started

Hardik Desai

Full-stack developer in Ahmedabad. I build Next.js + Sanity sites in production, publish open-source Sanity plugins on npm, and write up notes on the web as I learn them. Lately: sanity-plugin-seofields.

articles11sites on shared schemas14+years in production4.5+
hardik.jpgjpg
Hardik Desai in a tweed jacket and striped tie, in a warmly lit retro office with a vintage computer and a “Better Software, A Brighter Tomorrow” poster behind him

Quickstart#

Where to go first, depending on why you're here.

My most-used open-source project: an SEO toolkit for Sanity Studio, in active development since September 2025.

sanity-plugin-seofields

Sanity Studio plugin · Sanity v3 · v4 · v5 · v6

The complete SEO toolkit for Sanity Studio. SEO fields, social metadata, Schema.org JSON-LD, AI-generated copy and an SEO health dashboard — inside Sanity Studio, with render helpers for Next.js, Astro, Nuxt, SvelteKit and Remix.

versionv1.12.0licenseMITdownloads8.5k/mo

Install

npm install sanity-plugin-seofields

Render it in the App Router

app/[slug]/page.tsxts
import {buildSeoMeta} from 'sanity-plugin-seofields/next'

export async function generateMetadata() {
  const page = await getPage()
  return buildSeoMeta({
    seo: page.seo,
    path: `/${page.slug}`,
  })
}

Feature reference#

Everything the plugin adds to Studio and to your front end.

01One field, full coverage
A single seoFields type: title, description, canonical, keywords, robots, Open Graph, X/Twitter, hreflang and custom meta tags.
02Live SERP preview
Editors see the Google result and social cards while they type, with character counters and focus-keyword checks.
03Schema.org JSON-LD
Structured-data types for BlogPosting, FAQ, Breadcrumbs and more, plus React / Next.js helpers to render them.
04AI-assisted copy
Generate titles and descriptions from the document body, through a server-side proxy so keys never reach the browser.
05SEO health dashboard
Audit every document from one pane, score it, and export the report as CSV or JSON. A publish gate can warn below a score.
06Framework-neutral head
buildSeoMeta() for the Next.js App Router, buildSeoHead() for Astro, Nuxt, Vue, SvelteKit, Remix and custom renderers. Plus a CLI.

Professional work#

Most of my hours go into client sites I can't link to. Here's the shape of that work.

Pharmacy website network

14+ UK pharmacy websites built on Next.js + Sanity. Each site has its own codebase, but they share one site structure and one set of Sanity schemas, so new sites start from a proven base.

  • Next.js
  • Sanity
  • Shared schemas

WordPress → Sanity migrations

Moving content-heavy marketing sites off WordPress onto structured Sanity schemas with typed GROQ and live preview.

  • Sanity
  • Migration
  • GROQ

Sanity ecosystem#

I'm a Sanity Builder: I ship sites on Sanity, build tooling for its Studio, and give the useful parts back as open-source plugins.

Sanity Builder

Listed in Sanity's Builder directory. Most of my production work runs on Sanity: content models, GROQ, Studio customisation and the Next.js front ends that read from it. When a project needs something Studio doesn't do, I build it as a plugin and publish it.

Sanity websites shipped or maintained
25+Sanity websites shipped or maintained
business locations run from Studio
50+business locations run from Studio
open-source Sanity plugins on npm
3open-source Sanity plugins on npm
Studio versions in production
v3 → v5Studio versions in production
hardik-desai.jsonjson
{
  "role": "Sanity Builder",
  "directory": "sanity.io/pioneers",
  "builds": "25+ Sanity websites",
  "plugins": [
    "sanity-plugin-seofields",
    "sanity-plugin-analytics",
    "sanity-plugin-document-manager"
  ],
  "stack": [
    "Next.js",
    "GROQ",
    "TypeScript"
  ]
}
  • Open-source pluginsI publish Studio plugins for SEO, analytics and bulk document work. sanity-plugin-seofields is listed in the Sanity plugin directory.
  • Sites built on shared schemasFamilies of sites that share one structure and one set of Sanity schemas, each with its own codebase and Sanity project, so editors get the same Studio on every site.
  • Studio tooling for editorsCustom document actions, a site switcher, content seeders, and dashboards that bring GA4 and Search Console into Studio.
  • Migrations and upgradesMoving WordPress sites onto structured schemas without losing URLs or SEO, and taking Studios through major version upgrades.
  • Shopify + SanityShopify products synced into Sanity, so editors can feature them in pages and showcases next to the rest of the content, while Shopify stays the source of truth.

Latest writing#

Tutorials and deep dives, written while building real projects.

Stack#

A working set, not a wishlist. Things I've shipped, debugged at 2 AM, and would reach for again tomorrow.

Frontend
FluentReactNext.jsTypeScriptJavaScriptHTML5CSS3
Working—
Nodding—
Style & motion
FluentTailwind CSSSCSS
WorkingGSAPFramer MotionBootstrap
Nodding—
Data & state
FluentReact QueryREST
WorkingGraphQLRedux
Nodding—
Backend & infra
FluentNode.js
WorkingExpressPHPMongoDBPostgreSQL
NoddingLaravel
Content & CMS
FluentSanityGROQ
WorkingStrapiWordPress
Nodding—
Tooling & craft
FluentGitVite
WorkingWebpackJestAuthPerformance
Nodding—

The Build Log

New posts, plugin releases, and the Sanity + Next.js tricks that didn't fit in a blog post. About once a month.