TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

72 点作者 modinfo3 个月前

14 条评论

jckahn3 个月前
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 个月前
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 个月前
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 个月前
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 个月前
seems cool, but weird non-oss license ahead warning.
评论 #43152325 未加载
评论 #43150668 未加载
评论 #43150865 未加载
socketcluster3 个月前
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 个月前
This seems very similar to Hasura? What does it compete with them on?
评论 #43280800 未加载
评论 #43152379 未加载
masonwr3 个月前
I have had great luck with Directus building small&#x2F;medium size apps. Keep up the good work!
robertclaus3 个月前
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 个月前
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 个月前
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 个月前
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 个月前
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 个月前
Why would you dump SQL for REST??
评论 #43164067 未加载
评论 #43154397 未加载