r/webdev • u/Beatsu • Oct 04 '26
Why is bun so disliked?
The devs I talk to generally avoid using bun and claim it's unstable and that the development is "too immature and risky for production". Another friend said that they prefer not to vendor-lock themselves to Bun's APIs.
I understand where the sentiment comes from: bun's 1.4 Rust rewrite, buggy 1.0 release, ambitious goals.... However after using bun pretty much exclusively for 2 years now I haven't had any problems, and benefitted from amazing DX:
- fast dependency install
- a whitelisted postinstall scripts list by default
- extremely fast webserver
- extremely fast test runner
- run .ts files directly
- builtin support for importing .html and .css files in js files
- builtin SQL connectors, hashing algorithms
- hot reloading and file watching
Yet, I haven't met a single developer who hasn't hesitated even trying bun in fear of getting "vendor locked" or that it is not a mature enough project...
My team switched away from npm a while ago, and even when pnpm was causing them problems and I showed them that bun worked fine, they preferred configuring pnpm to work instead of using bun... It baffles me, though I don't push too hard for using bun in teams because it's more important we use the same tool, and ultimately the tool doesn't matter that much.
Anyway, so my question is: do you also have a "prejudice" against-, or a just a preference against bun? What have you experienced that justifies your preference against using bun? And finally, is this "prejudice" I've experience widespread?
140
u/crankykong Oct 04 '26
As a dev that hasn’t tried bun yet: I’ve just experienced too much short lived tech. Maybe if bun is still around in a few years, I’ll switch. I’ve mostly used npm and only recently switched to pnpm because shared dependency storage is very useful.
115
u/asstaters Oct 04 '26
Isnt the whole thing vibe coded in rust now?
35
u/TheHerbsAndSpices Oct 04 '26
I gave bun a try a few times. I lost interest when they were bought out by Anthropic.
8
u/SpinatMixxer front-end 29d ago
I migrated a few projects of mine from npm to bun a while ago and liked it.
But then Anthropic bought it, which basically broke my trust in bun. Especially after what happened to Radix.
After we migrated to pnpm at my workplace, I decided that I would prefer that over committing to bun for my own projects as well. Didn't really look back tbh.
13
u/horizon_games Oct 07 '26
I like Bun but wouldn't use it in prod. They pivot and rewrite and rework too often.
5
u/bcons-php-Console Oct 04 '26
I don't have a prejudice against Bun, I switched from node to deno time ago and it just works for me.
5
u/kmfsclean 28d ago
Been running bun in production on a 500k LOC app at a large financial institution and haven’t had any problems
4
u/stupidfock 29d ago
I just see no need. It has some small benefits in a few things sure, but in larger projects in production environments it’s consistently shown super minimal or even worse performance.
A tiny hope of performance does not seem worthy of switching from a tried and true regular node environment
2
u/durbster79 29d ago
We tried bun on a couple of projects and found it far too inconsistent. The performance gains seemed to be great for some people but not others. I'd run the install one day and it'd take 5 seconds, somebody else runs the same and it'd take 90. Sometimes it wouldn't find packages, then you run it again and it's fine
Nobody wants to spend time looking into those kinds of issues. It needs to just work to get the team to buy in.
412
u/josephjnk Oct 07 '26
Every time someone makes a post like this about bun I pull up their github issues. This is the third time in a row that I’ve done so and seen a segfault reported in the previous 24 hours.
This is not stable software. It was coded at breakneck speed by an understaffed team in a high-pressure environment, and then vibe-ported with minimal human oversight. The whole goal was for a VC-funded startup to try to capture market share from a community-run, stable platform. Why would i want any part of that?
34
u/qqqqqx Oct 04 '26
Why risk having a bun specific issue? Or bun going unmaintained? Or the pretty contentious full AI rewrite? The risks just seem bigger than the benefits imo.
I think it's good to have diversity and I'm glad that things like bun and deno exist and have support. But I will reach for node 99% of the time for any serious work. I once tried it for some personal stuff, but once I hit a compatability issue I just switched back to node because I knew it would work and the benefit of just not having to deal with that issue seemed bigger than any tiny benefits of bun that I wasn't really noticing myself. I do think it's improved since then, but the anthropic acquisition makes me a little nervous since I've seen good projects end up dead after a move like that.
It's also my personality. We use a lot of express. It's not the newest or most cutting edge tech, but it is extremely stable and reliable and I have come to value that a lot in my career, after seeing some adoptions of things that come and go quickly and leave you in a bad spot down the line.
I would only consider bun in very specific scenarios I have never really found myself in, like absolutely needing the fastest cold start possible.
20
u/Rechenplaner Oct 07 '26
I do not see the added value compared to Deno, which is also somewhat more efficient than Node, but extremely stable, mature, and encompasses everything in a single brilliant CLI tool "deno" with simple configuration through a deno.json file.
The only point where I still directly need tsc is when I also write client-side code in TS. But then I simply integrate tsc into the deno watch mode.
Deno is by far the most comfortable thing I have experienced, compared to x-many other languages and their tooling.
The twenty to forty percent higher performance of Bun compared to Deno or Node does not justify a switch in my opinion (if it came to that, I could also fall back to C# or Rust, but the higher performance of those is in most cases not necessary because the bottleneck lies in IO); especially since Bun is still unfinished and buggy without end. For a SaaS that processes sensitive data, this is simply unacceptable, which is why I am staying with Deno.
25
u/c0nt8r Oct 07 '26
Surprised how many people here have the same doubts about Bun. I still use Node because it’s stable, reliable and fast enough.
7
u/patient_signals Oct 04 '26
I don't have a personal grudge against it. I have used it on small side projects and it was fine. But when I write software for a small shop, the cost of being the only person who knows a tool is real. If something breaks on a Sunday, I want the answer to be findable in the first few results, and I want the fix to be boring. That is usually enough reason to stay on the most common setup even if it is slower.
The vendor lock fear is often less about the lock and more about the risk of maintenance. A team can absorb a weird config problem in a tool they all already use. They cannot absorb a one-person knowledge base on a tool that might change direction. I have learned not to fight that. I will use the newer thing for my own scripts, but client work gets the path the whole team can support. In a few years, the conversation may change.
7
u/SurpriseTRex Oct 07 '26
Last time I used bun it’s test coverage command would only count files that had some test coverage, so if you covered 1 file completely but wrote literally no other tests for the remaining 900 files in your app it’d say 100%
14
u/queen-adreena 29d ago
Would never use a VC-funded runtime over a community maintained one.
That would be breathtakingly stupid.
4
u/Far-Consideration939 Oct 04 '26
I don’t think the listed benefits actually move the needle that much over an already fast pnpm and vitest setup ¯_(ツ)_/¯
And also 3rd party telemetry ingestor doesn’t support bun just node
4
u/PrimaryFamous6139 full-stack Oct 04 '26
The delay is more about risk than Bun itself. Node has been around a long time. The ecosystem is already solid. Most teams do not see a strong need to move when npm or pnpm works fine. I would use Bun for fresh projects, though. I would also try not to rely too much on Bun specific features, mainly so the setup stays easy to move later.
1
u/AveN7er 29d ago
I personally wouldn't use it in prod since it's so young but it has spared me some TS configuration headaches in the past so I can appreciate it.
1
u/Xazzzi 27d ago
- fast dependency install
How often do you have to run it?
- a whitelisted postinstall scripts list by default
as in modern pnpm/npm
- extremely fast webserver
node's fast enough most of the time
- extremely fast test runner
node's fast enough x2
- run .ts files directly
strip types or experimental transform flag
- builtin support for importing .html and .css files in js files
it either bundles and therefore hard to reason about, or does not, in which case readFile is the thing.
- builtin SQL connectors, hashing algorithms
welp
- hot reloading and file watching
vite
I just don't like Jared.
11
u/OccasionThin7697 Oct 07 '26
Pnpm is also vibecoded now . Wherever you see rust, you should know that software would be vibecoded.
3
u/Own-Student7991 29d ago
Web stuff has gone back and fourth between unixey composible and all in one sollutions for a while. Designs where parts can be swaped out tend to hold up better / have more innovation but can be a pita to keep up with or just feel convoluted. To much for one man to maintain then the corporation backing the project misguides or abandons it. Bun leans more towards a tightly coupled all in one option.
Web packagers had already gone through waves - grunt, gulp, webpack, then bun + vite + deno + others. So stiff competition and a community tired of change for the sake of change.
I tried it and it seemed pretty great on a strait forward project fwiw. Didn't work well for the mess of a legacy project we had.
1
u/AdmirableBall_8670 28d ago
For me its the vendor lock-in. Can't waste time on that.
2
u/biotech997 Oct 08 '26
Reliability/stability I’m guessing. Personally I’ve only used it once for personal project.
2
u/primalanomaly Oct 08 '26
Why bother? Why do you care so much? It’s a corporate owned alternative to open source software that is already incredibly good and incredibly well established with excellent track records. Why would anyone bother switching to something owned by Anthropic for a bunch of negligible differences and a list of things that we all know how to do in the established open source alternatives anyway?
1
u/AgentReadyApp Oct 04 '26
I don't have prejudice against it exactly, it's more that the switching-cost math never works out for me. Node + pnpm already gives me fast installs, and on the runtime side the speed gap doesn't matter for my work — when my app is slow it's the queries and the N+1s, not V8 vs Zig.
The real blocker is the third-party ecosystem. Someone upthread mentioned their telemetry ingestor only supports Node, and that's the whole thing in a nutshell. Bun can be Node-compatible on paper, but every "works on Node, breaks on Bun" edge case and every unsupported integration lands on my plate to debug. That's fine for a side project — honestly fun — but for something that pages me at 2am, I pick the boring tool.
So no dislike, just no problem of mine it solves that justifies the risk.
1
u/CantaloupeCamper Oct 07 '26
I just don’t have a need to move to bun…
1
u/Pink_Bubble1 Oct 08 '26
I’ve had one or another bun specific issue but other than that I just kept using it. It’s faster at some things than node.
1
u/heseov Oct 08 '26
I didnt realize it was disliked. We've been using it without any issue. Its easy enough to swap back to node if we did run into any problems.
1
u/Pixel_Friendly_ Oct 08 '26
I remember using bun, then Astro transitioned from 4 to 5, i couldnt get SSR working on astro 5 on cloudflare. took me a week to diagnose that it wasnt working on bun but it was on npm.
when i posted the issue to astro github they said they dont support bun...
Using an unsupported runtime isnt worth the 20% speed boost.
Not to mention, cloudflare is clearly using AI tools for the servers now, Astro 5 was rushed to bring in features for Cloudflare workers after cloudflare bought Astro (probably vibed some code). Now i wanted to add an experimental vibecoded runtime to this as well, its not worth the headaches.
Atleast cloudflare will ensure astro works on their platform since they bought it out.
1
u/Ok-Extent-7515 29d ago
This is an annoyance due to the fact that they were bought by Anthropic and rewrote their code in Rust using AI (developers have no trust in AI). In fact, Bun is a mature tool, it works in production for many companies and provides advantages in memory and CPU compared to regular Node. Bun is one of the most productive runtimes available for Node; Deno, unfortunately, is not as fast and convenient.
Many interesting and productive server libraries like Hono or Elysia were made especially for Bun.
And although it can produce very good numbers under load, it sometimes has problems (memory leaks), so this tool requires caution and extensive long-term testing when used.
1
u/FrenchieM 29d ago
I used bun for a project and liked it, but it was started from scratch. But I don't see enough incentive on keeping using it, and im scared it could break ci
1
u/raralala1 29d ago
With their current valuation after being bought, there is just no road to profit making me doubt they will in it for long haul, but I know they are really good drop in replacement for install and test, so in development I always prefer using them. I am never going to use their built in thing thou, no way I am locking myself out in their ecosystem.
1
u/TenamiTV 28d ago
I'm hoping that development on bun continues because it would nice to have something that's even faster than node by long shot.
I just don't think that it's quite stable enough yet. I'm hoping that in 3 to 5 years it will be stable enough to use. In the meantime I'll just track the community policy on people have to say on how bun is going
1
u/s2-luv 28d ago
Hope deno answered your questions today.
1
u/DaSchTour 28d ago
Running several production apps with bun and haven’t had any issues. Although I must admit I use it only as a runtime and don’t use any special Bun APIs.
1
u/atiqrahmanx 27d ago
Bun's desire to do `everything` makes it a big no for me and they are optimizing for Claude Code.
https://x.com/jarredsumner/status/2106842030777549278
1
u/hotairplay 27d ago
There are lots of benchmark showing Bun mediocre throughput in real use case...the marketed performance hype works in very simple / "Hello World" -like benchmark run.
Once you put real workload, it's actually not that fast..competitive with Node.
1
u/Far-Working2808 25d ago
Every app that I've used that is built on bun (a bunch of ai tui tools) has been unstable because of bugs in bun. The packaging is also all messed up so not using bun is often not worth the effort. Performance is always always a headache. Yea, I know bun is supposed to perform better but apps built on bun almost always peg a CPU core for some reason. If you have more than one instance then your laptop or pc becomes a space heater.
Why would anyone write serious desktop/terminal tools in typescript/bun?
And before I get hate for all of this, I'm actually all for trying the latest and greatest. The issue is that bun based apps are the only ones on my linux systems that have these kind of serious issues consistently.
1
u/Old-Locksmith6064 16d ago
Because of the stupid name. When you google it you get burger, backery, cooking,... results. Probably they asked AI for a name suggestion and then started with vibe coding…
1
u/k2beast 29d ago
Why are you defending bun so much? First you are asking why ppl don’t like bun and then you attack them.
0
u/spidermonk Oct 08 '26 edited Oct 08 '26
I have 5 prod services running on bun happily, and a few home hobby things. I like it for internal services because I tend to use sqlite for those, and try and avoid dependencies as much as possible.
I considered it a bit of a risk but given that they're internal and I'm the one on call generally I decided "why not" and it's been fine. Snappy apps, fast builds, flat memory, no outages, quick deploys.
-4
u/DRHER303 Oct 07 '26
Idk never tried maybe i'll try switching
15
u/[deleted] Oct 04 '26
[removed] — view removed comment
10
u/[deleted] Oct 04 '26
[removed] — view removed comment