How AI is powering better personalization in e-commerce [with Vercel]. Sign up now

GUI Schema Creation and Mock Data Generation in Sanity

7 repliesLast updated: Nov 30, 2025

I’m hoping to use Sanity as an earlier part of our design and prototyping workflow.
Are there any techniques or plugins folks would recommend to –

1. Create Sanity schemas via a GUI?
2. Populate a Sanity instance with example content based on the schema (similar to using Faker.js directives)?
Wish #1 would definitely be helpful in some circumstances, although not critical.

Wish #2 would be vital to exemplify a model, to better design against it.

How are others faking or mocking realistic dummy data in Sanity?
AI Update

Great questions! Using Sanity early in design/prototyping is smart. Let me address both of your needs:

1. Creating Schemas via GUI

There isn't an official GUI schema builder in Sanity Studio. Schemas are typically defined in TypeScript/JavaScript code, which gives you version control, collaboration benefits, and type safety. However, there are a couple of approaches:

The code-first approach actually works well for prototyping since you can iterate quickly, commit changes, and share schemas with your team through version control.

2. Generating Mock/Seed Data (Critical for your workflow!)

This is where Sanity has you covered! There are several excellent options:

Best option: @sanity-typed/faker plugin

The @sanity-typed/faker plugin generates realistic mock data directly from your schemas using Faker.js under the hood. It infers data types from your schema and creates appropriate fake content automatically.

import { sanityConfigToFaker } from "@sanity-typed/faker";
import { defineConfig } from "sanity";

// Generate mock data based on your schema
const mockData = sanityConfigToFaker(yourConfig);

Official approach: CLI + custom scripts

Sanity has official documentation on generating demo content. You can write scripts using Faker.js to generate NDJSON files, then import them using the Sanity CLI:

The official guide walks through creating sophisticated seed scripts that handle:

Template example

The Sanity + Remix template includes a working example of a seed script using Faker to populate a fresh Studio with content - you can examine this for implementation patterns.

Prototyping Workflow Recommendation

For your design/prototyping workflow, I'd suggest:

This gives you the "exemplified model" you need while keeping everything version-controlled and reproducible across environments. You can even add a fake: true boolean field to all generated content, making it easy to delete and regenerate seed data whenever you update your schema during prototyping.

The combination of Sanity's auto-generated editing interface from your schema + rich mock data means you can get realistic prototypes in front of stakeholders very quickly!

Show original thread
7 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions