Concept · stack · in production
Sanity Headless CMS
Sanity is a headless CMS that treats content as structured data, defined by code, enabling flexible and developer-driven content management across the Total Ventures portfolio.
Sanity Headless CMS moves beyond traditional content management by treating content as pure, structured data, defined by TypeScript schemas and accessed via a robust API, which allows for unparalleled frontend flexibility and multi-channel distribution.
What it is
Sanity is a content platform built around the concept of "content as data." Unlike traditional content management systems that couple content with presentation, Sanity provides a backend content store and a customizable, open-source editing environment called the Sanity Studio. Developers define content schemas using JavaScript or TypeScript, which then dictate the structure and fields available to content editors. This code-first approach means content types, validation rules, and relationships are all version-controlled alongside application code. Content is then queried via a powerful GraphQL or GROQ API, allowing any frontend or application to consume it. The Studio itself is a React application that can be self-hosted or deployed as a managed service, offering real-time collaboration and live previews.
Why it matters
For a portfolio of purpose-built media and software products, Sanity's approach offers several advantages. The separation of content from presentation means we can iterate on frontends rapidly without touching the content layer. This flexibility is crucial when building diverse products that might present the same core content in different ways – a blog post might become a podcast transcript or a social media snippet. The schema-driven nature enforces content consistency and quality, reducing the burden on content editors and developers alike. It's a developer-first tool that integrates cleanly into modern serverless stacks, aligning with how we build. This allows us to maintain a lean operational footprint, a core tenet of our Zero-Headcount Ops approach, as we're not managing complex database migrations or monolithic CMS upgrades.
How TV applies it
Total Ventures leverages Sanity across several portfolio companies. Most notably, the editorial blog for PPH runs entirely on Sanity. Content creators manage articles, authors, categories, and tags within the Sanity Studio, which is mounted at `/studio` on the primary domain. The frontend, built with Next.js and deployed on Vercel, fetches content directly from Sanity's GraphQL API. This setup allows for rapid content publishing and ensures that editorial content can be easily repurposed or extended to other applications if needed, supporting a Hub-and-Spoke Content strategy. The ability to define custom input components within the Studio means we can tailor the editing experience precisely to our content types, rather than being constrained by a generic WYSIWYG editor. This level of control and customizability is essential for our iterative approach to Building in Public, allowing us to adapt content structures as product needs evolve.
Common failure modes
While powerful, Sanity isn't without its considerations. The initial setup requires a developer to define schemas, which can be an overhead if the content model isn't well-understood upfront. Overly complex schemas can lead to a cumbersome editing experience or difficult-to-query data. Content editors, especially those accustomed to traditional WYSIWYG editors, may initially find the Studio's block-based editor and lack of immediate visual context challenging. It requires a commitment to building out a robust frontend preview system to bridge that gap. Without proper planning for content relationships and data normalization, the flexibility can also lead to inconsistent data structures over time. Furthermore, while the Studio is highly customizable, pushing its limits too far can introduce maintenance complexity that negates some of the benefits of a managed service.
FAQs
- Is Sanity suitable for small, single-product sites?
- Yes, its developer-first approach and flexible schema make it suitable for projects of any size. The initial setup cost is quickly offset by the long-term flexibility and maintainability, even for a single product.
- How does Sanity handle content versioning and collaboration?
- Sanity offers real-time collaboration within the Studio, allowing multiple editors to work on the same document simultaneously. It also maintains a full revision history, enabling content managers to revert to previous versions as needed.
Want to see how Total Ventures applies this in production?
See the brand portfolio →
