Blog
Strapi or Directus? Choose by where your project is complex
Strapi and Directus are both good headless CMSs, but one lets code own the data model and the other lets the database own it. A comparison from two production systems we run, with the questions that help you choose.
Published
Any team starting a new website or app runs into the same question. Where should the content and data live, so that people who are not developers can edit it, and the site and apps can read it through an API? Search for an answer and you find a long list of headless CMSs, with two names near the top of most of them: Strapi and Directus.
Most feature comparisons say the two do much the same thing. Both have an admin panel, both serve REST and GraphQL, both can be self-hosted. The real problems tend to surface months after launch: the day a client asks for one more field and the team discovers it has to wait for a developer to change code, rebuild and redeploy. Or the reverse: the day you need complex validation logic and find the tool you picked was never designed for heavy custom code.
The difference behind those moments is not in any feature table. It is in what each tool treats as the owner of the data model.
At GIPSIC we run both in production. The first is a canteen payment system we built for muRata, the electronic components manufacturer: staff pay for meals with an employee card that works as a top-up Rabbit card, and the backend is Strapi (read about the project). The second is the site you are reading now, which runs on Directus. This post explains why the same team chose differently, so you can decide for your own project.
The real difference is who owns the data model
Strapi starts from code. Each content type is a schema.json file in the project, with its own controller, service and routes. Smart Canteen has six of them: canteen, shop, menu, menu group, dish and transaction. They live in git, go through code review, and ship with the rest of the code.
Directus starts from the database. A collection is a real SQL table. Add a field in the admin and the table changes, and the REST and GraphQL APIs expose the new field straight away. No build, no restart.
In one, the database is an output of the code. In the other, the API is an output of the database. That single difference leads to two quite different ways of working.
Strapi shines when you have logic to write
A canteen payment system is not just storage. Every transaction has to be checked before it is saved, and things have to happen once it is.
Strapi served us well here. It gives you places to run code before and after a write, so the custom validation and the post-transaction actions were plain JavaScript in the same project: testable, readable months later, and easy for a new developer to follow.
When logic is the heart of the system, keeping the model in the same codebase as that logic is an advantage, not a cost.
Two honest caveats. We ran each tool on one project, so part of what follows is the shape of the work and not the tool. And Directus is not short of places to put logic either: it has hook and endpoint extensions as well as Flows. We reached for Strapi here because on Smart Canteen the logic is the system, not because Directus could not have hosted it.
The price you pay each time the model changes
The same property has a price. In production, Strapi's Content-Type Builder is switched off; it only works in development. So when the client asks for one more field, the schema changes in code, and the app is rebuilt and redeployed.
We paid that price on Smart Canteen. Each change and deploy took roughly 10 to 30 minutes, and that was not the end of it. Because money moves through the system, every deploy was followed by a long round of testing before we trusted it again.
For a system whose shape has settled, that is fine. A handful of changes a year costs little. For a company website whose content and structure move almost every week, it becomes the bottleneck.
Why this site is on Directus
When we started this site in mid-August 2026, Strapi was the first thing we considered. We know it well and we know it is good. But looking at how the site would grow, we chose Directus because the data model can change without stopping the API or redeploying it.
The back office now holds 30 collections we created ourselves: posts, works and solutions, but also the welcome banner, the navigation, redirects from the old WordPress site, job applications and cookie consent records. Many of those were not in the plan on day one. They were added when the need appeared, and the site never had to stop for any of them.
Flows are the other part we have come to rely on. A flow called Revalidate the website tells the front end whenever content changes, and the update is live within about a minute. We never deploy to publish content. We deploy only when the front-end code changes.
"No developer needed" does not mean no code
This is the most common misunderstanding. When people hear that Directus lets you change the model without a developer, they picture everything being done by clicking around the admin.
In practice, this site has 54 scripts for Directus, and 21 of them create or change collections, fields and relations through the API. The reason is that we run two environments, UAT and production. Change both by hand and sooner or later they drift apart. Scripts make each change repeatable, reviewable and kept in git.
So the real line is not code versus no code. It is whether changing the model means stopping the system. With Directus we run those scripts against a live instance. And for small changes that do not need to cross environments, someone who does not write code really can make them in the admin.
Permissions, languages, and the part we have not needed
Two more pieces of the model only show themselves once real people use the system.
Permissions in Directus sit on a collection, an action and a filter, which means they reach individual rows. The public policy on this site is one of those filters: it reads published rows and nothing else, collection by collection, and every collection that is not named in it stays invisible.
Languages are data here too. Every content collection has a translations sibling and a languages collection beside it, so Thai and English are rows rather than two deployments.
And one thing worth saying plainly: Directus also offers content versioning, and we have not switched it on. We have not needed it. On the Strapi side the equivalents are priced, and the version matters — in Strapi 5, Content History is on the Growth and Enterprise plans, while Review Workflows and Audit Logs are Enterprise only. Content History arrived with Strapi 5, and Smart Canteen is still on Strapi 4, so it has none of them. If editorial governance is part of what you are buying, price it before you choose.
Why scripts, and not schema snapshot
Anyone who knows Directus will ask the obvious question here: it ships with schema snapshot and schema apply, so why write scripts at all?
Because a snapshot is a snapshot of the schema. The CLI describes it as collections, fields and relations and their configuration. The public policy above is not in it. Neither is the Revalidate flow. That gap is the whole reason tools like directus-sync and schema-sync exist, and the list they carry on top — flows, operations, permissions, policies, roles, presets, settings — reads like the list of things we would still have had to move by hand. The schema diff endpoint is strict in another way too: by default it refuses to apply across different Directus versions.
So a snapshot would have covered the collections and the fields, and we would have needed a second mechanism for the policy and the flow anyway. One mechanism carries both, and each change lands as its own reviewable step in git instead of one whole-state file.
Hidden costs worth knowing up front
Two things rarely show up in a feature comparison.
The first is version lifetime. Smart Canteen still runs on Strapi 4. Strapi stopped fixing bugs in it at the end of October 2025 and stopped shipping security fixes at the end of April 2026. Moving to Strapi 5 is not a button: there are breaking changes in server code and in the response format that client apps consume, so it has to be planned as a piece of work. Our own system is in exactly that position, and we would rather say so. Nor is this unique to Strapi. With any framework where the model lives in code, a major upgrade will touch your code.
The second is licensing. Strapi Community is MIT. Directus is under BSL 1.1: free in production for organisations with total finances under 5 million US dollars, with a commercial licence required above that. It does not affect us, but if you build for large organisations, check it before you quote.
The short version
| Strapi | Directus | |
|---|---|---|
| Where the model lives | a schema.json in the project, in git |
the SQL table itself |
| Changing it in production | code change, rebuild, redeploy | API or admin, no restart |
| What that cost us | 10 to 30 minutes a change, plus testing | a script against a live instance |
| Where custom logic goes | controllers, services, lifecycle hooks | hook and endpoint extensions, Flows |
| Permissions | roles and permissions; the editorial governance tiers are paid | collection, action and filter, down to the row |
| Licence | MIT (Community) | BSL 1.1, free under USD 5m total finances |
| Lifetime to plan for | Strapi 4 is past both support dates; Strapi 5 is a planned migration | each release converts to GPL3 after three years |
How to choose
"It depends" is not much of an answer, so here are the questions we would ask.
If the complexity is in business logic, with calculations, checks and follow-on actions that must be tested hard, and the data model should settle once the system is live, Strapi fits. That is why Smart Canteen still runs well today.
If the complexity is in the data itself, with collections that keep arriving, content managed by people who are not developers, or an existing SQL database you want to wrap in an admin and an API without moving it, Directus fits better.
If your project has both, ask which will change more often over the next two years: the logic or the shape of the data. That answer usually points the way more clearly than any feature list.
Questions we get asked
Can Directus run custom business logic? Yes, through hook and endpoint extensions and through Flows. The question is never whether it can, but whether the logic or the shape of the data is the harder half of your system.
Can Strapi sit on a database we already have? It will use a relational database, but it expects to own the shape of it. Where a database is already the source of truth for other systems, that is the case Directus was built for.
Is Directus really free? Under BSL 1.1 it is free in production for organisations under 5 million US dollars in total finances. Above that, a commercial licence. Check it before you quote.
For us the answer came out differently on two projects, and we still run both. If you are weighing the two for a system of your own, talk to us. We are happy to share what we have run into on each side. And we will come back to this in six months, when the Directus side has run long enough to have scars of its own.
About the author
Film — Wisit. A businessman who still does his own BA work more often than he probably should, and writes a fair bit of code, front and back. Runs two or three small businesses. Follows technology and business obsessively, in Thailand and everywhere else. Off the clock: physics, astronomy, DIY, and anything to do with networks. Music always on, though he cannot sing. Plays instruments anyway, badly. Plays a lot of sport, racket sports above all. Not much of a traveller by himself, but happy to take Mint anywhere in the world. A man who fears — sorry, loves — his wife. One flaw: he barely touches video games.
Written with Claude Opus 5.5