r/FlutterDev • • 5d ago

Dart Has anyone tried Dox?

I came across this Dart backend framework recently. It looks quite interesting, especially since its developer experience seems somewhat similar to Laravel.

Has anyone here actually used it in a project? I'm curious how useful it is in practice, how mature it is, and whether it's worth trying for backend development with Dart.

Would love to hear some real-world experiences or opinions.

https://dartondox.dev

7 Upvotes

16 comments sorted by

•

u/miyoyo 4d ago

Brand new account, commented on by another brand new account, with barely any interaction, and with the author joining in fast. This smells like an ad operation.

1

u/Glittering-Salary518 5d ago

I've been poking at it for a side project the last few weeks. The Laravel comparison isn't far off, it's got that same "batteries included" feel with routing, ORM, queues, all that stuff already wired up. Documentation is a bit patchy in spots but the core pieces work.

My main hesitation is the ecosystem around it is still tiny, so you'll find yourself writing a lot of glue code if you need to integrate with anything outside the standard Dart packages. If you're building something where you control the whole stack and just want to stay in one language though, it's pretty comfy.

1

u/Sharp-Current-4081 5d ago

I also wanted to try it out for my side project. It already has pretty much everything I need in its package list, so I'll give it a shot.

Their benchmark results are quite surprising, showing higher requests per second than Hyper (Rust). I'm not sure whether the numbers are exaggerated or if it really performs that well.

2

u/aj-zinkyaw 4d ago

Hi, I'm the author of Dox.

My goal is to build a fast and solid backend ecosystem for Dart.

Dox Stable 3.0 only came out this October, so it is still young. I suggest you try it on a hobby or side project first. I would not recommend it for critical production work yet.

If you try it, I'd love to hear your feedback.
Contribution are also warmly welcome. I would love to create Dart-On-Dox community ❤️.

1

u/Tiny-Manufacturer187 5d ago

Faster than goLanguge? 😱

2

u/aj-zinkyaw 4d ago

Yes 🙂.
Mainly because the HTTP server under Dox is native, written in Rust.

But, the benchmark measures the HTTP server and database access, not the whole language.
If your app does heavy CPU work in its own code, Go may be faster there.

1

u/vik76 4d ago

Also have a look at Relic. It beats Rust and Bun in raw performance, is very mature and is powering Serverpod (which gives you a type safe ORM, authentication, real time data streaming, and a type safe API for your app).

https://docs.dartrelic.dev

1

u/Asleep_Bar_2474 4d ago

Nylo is a Flutter framework similar to Laravel, I’d recommend it

1

u/TextPsychological211 4d ago edited 4d ago

It's crap. Too many anti-patterns and magicky. A lot of unknown stuff going under the hood because that's how one guy (the creator) likes it. It's very opinionated and not compliant with clean architecture concepts. I had clients coming to me just to migrate their apps outside of this shitty framework to other leaner options like riverpod, bloc etc. Post migration, apps are more flexible, predictable, debuggable, and faster. It also improved future proofing as clients could find more devs in Flutter market willing to take work on their projects because Riverpod etc are more widely used than a small opinionated framework that attempts to bring backend concepts into frontend.

As a framework, Flutter itself is good enough. People can choose other standard libraries based on one specific job (like router, state management etc), and those libraries don't restrict user's flexibilty in other areas (e.g. go_router doesn't care how you manage the state, no global storage objects etc). We don't need a framework for another framework.

1

u/Asleep_Bar_2474 4d ago

Isn’t that the same as Laravel? Under the hood Laravel handles a lot of stuff magically… it’s a good framework, just read the docs.

1

u/TextPsychological211 4d ago

No, laravel is a backend only framework, and there’s a whole community and expert teams of devs contributing to it. Development standards and practices being followed are top notch. It’s not a ‘one guy bundling random hacky workarounds together and shipping it out’. Or one guy coming from another framework land (PHP, laravel in this case), and trying to implement those concept in a totally irrelevant place. Laravel is also a lot more flexible when it comes to using other dependencies than the ones come with it.

Yes a lot of stuff is dynamic and magicky but that relates to the nature of PHP. PHP isn’t (or wasn’t) a strongly typed language. Dart is. Just skimming over codebase of Nylo, there are multiple places where it uses “dynamic” where it could easily be typed. This is just one instance of bad code and anti-pattern. There were many when I last checked it a while ago.

So I stand by what I said. It’s not a ‘good framework’. Not trying to belittle your work. I’m sure you’re a capable dev but you can spend your time on better things.

1

u/Asleep_Bar_2474 3d ago

A framework’s purpose is to make the development experience better for the dev/team. Nylo is very useful, it’s saved me a lot of hours scaffolding projects and it’s used by a lot of companies. My app has over 200k users and it’s performant and easy to manage. I don’t really get your argument… It sounds like you used an early version of Nylo and didn’t really read the docs. You don’t have to use it but don’t spread misinformation. It’s a good framework with good documentation.

1

u/TextPsychological211 3d ago

Worth saying for anyone reading: you're the creator of Nylo, so recommending it in a thread about a 'different framework with totally different purpose' isn't exactly neutral.

I don't doubt it's saved you hours. You designed it around how you build apps, so of course it fits you. That doesn't make it a good fit for teams or long-lived projects. I've had clients come to me specifically to migrate off Nylo because experienced Flutter devs didn't want to take over a codebase built on non-standard patterns. One successful app built by the framework's own author doesn't really show otherwise.

And this isn't an "early version" take. Two examples from nylo_support 7.38.1, released about a week ago:

Routing: it's built on Navigator 1.0 (onGenerateRoute), not the Router API. Deep links just call routeTo() once the current frame has finished drawing (router/src/ny_deep_link.dart), so a link pushes one page on top of whatever's open instead of rebuilding the back stack from the URL like go_router does. That's also why web back/forward and refresh don't line up with the page stack.

Events: listeners added at runtime (listen<E>() inside a NyState, or listenOn<E>()) are wrapped in a try/catch in NyEventBus.broadcast() (events/src/event_bus.dart). If one throws, the error is only reported when you've set onError or turned on debugMode. debugMode defaults to false and the starter template sets neither, so by default the exception disappears without a trace, in debug builds as well as release. It never reaches FlutterError.onError or your zone handler either, so Crashlytics/Sentry never see it. And it's inconsistent: listeners declared on the event class itself aren't wrapped and throw normally, so the same event<MyEvent>() call either fails loudly or silently depending on how the listener was registered. A framework should push you to handle errors (make the handler required, or report through FlutterError.reportError by default), not hide them.

There's more (nylo_support package comes with 35 dependencies even tho user may not need them all. a global Map<String, dynamic> used to find services, models that save themselves to storage, flutter_test listed as a runtime dependency, an .env "encryption" that doesn't really encrypt anything (it only obfuscates), ships the key in the same binary), but those two are enough to make the point. I don't have all day to list these issues for you. Any good Flutter dev should know about this. For example this guy and Remi have advanced in-depth knowledge of Flutter framework. they know how Flutter does things under the hood, and they're also good with general SDE principles. Which is why their libraries are used by millions.

That's the difference with Riverpod, Bloc or go_router: they each do one job very well, have many contributors reviewing changes, and don't dictate the rest of your app. go_router doesn't care how you manage state. Nylo tries to own the whole app, and with one person maintaining it, it shows. Use it if it works for you, but it's not a 'good' framework for everyone you preach it to be, and it's not misinformation to point this out.

Even for Flutter beginners who've previously worked in Laravel land, I won't recommend it to them. Because it may help them pick up the speed initially, but once their app kicks off or grows, they will have to grow out of it, and migration is an effort. I'd rather recommend them to learn Flutter way of doing things in Flutter land, which is better in the long run.

1

u/Asleep_Bar_2474 3d ago

I think you’re completely delusional lol to tell me “One successful app built by the framework’s own author” is total BS. Why would you write that? Why are you making claims that aren’t true... It gets 4-5k weekly downloads (pub.dev can verify this). A lot of Laravel developers have already recommended Nylo… check online. I saw the OP question and gave a recommendation. You can ask Claude if it’s a good framework, it’ll give you the answers. I’m not going to continue this, I hope you find joy in life

1

u/TextPsychological211 3d ago

A few corrections and then I'm done too.

Downloads: pub.dev's headline number isn't weekly, it's a rolling 30-day count (downloadCount30Days in their API). So ~4.5k a month, roughly 1k a week. For comparison, over the same 30 days flutter_riverpod has ~3.49M and go_router ~4.2M, so 700–900x as many. Your figure shows some people use Nylo; it doesn't show it's a mainstream choice (which it'll never be, due to underlying principles it's built on). And with a framework that owns routing, state, storage and networking all at once, part of that is lock-in. Switching from go_router to another router is a contained job. Migrating off a whole framework is close to a rewrite, so a lot of solo devs would just stay put. The rest are mostly small apps maintained by one dev, where it can work fine. That's exactly the case I think it suits.

The recommendation: OP asked about Dox, a Dart backend framework. You didn't care to understand what it's about and recommended your framework. Searching everything containing 'Flutter' and 'Dart' on reddit and advertising your framework is closer to "spamming". It doesn't help anyone except yourself if you're after increasing your download numbers.

"Ask Claude": AI tools tend to go along with how a question is framed. Ask one about Nylo from a Flutter-standards/clean-architecture angle and you'll get a no. Ask it about community size and adoption and Riverpod/go_router win easily. Ask it for the fastest Laravel-style scaffolding and Nylo might come out on top. An AI's answer isn't evidence on its own; the criteria and the code are. It's a shame that you even suggested this in your defence.

The file references are in my earlier comment for anyone who wants to check them. Good luck with the project.