
Payload
Next.js-native headless CMS and app framework
Payload is an open-source TypeScript framework that installs into a Next.js app folder. It provides a backend, admin UI, and APIs for content-driven or custom applications.
Sanity by Sanity is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Sanity is Strapi, with 73.6k GitHub stars. Other open-source alternatives to Sanity are Payload, Directus, Grav and EmDash CMS (2 more below). Most Sanity alternatives here are Content Management Systems (CMS) tools. The first 1 say in their own README or website that they can replace Sanity (the quote is shown under each one); the other 5 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.

Next.js-native headless CMS and app framework
Payload is an open-source TypeScript framework that installs into a Next.js app folder. It provides a backend, admin UI, and APIs for content-driven or custom applications.
“Payload as an alternative to Sanity”
These projects don't call themselves a Sanity alternative, but two independent checks of their own description found they do the same main job.

Open-source JavaScript headless CMS with auto-generated APIs
Strapi is an open-source headless CMS for defining content models, editing content in an admin UI, and exposing REST and GraphQL APIs to any frontend.
“Strapi is an open-source, self-hosted headless CMS that lets developers build content APIs fast while giving content creators a friendly editing interface.”

SQL-backed headless CMS with APIs and Studio
Directus wraps a SQL database with auto-generated REST and GraphQL APIs, a visual Studio for teammates, and MCP connectivity for AI tools on your data.
“The collaborative backend and self-hostable headless CMS over any database. No-code interface, REST + GraphQL APIs, and MCP for Claude, ChatGPT, and Cursor.”

Flat-file PHP CMS with API and modern admin
Grav is a file-based web platform using Markdown, YAML, Twig, and PHP. Recent releases add a first-party REST API, MCP server, and SvelteKit admin for headless and agent-driven workflows.
“Grav is a Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS, now with a first-party REST API and MCP server for headless and AI use.”

Agent-ready full-stack TypeScript CMS for Astro
EmDash is a TypeScript CMS built as an Astro integration with an admin panel, REST API, auth, media, and sandboxed plugins. It targets Cloudflare or Node.js with SQLite and structured Portable Text content.
“An open source Astro CMS built for humans and agents.”

Self-hosted AI-programmable headless CMS on AWS serverless
Webiny is an open-source content platform you deploy into your own AWS account. It combines a headless CMS, visual website builder, and file manager with a TypeScript extension framework.
“Webiny is an open-source, self-hosted headless CMS platform built for enterprise scale. Multi-tenant, customizable, and fully under your control.”
These projects also replace Sanity, but have had no code changes for over 18 months. Prefer an actively maintained alternative above. (Archived and discontinued projects are not listed.)

ASP.NET Core CMS for headless and decoupled sites
Mixcore CMS is an open ASP.NET Core content platform with multilingual content, modular architecture, and APIs for web or mobile front ends. Docker images and dotnet SDK builds host the admin portal and services.
“🚀 A future-proof enterprise web CMS supporting both headless and decoupled approaches. Build any type of app with customizable APIs on ASP.NET Core/.NET Core. Completely open-source and designed for flexibility. Since 2018.”
Yes. 7 open-source projects can replace Sanity, for example Strapi, Payload and Directus. 1 of them says so in its own documentation; the other 6 do the same job.
Strapi (73.6k GitHub stars) is the most popular open-source alternative to Sanity on GitHub. Payload has the most recent code changes. To run it on your own server, look at Strapi, Directus and Grav, which are self-hostable. The best choice depends on your needs: compare them side by side, for example Strapi vs Payload.
6 of the 7 projects listed here are free to use under an open-source license, with no license fee: all permissive (such as MIT). Directus is source-available: the code is public, but the license limits some uses. Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.