> Canonical URL: https://codingcat.dev/post/sanity-io-to-builder-io-data-transfer

# Sanity.io to Builder.io Data Transfer

✏️ Blog PostJune 3, 2022[![](/logos/sanity/Sanity-Symbol--black_on_transparent.svg)![](/logos/sanity/Sanity-Symbol--white_on_transparent.svg)Sanity](/topic/sanity)

# Sanity.io to Builder.io Data Transfer

![CodingCat.dev tutorial cover image](https://cdn.sanity.io/images/hfh83o0w/production/b9d36640932af8763bb084b031469fa8fe452594-1920x1080.png?w=1920&q=82&fit=max&auto=format)[![Alex Patterson](https://cdn.sanity.io/images/hfh83o0w/production/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)✏️ Visual Architecture Diagram

## how this post connects together.

Follow AJ from first principles to production-ready architecture.

Let’s build it!✏️ Visual Diagram: Sanity.io to Builder.io Data Transfer✓ Good PatternVISUAL DIAGRAM[Diagram Walkthrough]Step-by-step diagram breakdown for Sanity.io to Builder.io Data Transfer: start with Sanity.io to Builder.i, implement Hands-On Implementation, and ship to production.AAA Contrast Verified![](https://cdn.sanity.io/images/hfh83o0w/production/bdee643956a15fc4cbff93428d58093edebc0489-1120x630.jpg?w=1120&q=82&fit=max&auto=format)

I am hoping to make a Sanity.io plugin for builder. In doing so I thought I would write a little conversion tool before hand to figure out all the ins and outs of Builder.io and Sanity.io, so I thought I would share some of my findings. I will keep this tutorial updated as the plugin progresses.

The repo example has three things that you might find useful.

- Deleting All Data
- Creating all new types
- Adding all new Data

**Repo for conversion example**  https://github.com/CodingCatDev/sanity-to-builder.git

## Deleting All Data

https://github.com/CodingCatDev/sanity-to-builder/blob/84d8b5d436b2d674f916670317cb48de916c8a68/src/index.ts#L175

In order to delete all the data you need to first find all the models you want to delete

### Get all Models from Builder (even unpublished)

In sanity you deal with things like `draft.` in documents. In Builder these items are just known to be unpublished version. So you need to have `includeUnpublished=true` in your API call. I looked for a while in the sdk and have not found this option so far.

You can handle this by using the fetch command instead of the sdk.

https://github.com/CodingCatDev/sanity-to-builder/blob/84d8b5d436b2d674f916670317cb48de916c8a68/src/config.ts#L134

## Creating all new types

First you need to find all the types in your sanity.io database. I find it best to use Groq. So we can find all the types in Sanity and then create those in Builder as new Models.

## Adding all new Data

## Long Term goal

The End goal is to build a plugin for syncing your data...

**Builder content link**  https://github.com/BuilderIO/builder/tree/main/plugins/contentful

## Resources, Links & Official Documentation

- [**Sanity.io Content Operating System Docs:**](https://www.sanity.io/docs?coupon=CodingCatDev&utm_source=codingcatdev) GROQ queries, Portable Text, Content Lake, and Agent Context
- [**Builder.io Developer Documentation:**](https://www.builder.io/c/docs/developers?utm_source=codingcatdev) Visual headless CMS, SDKs, and design-to-code workflows
- [**GitHub Documentation:**](https://docs.github.com/) Pull requests, GitHub Actions CI/CD, and repository security

## Related CodingCat.dev Tutorials & Podcast Episodes

- [**Sanity Knowledge Bases**](/post/sanity-knowledge-bases): Eliminate query-time guessing in your AI agents. Learn how Sanity Context Knowledge Bases compile structured datasets, crawled documentation websites, and uploa...
- [**Using No-Code with Builder - Part 2**](/podcast/2-2-using-no-code-with-builder-io-part-2): Alex and Brittney sit down with Steve Sewell, Co-Founder and CEO of http://builder.io/, to understand how http://builder.io/ is different from other no-code sol...
- [**Using No-Code with Builder - Part 1**](/podcast/2-1-using-no-code-with-builder-io-part-1): In this first part Alex sits down with Steve Sewell to understand how http://builder.io/ is different from other no-code solutions.

## Frequently Asked Questions (FAQ)

### What are the main takeaways from Sanity.io to Builder.io Data Transfer?

In this example I will walk you through what data looks like in Sanity.io and how to get that data over to your Builder.io instance while creating models. Sanity.io to Builder.io Data Transfer explores practical patterns for Sanity, Builder.io, GitHub in modern software engineering. Throughout this post, Alex Patterson breaks down real-world implementation details for Sanity, Builder.io, GitHub so developers can apply these patterns directly in production.

### How do you implement Sanity best practices in production?

When adopting Sanity and Builder.io in a production stack, start by validating your configuration against the [**Sanity.io Content Operating System Docs**](https://www.sanity.io/docs?coupon=CodingCatDev&utm_source=codingcatdev) (GROQ queries, Portable Text, Content Lake, and Agent Context). Focus on incremental adoption, automated testing, and observability so your team can measure performance and developer velocity improvements at each stage.

### Where can I watch the full Sanity.io to Builder.io Data Transfer walkthrough and find related code resources?

You can explore the complete write-up and code examples right here on CodingCat.dev, and subscribe to the [**CodingCat.dev YouTube channel**](https://www.youtube.com/@CodingCatDev?sub_confirmation=1) for weekly video tutorials. For a deeper dive into Sanity, check out our related guide: [**Sanity Knowledge Bases**](/post/sanity-knowledge-bases).

## recent blog posts.

[All Blog Posts&rarr;](/blog)[![The Heads of AI wearing black company logo t-shirts and shaking hands in a circular web of cloud and GPU investments](https://cdn.sanity.io/images/hfh83o0w/production/d1d83d596ce5899d797cd3aaf1bd0142038f282a-1376x768.jpg?w=1376&q=82&fit=max&auto=format)](/post/anthropic-s1-ipo-circular-ai-economy-etf-risk)October 26, 2026[![](/logos/amplify/amplify.svg)![](/logos/amplify/amplify.svg)AWS Amplify](/topic/amplify)[AI & MCP Agents](/topic/ai)

### [Anthropic's S-1, $518B in cloud commitments, and circular AI capex](/post/anthropic-s1-ipo-circular-ai-economy-etf-risk)

Anthropic just filed its Form S-1 for a Nasdaq IPO under ticker ANT, revealing $518B in take-or-pay cloud commitments to Google, AWS, and Microsoft. Here is how Mark Zuckerberg, Elon Musk, Jensen Huang, Sundar Pichai, Satya Nadella, Tim Cook, and Dario Amodei built a circular revenue machine, and what happens to your S&P 500 ETF if it stalls.

[![Alex Patterson](https://cdn.sanity.io/images/hfh83o0w/production/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![PHP2Shell (CVE-2026-109618): How AI Found a Decade-Old Bug in 70% of the Web](https://cdn.sanity.io/images/hfh83o0w/production/e83065d0a4e2f841ce64d3f4aea8ddbbf07e5cb9-1376x768.jpg?w=1376&q=82&fit=max&auto=format)](/post/php2shell-cve-2026-109618-ai-php-security-scramble)October 22, 2026[![](/logos/amplify/amplify.svg)![](/logos/amplify/amplify.svg)AWS Amplify](/topic/amplify)[AI & MCP Agents](/topic/ai)

### [PHP2Shell (CVE-2026-109618): How AI Found a Decade-Old Bug in 70% of the Web](/post/php2shell-cve-2026-109618-ai-php-security-scramble)

Two critical pre-authentication RCE flaws in PHP (CVE-2026-109618 and CVE-2026-109619), uncovered by AI models from OpenAI and Google Gemini, sparked a global patching scramble across 70% of the web. Here is how PHP2Shell works and how to patch your servers.

[![Alex Patterson](https://cdn.sanity.io/images/hfh83o0w/production/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)