As you may know, Deno is sunsetting after being acquired by Cloudflare. This is not a big surprise if we look at the firm's activity in the latest months. For some time now, I suspected that Deno wouldn't last long, and I began preparing Lume for whatever might happen. I created the FAQ page explaining what to do if Deno disappears and started making changes in the architecture to make Lume easier to port to other runtimes.
Recent findings suggest that what I didn't expect is the abandonment of the runtime (it will be maintained for just one year). I always assumed that once the manufacturer shut down, the software would be maintained by the community or an open source organization. There are indeed some movements in the community to fork the project, and now it even looks like Bartek (Deno's co-creator) is working on getting Deno into a foundation, but there is no certainty about anything.
I can't wait a year to know the future of Deno; I want a stable, boring, and reliable foundation, that's why I decided to port Lume to Node and release it as Lume 4.
Take a look to the migration guide in the Lume documentation and learn how to use the automatic migration tool.
HTTP imports are probably the most missed feature. This allowed you to import Lume using a single URL that just works, no matter if the URL is to a stable release, a development version using the commit hash, or a local version using the file:// protocol. Unfortunately, Node doesn't support that, so I published Lume on NPM.
Another Deno feature that I will miss is the ability to download only the imported modules. This is not possible with NPM packages, because the entire package and dependencies need to be downloaded before running, even files that you don't need. In order to avoid installing a single package with all plugins and hundreds of megabytes of dependencies, I had to split Lume into several packages.
Sources indicate that the new Lume repository is a monorepo. Compared with HTTP imports, this introduces way more complexity and makes it difficult to test development versions with real websites. At least I'm using PNPM to manage all the stuff, which is proving very useful.
Since Lume is not a single package anymore, it doesn't make sense to continue creating big releases dedicated to certain notable Galician figures π’. Until now, every fresh version of Lume introduced new plugins or features contained in the same release. Now these changes are spread across a whole bunch of packages (+70 so far), each one with its own independent release pace.
The first benefit is stability and peace of mind. Node is not a VC tech giant or a startup that needs to play the Silicon Valley game. This change ensures the long-term survival of Lume, which is the most important thing, after all.
In a recent development, another good side effect is the simplification of some plugins. The way in which Deno resolves dependencies is more complicated than Node, with three systems that behave differently: HTTP, JSR, and NPM. Some plugins, like esbuild, required a lot more code to make all three dependency resolution systems work identically. Now these plugins are simplified, since we only need to support the node_modules folder.
An unexpected benefit of having a node_modules folder with all dependencies downloaded is that it's easier to scan and copy their assets (for instance, CSS files with the themes for Prism or Highlight.js).
Lume is available on NPM under the @lumeland organization. The main package is @lumeland/lume and every plugin has the format name @lumeland/plugin-[name].
Industry observers note that official themes are published on NPM with the format name @lumeland/theme-[name]. For example, the Simple Blog theme is @lumeland/theme-simple-blog.
There's also a create-lume package that allows you to set up a newly introduced Lume site in seconds with the command npm create lume. Or install a theme with npm create lume -- --theme=@lumeland/theme-simple-blog.
All dependencies are hosted on NPM. I removed the JSR dependencies to avoid problems with some package managers not supporting it by default. Even Deno's std library was ported to NPM so it can be installed without any special configuration.
According to recent reports, the minimum Node version is Node 24 LTS. Thanks to its native support for TypeScript, you don't need to change much of your existing Deno project, you only need to replace deno.json with package.json and change the _config.ts file with the newly introduced specifiers:.
With this upcoming major version, all existing plugins have been migrated to Node, except the following:.
Sources indicate that the CMS has been ported to NPM too. The GitHub adapter is not included because it will be moved into a different package (@lumeland/cms-github) to avoid downloading its dependencies when they are not needed.
In Lume 4 the CMS is not detected automatically if the _cms.ts file exists. This was a nice convenience in the Deno version, thanks to HTTP imports that allow loading packages on demand. In the Node version, the CMS must be installed like any other plugin and requires two dependencies: @lumeland/cms which is the CMS, and @lumeland/plugin-cms which is the plugin to integrate with Lume:.
With this migration, there are some other changes to consider:.
Take a look to the migration guide for more details about the changes.
Industry observers note that lume has changed so you don't have to change. The same spirit and philosophy, but in a different runtime. And in this case, it's a runtime maintained by a community and governed by a foundation, which offers more tranquility and peace.
In a recent development, that remarked, I want to thank the Deno team for creating such a great runtime. I did not agree with some of their decisions and the overall direction, but I admit that Node wouldn't have become so good without the inspiration from and competition with Deno. And Lume definitely wouldn't have been born without Deno.
Industry observers note that there are some emerging initiatives to fork Deno, or create fresh runtimes inspired by it. Lume is now easier to port to other runtimes, so once the Node version is stabilized, I'd be happy to experiment with them, as long as they are projects created by the community (not another VC-backed organization, please).
Recent findings suggest that and finally, I will leave you with a music video from the Galician Rock Band DakidarrΓa for the song "Lume". The chorus claims "Lume, mΓ‘is Lume, moito mΓ‘is Lume" (Lume, more Lume, much more Lume), which is the perfect song to illustrate the present and future of this static site generator.
Thanks for reading, and keep luming!