Disillusioned with Deno


It’s inevitable that once you decide to review your own business and media strategy, you start to rethink and review other decisions you’ve made in the past.

One of those decisions is Deno, which I’ve used to most of my personal projects and experiments over the past couple of years. Most of these projects have been on the simpler side – command-line scripts or small websites. I made the softwarecrisis.dev newsletter landing page using Lume and Deno, for example. I used Deno to make most of the prototypes for the research project that followed Colophon Cards. It’s very useful.

There’s a lot to like.

Deno has:

If you have a task that only requires the standard library or the standard tooling, using Deno is a dream – simplicity itself.

If that task requires something more than that, you quickly find yourself in trouble.

The company behind Deno has tried to conquer this problem with a two-pronged attack:

  1. Build Deno-specific versions of most of the common tools and projects that web projects might need.
  2. Hastily roll out node and npm compatibility for their runtime.

This has meant that a single startup has taken on the responsibility of building their own scalable hosting, persistent storage product, persistent execution queue, realtime notification, scheduled execution, front-end React framework, and no doubt a few more by the time you read this post.

They’re even planning to build their own full-featured package registry for Deno 2.0. (Also, it’s quite annoying how much information out there on the future of Deno is only available in video.)

Add to that the attempt to implement full node and npm compatibility for their runtime.

Basically:

  1. Your business model is hosting.
  2. But none of the tools and projects people commonly use are available for your new runtime and hosting environment, so you need to implement your own to fill in the gaps.
  3. Then you discover that the biggest demand for hosting is from clients with legacy code and legacy dependencies, so you kind of have to give them a way to bring them over. Compatibility it is.
  4. Turns out many of the annoying features of the “legacy” system existed for a reason, so you have to implement them yourself, but you obviously do so in newer, modern, more sensible (and less backwards-compatible) ways.
  5. This would be fine – great even – if it weren’t for the fact that you now have to maintain two versions of large parts of your runtime, either as a translation layer from the “legacy” system to your new one, or as two completely independent features that require maintenance.

We’ve seen this strategy before. It’s basically Cloudflare’s, give or take a few details. Most of the differences in execution are because Cloudflare started on the opposite end of this particular chain of sausages: cloud hosting first, then the open source runtime, not the other way around as Deno did.

I find Deno’s tooling to be better, and their runtime much, much easier to use, but the overall strategy for the two companies is the same.

Bun has the same playbook, with their only innovation being that, since they began later, they understood the need for node and npm compatibility from the very beginning.

I don’t think this approach is going to work out that well for any of them.

The “legacy” compatibility effectively removes any incentive to make packages for Deno (or Cloudflare, or Bun). Why use dnt to create packages that are compatible with both Deno and Node when you can just make a Node package? It’s still going to be compatible with both Deno and Node. Deno themselves have seen to that. You’re going to get cross-runtime compatibility either way.

The risk is that Deno will effectively become a platform for running code and projects from the npm ecosystem. Except it will never be as good at “node” as node itself.

There are always going to be gaps in the node and npm compatibility layer because node is a moving target. It’s a living project that’s still changing.


If Deno were maintained by a foundation or open source community, I’d be less worried. It’d inevitably be smaller in scope, but that would be fine. You don’t need world domination to be a successful community-driven software project. It could find its niche, with time.

But you do need to conquer a big chunk of the world to be a successful VC-funded startup.

There is already a disconnect in the Deno ecosystem. Many of the third party modules seem to be stagnant and haven’t been updated in a while. The projects that do seem vibrant tend to be the ones that target browser-compatible platforms in general and so get Deno, Cloudflare, and Bun support almost for free through little specific effort of their own.

Node hasn’t been standing still either. They’re adding support for many of the features that made Deno special, such as built-in tooling, a test runner with coverage, and HTTP imports. Even import maps are on their roadmap.

The fate of Node also doesn’t depend on the fate of a single startup or tech company.

The npm ecosystem remains a strategic liability, but adding support for import maps and HTTP imports will go some way to mitigate that and in the meantime you can install node packages directly from git or use an npm-compatible third party repository. Any git remote URL should work with npm install – no GitHub required.

Seeing money and talent drain out of the software ecosystem, companies switch en masse to inherently conservative LLMs for development, and a growing frustration among software developers in general, it’s hard to envision a future where Deno or Bun win out in a direct competition with Node.

I’m not convinced I want to be using either of them once their VC-backed startups become desperate.

For those of us who do like to work in JavaScript, this means that Node is our best bet for the back end in the long term.

It’s probably time to try to recreate in node what has made Deno such a joy to work with.

But Node’s improvements aren’t the only issue facing Deno.

The big one is that the logical alternatives to Node – the “no Node” work environments developers are likely to reach for aren’t going to be based on JavaScript. Import maps mean that browsers effectively have an API surface that non-JS projects can use to build a dependency management system. Much of the tooling surrounding JavaScript is now implemented in Rust, not JS – much of it driven by Deno itself – and that makes it more easily accessible outside both the Node and Deno ecosystems. The WASM component model additionally promises to make many dependencies runtime-independent, with the Rust-based tooling around JS being logical initial targets.

The “no Node” alternative for many won’t be another JavaScript runtime, but instead something completely different.