Usage
There are several ways to explore the features of Sanity Structure Tool. Whether you prefer reading code, seeing a live demo, or running the studio locally, we have you covered.
1. Documentation (Recommended)
The fastest way to understand a specific property is to browse the individual example pages in the sidebar. Each page focuses on a single field and provides clear, copy-pasteable snippets.
- title
- schemaType
- icon
- singleton
- children
- ...and more in the sidebar!
2. Interactive Live Demo
If you want to see the Sanity Structure Tool in action without setting anything up, visit our live demo studio:
Note
You will need to log in with your own Sanity account and send an access request to the owner. Please note that it can take up to 24 hours to resolve the request. Since the basic Sanity plan has a limit of 20 users, access is managed manually to ensure everyone has a chance to explore the demo.
3. Local Development
For developers who want to experiment with the code and see it run on their own machine, you can clone the repository and run the example studio locally.
Steps:
- Repository Setup: Follow our Contributing Guide to clone the repo and install dependencies.
- Environment Setup: Create a
.envfile in theapps/studiofolder with your ownprojectIdanddataset. - Import Sample Data: We provide a production data snapshot in the
datafolder. You can import it using the Sanity CLI:shsanity dataset import data/production.tar.gz <your-dataset-name> - Run the Studio:sh
pnpm studio:dev
This setup gives you a fully functional playground to test complex structures, roles, and workspaces.
