Prompt
I need a CMS that exposes content through REST or GraphQL and supports structured components, what should we pick?
Latest observation
If you need a CMS that exposes content via REST or GraphQL and supports structured components (also called content blocks / modular content / dynamic zones), the best fit is usually a headless CMS.
Good options to consider
1. Strapi
- REST and GraphQL support
- Strong structured content modeling
- Supports reusable components and dynamic zones
- Self-hosted, open source
- Good choice if you want control and flexibility
Best for: teams that want open-source, customizable, and self-hosted infrastructure.
2. Contentful
- REST and GraphQL APIs
- Very strong structured content model
- Excellent editorial UI and ecosystem
- SaaS, so less operational burden
- More expensive at scale
Best for: teams that want a polished managed service and are okay with SaaS pricing.
3. Sanity
- GraphQL available, plus strong query API
- Excellent support for structured, composable content
- Very flexible schema definitions
- Great real-time editing experience
- More developer-centric
Best for: content-heavy apps needing highly flexible structured content.
4. Directus
- REST and GraphQL
- Works great with existing SQL databases
- Good for structured data and custom interfaces
- Less “marketing CMS,” more flexible data platform
Best for: projects where the CMS sits on top of an existing database.
My recommendation
If your key requirements are:
- REST or GraphQL
- structured components
- modern headless CMS
then the safest general recommendation is:
Pick Strapi if you want self-hosted and flexible. Pick Contentful if you want managed SaaS and minimal ops. Pick Sanity if you want the most flexible structured content modeling.
Quick decision guide
- Need open source + self-hosting? → Strapi
- Need enterprise SaaS + editorial polish? → Contentful
- Need highly flexible content architecture? → Sanity
- Need to sit on top of an existing DB? → Directus
If you want, I can narrow this down based on:
- your team size,
- hosting preference,
- budget,
- whether you need localization/workflows/preview.