Skip to content

Directus

Headless CMS that adds REST and GraphQL APIs and an admin app to your SQL database

Source available · BUSL-1.1
  • Self-hosted

Listed by , founder & editor

91

Health

Thriving

Overview

Stars

38,631

Last commit

today

Nov 2026

Repository age

13 years

since Dec 2012

Latest version

v12.7.0

Nov 2026

Contributors

–

31 active in 90 days

Releases

23

last 12 months

Docker pulls

51M

directus/directus

Language

TypeScript

Directus wraps an existing SQL database with generated REST and GraphQL APIs and a visual Studio for managing content. Engineers control the schema and access rules, and non-technical teammates edit live data in the Studio. It is written in TypeScript and runs on Node.

It works with Postgres, MySQL, MariaDB, MS SQL, SQLite, OracleDB and CockroachDB. Permissions are policy-based and apply down to the field level, for people and AI agents alike. A built-in AI Assistant and a native MCP server let tools such as Claude, Cursor and ChatGPT work with your data under those same rules. You can extend it with custom endpoints, hooks, interfaces and modules.

You can self-host with Docker or deploy to Railway, or use Directus Cloud. The license is not OSI open source. It is source-available under the Monospace Sustainable Core License, and organizations under 5 million USD in annual revenue and 50 employees can use it free.

It is a direct alternative to Contentful.

Who it's for

Developers with an existing SQL database

Directus generates APIs and an admin interface over the schema you already have.

Skip if: You need an OSI-approved open source license.

Small companies and startups

Organizations under the revenue and headcount limits can use it free.

Skip if: Your organization is above those limits and cannot take on a commercial license.

Teams giving editors a no-code content interface

The Studio lets non-technical staff manage data with field-level permissions.

Skip if: You need rich built-in editorial review workflows.

The problem it solves

Headless CMS products often force you to copy content into their own store and pay per seat. Directus sits on top of your own SQL database, so the data stays where you keep it and editors still get a management interface.

Strengths

  • Generates REST and GraphQL APIs from your database schema
  • Supports Postgres, MySQL, MariaDB, MS SQL, SQLite, OracleDB and CockroachDB
  • Field-level policy-based access control
  • Native MCP server and built-in AI Assistant
  • Extensible with custom endpoints, hooks, interfaces and modules

Trade-offs

  • Source-available license, not OSI open source
  • Free use only below 5M USD revenue and 50 employees
  • Fewer built-in editorial review workflows than Contentful
  • Hosted Directus Cloud plans start at 89 USD per month

Directus replaces

Self-host Directus

Self-hostable
Yes
Docker image
directus/directus
Docker Compose
The repository ships a Compose file
Hosted plan
From $89/month · pricing

In the community

Frequently asked questions

Is Directus free?

Free for organizations under 5M USD annual revenue and 50 employees. Larger organizations need a different license.

Can I self-host it?

Yes. You can run it on your own infrastructure with Docker, or deploy it to Railway.

How is it licensed?

Under the Monospace Sustainable Core License 1.0, a source-available license derived from the Fair Core License.

Which databases work?

Postgres, MySQL, MariaDB, MS SQL, SQLite, OracleDB, CockroachDB and more.

Other Contentful alternatives

Compare all 4 Contentful alternatives →

Similar tools in Content management systems

Strapi

Content management systems

Self-hosted headless CMS that generates REST and GraphQL APIs from your content models

74k 10k today Thriving MIT

Replaces Contentful

Payload

Content management systems

Next.js-native headless CMS and app framework for TypeScript developers

46k 4.5k today Thriving MIT

Replaces Contentful

Tina

Content management systems

Git-backed headless CMS for developers whose editors work with Markdown and MDX

14k 772 today Thriving Apache-2.0

Squidex

Content management systems

API-first headless CMS on ASP.NET Core for teams that build their own front ends

2.5k 527 yesterday Active MIT

cockpit

Content management systems

Self-hosted headless CMS in PHP for serving structured content over an API

5.4k 510 4 years ago Dormant MIT

Webiny

Content management systems

TypeScript headless CMS and website builder for enterprises running on AWS serverless

8.1k 683 today Thriving MIT

Replaces Contentful