Blog with Built-in Content Editing
The Best CMS Built With React
Sanity is an open-source API-based CMS built with React.js. With Sanity you can define your own content models in JavaScript and customize the editing interface with your own React.js components.
React from front to back
Manage all your code with the same framework and component-based way of thinking. Plays well with popular frontend frameworks like Next.js and Remix.
Fully customizable editor
Start with a great default editor and customize it with official plugins or your own custom plugin to create an editing experience authors will rave about.
Powerful APIs
Filter, sort, and transform your data however you need with the most powerful and friendly APIs of any headless CMS. Query documents with GraphQL and GROQ.
Image optimization
Never worry about image optimization again. Crop, blur, hotspot, grayscale and more. Sanity’s asset pipeline handles it all. All backed by a global CDN.
Embeddable studio
Sanity is a standalone React application and can be embedded wherever you need it. No more awkward URLs. Just content editing where you want it.
Framework integrations
Sanity has an official toolkit for NextJS and robust support for other major React frameworks like Hydrogen, Remix and Gatsby. Happy paths for all.
Full-stack React templates
Get your ideas live with Vercel or Netlify within minutes. Our popular templates give you a complete React backend and frontend using frameworks like Next.js and Gatsby.
Deeply customizable environments
Sanity Studio enables you to create content using unique components for specific use cases, such as social media preview cards, or work with integrated tooling to orchestrate complex content workflows, such as creating localized content.
Each workspace can be defined for unique content use cases, such as by readiness, region, product area, and more. Your workspace definition can specify distinct tooling, themes, and plugins, and it can be readily shared with anyone in your organization.
![A screenshot of the Sanity Studio with a window for selecting difference workspaces](https://cdn.sanity.io/images/3do82whm/next/0b82357af3860af4b3ce001ae4b5333015de8839-3200x1812.png?w=3840&q=75&fit=clip&auto=format)
Powerful APIs and query languages
Sanity offers the most flexible and powerful APIs of any Content Management System. They're not only great at reading, writing, and patching, but they let you do it in real-time, so you don’t have to worry about document locking and race conditions.
Query documents with the popular GraphQL, or our very own GROQ: which lets you get exactly what you need, in any way or form you need it.
React developers love working with Sanity
Read what our community has been saying about Sanity and React.
Total presentational control to help you go far
Rich text within Sanity is stored in an open-source format called Portable Text. Portable Text uses JSON arrays to store data, decoupling your content from your frontend code.
Separating content and code like this gives you complete control over how and where that content will ultimately be presented.
Sanity maintains a helper library called Portable Text to React which streamlines transforming your content into React components.
![Illustration showing Sanity studio portable text shown in different front ends](https://cdn.sanity.io/images/3do82whm/next/7a9cc5841b5a270362652e4bdf41daaed2079030-1200x900.jpg?w=3840&q=75&fit=clip&auto=format)
Build your own React CMS
Ready to go? Sanity Studio pairs perfectly with modern frontend frameworks like Next.js, SvelteKit and Gatsby.
Sanity empowers you to build a custom React CMS backend that your entire team will love using.
Here are some guides to get going:
→ Follow the Next.js + Sanity tutorial
![A screenshot of Sanity React CMS](https://cdn.sanity.io/images/3do82whm/next/851d1263367f3e1d36389637d8ab8b3918656abc-2092x1622.png?w=3840&q=75&fit=clip&auto=format)
Ranked #1 in CMS Satisfaction
In the 2023 Netlify State of Web Development report, Sanity has the highest satisfaction score for content platforms.
It's the fastest, most flexible way to structure and deliver content to digital products.
Find out why and get started in minutes.
![A chart of the satisfaction scores in the netlify report showing sanity at the top](https://cdn.sanity.io/images/3do82whm/next/bd3eaea1b22d98d5b861452e4c707ceaed3f5d3b-2160x1400.png?w=3840&q=75&fit=clip&auto=format)
The benefits of using a React-based Headless CMS
Why you should consider Sanity for your project.
Version control your backend
Sanity is configured and customized entirely in code meaning you can version control your backend and store it in git just like your frontend. No more GUI
Real-time collaboration
Our dynamic React-based editing environment is fully real-time; every keystroke is stored and shared in an instant. It also tracks changes, retains a detailed history, and offers one-click restores.
Respond to editor needs
You have the freedom to structure Sanity Studio however you like. Use React patterns to group content types in meaningful ways, hide the stuff you don’t use every day, combine rich document list-views from any field, and brand the studio in your own image.
Reuse content across multiple channels
You don’t have to get by with managing content in different places. We provide scalable storage, flexible APIs, and best-in-class tools for structuring content so you can build exactly what you need, then fetch and query it for any channel you like.
Open source
The Sanity Studio ships as an open-source single page React app. Install plugins from npm or build your own. You can also integrate Sanity in your own applications.
Easily combine rich-text with data
Sanity treats your content as data, and data as content. There’s no HTML, just JSON from beginning to end. Add semantic metadata to any field, annotate any text or inline object, and access everything from an edge-cached global CDN.
Enhance content through third-party APIs
You can connect Sanity with API-based 3rd party services for better content workflows. Send content back and forth between services places like Slack and Hubspot to get more done and reduce management tasks.
Iterate faster
Sanity’s flexible modeling and UI customization capabilities let you iterate quickly and evolve as you go. So you can reduce your time to market and work with content from day one.
Serve content from a global CDN
Your content lives on a fully-managed data store hosted in the cloud and a global asset CDN. So you can focus on building great content and experiences instead of worrying about servers, space and bandwidth.
Sanity has helped us transform the way we deliver content. It’s easy to customize and extend to meet our growing business needs.
How does a React CMS work?
What you need to know about working with a React CMS.
React is the leading JavaScript library for building highly interactive online experiences. It popularized the now ubiquitous idea of using components to structure an app and provides a well-known API for managing state in your application.
Ultimately, this gives React the power to control what is rendered on the screen based on how state changes. This interactivity and composability make React the perfect choice for building a CMS.
In a React CMS, React acts as the bridge between the raw database servers and the user interface an editor sees. React can react to changes in the user interface or the database and then take a related action.
Imagine you complete your next great blog post and hit publish. React is responsible for reacting to this publish event and then doing something like updating the document status to published. React will also then handle passing this changed document status onto the database itself.
Integrate Sanity with other technologies
Sanity can be integrated with any major framework, providing the flexibility need to have full control of your project.
Try Sanity React.js CMS
Generous quota included. Pay-as-you-go for users, usage and features on all plans.