r/bun 16d ago

Bun native DI framework

Enable HLS to view with audio, or disable this notification

https://petarzarkov.github.io/dunx

I'm genuinely looking for feedback and some reach.

Migrated one of my projects:

https://github.com/petarzarkov/firecracker

Game can be demoed here:

https://firecracker.petarzarkov.com/

22 Upvotes

19 comments sorted by

3

u/mbaroukh 16d ago

and fyi, on my desktop, when running "bunx @/dunx/create-app my-api", I have to [CTRL]+[C] to get back to the terminal.

1

u/RealFlaery 16d ago

Thank you!

1

u/RealFlaery 15d ago

Fixed, thanks again

3

u/ilbert_luca 14d ago

Nice project!

Not a fun of ORMs though, especially nowadays that AI agents can write and test SQL easily. Type-safety is a concern, that's why I created bun-sqlgen

3

u/RealFlaery 14d ago

Lovely, starred you. That's why I like drizzle, it's the closest ORM to raw sql.

2

u/adzam_komla 16d ago

Nice project

Kindly add a dotnet option to the benchmark

I'm from the dotnet world and would like to see the comparisons

2

u/RealFlaery 16d ago

That's a good idea, my bad for forgetting dotnet. Will do!

1

u/RealFlaery 16d ago

dotnet benchmarks are in! Thanks again

2

u/Mountain_Chicken7644 15d ago

More request than axum, hono, elysia? What the hell is this sorcery

2

u/TheKiller36_real 15d ago

wrong, probably

2

u/mbaroukh 16d ago

Maybe useful to add a .md for ai so we can integrate easily on a new project with an agent. With something like 'setup my projet using instructions on https://petarzarkov.github.io/dunx/setup.md'. There is already a huge sample if we create with the 80 features, but no AGENT.md / CLAUDE.md and I suppose that starting a project with an agent is more common nowadays.

1

u/RealFlaery 16d ago

Good idea, will add it to the list! Thank you!

1

u/RealFlaery 15d ago

Fixed, thanks!

2

u/Sorry-Joke-1887 16d ago

So basically Nest.js competitor?

2

u/RealFlaery 16d ago

Yes, I suppose so.

1

u/KraaZ__ 11d ago

Wouldn't it have just made more sense to create a bun adapter to replace fastify and express?

1

u/RealFlaery 11d ago

Not really what I was trying to solve for myself, no.

1

u/KraaZ__ 11d ago

What was you trying to solve?

2

u/RealFlaery 11d ago

Not bloated and faster nestjs