Skip to content

Plugins

Plugins help us customize our Studio. They can either be found in Sanity’s ecosistem or be custom made.

We use a mix of both.

We use five of Sanity’s available plugins:

  • Structure tool: helps us define the sidebars of the studio
  • Vision tool: integrated querying interface for the Studio

sanity vision plugin

From this tool we can create queries, save them to be accessed later and change the type of client we want to use to query our datasets.

It’s important to use the correct perspective in our queries:

  • raw : brings both drafts and published documents
  • drafts
  • published

If we are looking to match data or get lists of documents for some operation, it’s important to know that our regular client that does not use a token brings only published documents, and we need an authenticated client to be able to also read draft documents.

  • Media plugin: allows us to have a tab where we can see all the media (files, images and videos) available in our project and search through it
  • Code Input: gives us a code input to use in our content modules
  • Assist: allows us access to Sanity’s AI Assist agent
  • Localization

We introduced a localization helper to help users toggle localization or quickly change between languages in the Studio, to prevent an overwhelming experience full of language fields.

sanity localization

How a field looks with the localization toggled on: sanity localization

And how it looks with it toggled off: sanity localization

And with all languages on display: sanity localization

  • Search provider

This is a custom made page that helps us see in which post type is each hero and each module used, in case we need to make a modification or delete a module or hero, so we can be alert on where to look or what to take into account when making that decision.

sanity search provider

  • Form search provider

This one was created to be able to localize where each form is being used across the project, because it is sometimes needed to make changes to forms and we needed to be aware of where those changes were being made.

sanity forms provider