Structured Content 101: Find out how to make your content work harder (without your team working harder) →

Vision (GROQ playground)

Official(made by Sanity team)
v3 Ready

React-based GROQ sandbox for Sanity projects.


Vision is a plugin for Sanity Studio for testing GROQ queries. It features:

  • GROQ syntax highlighting so that the query is easier to read.
  • Parsed response that's more convenient to navigate and explore.
  • Switch between datasets
  • Listening for real-time updates



sanity install @sanity/vision


It is possible to override the default configuration by setting up a config file.

Create a file named vision.json and place it at config/@sanity/vision.json relative to your root studio folder.

Currently we only support overriding the default API version.

Here's an example vision.json file:

  "defaultApiVersion": "v2021-10-21"
  • defaultApiVersion Valid options is v1, vX, v2021-03-25 or v2021-10-21

Studio Version

This plugin is available for Studio v3 and Studio v2.What are studio versions and which do I choose?