Skip to content

Inspect your Sanity.io schema fields straight in your Studio using this tool

License

Notifications You must be signed in to change notification settings

ahmdigital/fieldwork

Repository files navigation

Fieldwork

Inspect your Sanity.io schema fields straight in your Studio using this tool

Some use cases

  • See what you've got in preparation for adding new schemas, so you can maximise re-use.

This is a Sanity Studio v3 plugin.

Installation

npm install sanity-plugin-fieldwork

Usage

Add it as a plugin in sanity.config.ts (or .js):

import { defineConfig } from "sanity";
import { fieldwork } from "sanity-plugin-fieldwork";

export default defineConfig({
  //...
  plugins: [fieldwork({})],
});

License

MIT © ahm digital

Develop & test

This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.

See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.