TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Directus – real-time REST and GraphQL API of any SQL database

72 pointsby modinfo3 months ago

14 comments

jckahn3 months ago
Directus has its small-scale and short term benefits, but I can’t recommend building a production-grade app with it. My company uses Directus and we all hate it and are desperately trying to get away from it. Avoid.
评论 #43152431 未加载
评论 #43151013 未加载
评论 #43154941 未加载
评论 #43151351 未加载
xvinci3 months ago
Microsoft has something very similar (i did not do a full feature comparison, just speaking about apis and auth) which is mit licensed. Works also with on-prem databases despite it&#x27;s name. <a href="https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;data-api-builder">https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;data-api-builder</a>
评论 #43154952 未加载
RadiozRadioz3 months ago
Had a play around with it, I&#x27;m impressed. I was very worried and put-off when I saw the nice-looking UI and flashy transitions, but this actually plays quite nicely with my database.<p>Unfortunately it doesn&#x27;t work on Firefox 115 ESR due to<p><pre><code> Intl.Segmenter is not a constructor </code></pre> It&#x27;s just a blank screen. So it is infected by the JS change treadmill somewhat.<p>I have a few other thoughts from my first try:<p>When using Directus on a pre-existing DB, your foreign keys need to have exactly the same type as the primary keys they are referencing for Directus to pick up on the relationship. For example, if you have `customer.id INT PRIMARY KEY`, you must reference it with `order.customer_id INT FOREIGN KEY REFERENCES customer (id)`. You cannot do `order.customer_id INT NOT NULL FOREIGN KEY REFERENCES customer (id)` , else Directus won&#x27;t notice.<p>I also found it fairly slow to pick up on schema changes I made in the DB directly, and I didn&#x27;t see an obvious way to force it to discover.<p>When using Directus to manage the DB schema, I found the tables it created to have a generally sane and simple schema, which is refreshing. I liked the choices here more than nocodb.<p>I can&#x27;t comment on the REST&#x2F;GraphQL generation. I&#x27;m mainly interested in the admin panel features.<p>The compose file they provide here works: <a href="https:&#x2F;&#x2F;docs.directus.io&#x2F;self-hosted&#x2F;docker-guide.html" rel="nofollow">https:&#x2F;&#x2F;docs.directus.io&#x2F;self-hosted&#x2F;docker-guide.html</a><p>Overall I think this works best if your data model is very clean. It would probably be painful to onboard a complex legacy DB. I think this is totally fine as a small-scale org data management tool. I was going to make one of these, but I don&#x27;t need to now. Thanks for sharing.
thederf3 months ago
At work we have two applications in production with Directus, a CMS and a CRM, both highly specialized (~35 custom extensions) for our use-cases.<p>We&#x27;ve had our teething issues, mostly with migrations and the UX in some areas, but overall it has saved us a ton of dev time and been a great force multiplier for us.<p>I also use it at home to manage my notes, tasks, and such as structured data.
Keyframe3 months ago
seems cool, but weird non-oss license ahead warning.
评论 #43152325 未加载
评论 #43150668 未加载
评论 #43150865 未加载
socketcluster3 months ago
I made something kind of similar <a href="https:&#x2F;&#x2F;saasufy.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;saasufy.com&#x2F;</a> but currently only tied to a single database but particularly good at scaling real-time updates. I&#x27;m looking for a non-tech co-founder who can drive to a niche use case.<p>As an example of its capabilities I built this from scratch without frameworks and completely server-less (basically just a .html file, .css file and a couple of .js files hosted only on GitHub): <a href="https:&#x2F;&#x2F;www.insnare.net&#x2F;app&#x2F;#&#x2F;dashboard&#x2F;company-filter&#x2F;tags%20index-equals%20position%3Aelectronics-engineering&#x2F;company-page&#x2F;1&#x2F;companies&#x2F;&#x2F;people-filter&#x2F;tags%20contains%20position%3Aelectronics-engineering&#x2F;minimal-view&#x2F;hardware" rel="nofollow">https:&#x2F;&#x2F;www.insnare.net&#x2F;app&#x2F;#&#x2F;dashboard&#x2F;company-filter&#x2F;tags%...</a><p>That entire app is less than 4K lines of code; all frontend code.
4ndrewl3 months ago
This seems very similar to Hasura? What does it compete with them on?
评论 #43280800 未加载
评论 #43152379 未加载
masonwr3 months ago
I have had great luck with Directus building small&#x2F;medium size apps. Keep up the good work!
robertclaus3 months ago
I used this to bootstrap a small community page with a handful of admin users that entered content. The users were technical enough to be comfortable with the interface, but wouldn&#x27;t have been able to use SQL directly. It saved building out the CRUD interfaces with the ~4 hours a week of dev time we had at the time. It took us a few months to get around to the CRUD interfaces, so it felt well worth it.
__jonas3 months ago
I’m using this as an admin UI on top of an existing database, it works pretty well for that, it’s nice that it doesn’t dictate your db schema. I don’t really see the point of their “flows”, and I’m not sure how the auto-generated APIs hold up under load, but I’d recommend it for content management if you are ok with the license (it’s not FOSS).
denvrede3 months ago
Does anybody know something like Directus (building REST APIs on top of Postgres) with the ability to hook in custom authorization logic? (E.g. to do FGA checks before returning data)
评论 #43153509 未加载
评论 #43152298 未加载
pacifika3 months ago
If you’re dealing with pure SQL of a third party system, instead of an API, then you’re designing the API without domain knowledge. This is a problem in my experience.
aerhardt3 months ago
I wouldn&#x27;t use anything like this to build it a user-facing app, but how does it compare to something like Django admin?
评论 #43157389 未加载
esafak3 months ago
Why would you dump SQL for REST??
评论 #43164067 未加载
评论 #43154397 未加载