Using Sanity Kitchen Sink locally without Netlify or GitHub for Gatsby
Absolutely! You can run the Sanity Kitchen Sink template entirely locally without any connection to Netlify or GitHub. This is actually a great way to explore how Sanity integrates with Gatsby.
Important note: As mentioned in Sanity's blog post, the Kitchen Sink template was deprecated with Sanity Studio v3. However, you can still clone and run it locally to learn from the code.
Running Kitchen Sink Locally
Here's how to set it up completely locally:
1. Clone the Repository
git clone https://github.com/sanity-io/sanity-template-kitchen-sink.git
cd sanity-template-kitchen-sink2. Install Dependencies
# Install root dependencies
npm install
# Install Studio dependencies
cd build/studio
sanity install
# Install web (Gatsby) dependencies
cd ../web
npm install3. Set Up Your Local Sanity Project
You'll need a free Sanity account to connect to the Content Lake, but you don't need Netlify or GitHub:
cd build/studio
sanity initThis creates a new Sanity project and dataset for you to work with locally.
4. Run Both Studio and Frontend Locally
# In one terminal - run Sanity Studio
cd build/studio
sanity start
# In another terminal - run Gatsby frontend
cd build/web
npm run devThe Studio will run at http://localhost:3333 and the Gatsby site at http://localhost:8000.
What You'll Learn
Running this locally lets you explore:
- How Sanity Studio's customizable schema works
- How Gatsby queries Sanity data using GraphQL
- The connection between structured content in Sanity and frontend presentation
- Custom input components, document structures, and validation
- Page builder patterns and content modeling
The Netlify/GitHub integration is only for deployment—the actual Sanity-Gatsby connection happens through Sanity's APIs, which you can explore entirely on your local machine.
Show original thread63 replies
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.