deno VS esbuild

Compare deno vs esbuild and see what are their differences.

deno

A modern runtime for JavaScript and TypeScript. (by denoland)

esbuild

An extremely fast JavaScript and CSS bundler and minifier (by evanw)
Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
deno esbuild
165 173
79,962 30,017
1.0% -
9.9 9.8
about 14 hours ago 5 days ago
Rust Go
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

deno

Posts with mentions or reviews of deno. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-19.
  • An Introduction to TypeScript
    4 projects | dev.to | 19 Jan 2022
    2. Runs anywhere where JavaScript does: TypeScript code converts to JavaScript which can then be run in a browser, on Node.js or Deno, and in your apps.
  • Some ways DNS can break
    5 projects | news.ycombinator.com | 17 Jan 2022
    One recent frustration I ran into with Node's DNS is that it doesn't seem to resolve whatever.localhost to 127.0.0.1, unlike my browser.

    Not entirely sure which is doing the right thing by the spec here, but I much prefer the browser behavior, because I would really like to not have to add a hosts entry for everything I reverse proxy from Caddy for doing local HTTPS/HTTP2 development, for production parity.

    Oh, and I also found out that Node also isn't able to use the system-wide certs store (which local HTTPS in Caddy adds to) [1], so in the end even adding a hosts entry didn't work, and I had to revert to plaintext HTTP1. Deno is looking more attractive every day [2].

    Really curious to hear how other folks are doing local HTTPS/HTTP2 setups in node these days.

    [1] https://github.com/nodejs/node/issues/3159

    [2] https://github.com/denoland/deno/pull/11491

  • How to code live browser refresh in Deno
    1 project | dev.to | 15 Jan 2022
    import { serve } from "https://deno.land/std/http/server.ts"; import { dirname, fromFileUrl, join, } from "https://deno.land/std/path/mod.ts"; import { refresh } from "./mod.ts"; // Create useful file path variable for our code. const __dirname = fromFileUrl(dirname(import.meta.url)); const clientFilePath = join(__dirname, "./client.js"); const indexFilePath = join(__dirname, "./index.html"); // Construct the refresh middleware. const refreshMiddleware = refresh(); // Start a server on port `8000`. serve((req: Request) => { // Handle custom refresh middleware requests. const res = refreshMiddleware(req); if (res) { return res; } // Handle requests for the client-side refresh code. if (req.url.endsWith("client.js")) { const client = Deno.readTextFileSync(clientFilePath); return new Response(client, { headers: { "Content-Type": "application/javascript" } }); } // Handle requests for the page's HTML. const index = Deno.readTextFileSync(indexFilePath); return new Response(index, { headers: { "Content-Type": "text/html" } }); }); console.log("Listening on http://localhost:8000");
  • I don't understand the "advantage' of importing by URL in the source code.
    1 project | reddit.com/r/Deno | 14 Jan 2022
  • State of the Web: Deno
    3 projects | news.ycombinator.com | 9 Jan 2022
    Deno’s permission system is broken, you shouldn’t rely on it. Deno developers consistently ignore security issues, high priority bugs take months to fix.

    https://github.com/denoland/deno/issues/11964

    https://github.com/denoland/deno/issues/9750

    API-based access control can’t possibly work because it’s nearly impossible to predict the effect of any single permission. For example, “permission to run specific command” makes no sense without checking the integrity of the binary, controlling the environment for LD_PRELOAD-like hacks and evaluating the code of this command for possible escape hatches. If you want to isolate a program, you need to do it on the OS level.

    2 projects | dev.to | 9 Jan 2022
    Deno is a modern JavaScript runtime, competing with Node.js, that promises features like secure I/O and built-in TypeScript support. Ryan Dahl, Node.js' original creator, created Deno, building it in Rust.
  • Ask HN: Who is hiring? (January 2022)
    28 projects | news.ycombinator.com | 3 Jan 2022
    Deno Land Inc. | Head of Growth | Remote | Full-time | https://deno.com | https://deno.land

    Deno Land is a startup founded by creators of Node.js, the runtime used by millions of developers that laid the foundations for the modern web. We are continuing to innovate with our new runtime called Deno, which is already one of the most popular projects on GitHub [1].

    By repurposing web browser technology for the server software, we aim to accelarate a new generation of extreme low-latency edge applications. Our nascent commercial product [2] is cloud service for hosting software built with Deno; it is one of just a couple implementations of serverless at edge in existence. Our software is being used across the industry by companies like Slack.

    Head of Growth: https://deno.com/jobs/growth

    Apply at [email protected]

    [1] https://github.com/topics/deno

  • How good is typescript as a backend language?
    2 projects | reddit.com/r/typescript | 31 Dec 2021
    There's already such a system: Deno
  • Zsh Plugins Commit TOP
    102 projects | dev.to | 25 Dec 2021
    zeno 🥇 ⏰ 🏃‍♂️ - Fuzzy completion and utility plugin powered by Deno.
  • Announcing js-macros: Quickly prototype Rust procedural macros using JavaScript or TypeScript!
    2 projects | reddit.com/r/rust | 21 Dec 2021
    BTW, are you aware of Deno?

esbuild

Posts with mentions or reviews of esbuild. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-25.
  • I’m Porting the TypeScript Type Checker Tsc to Go
    6 projects | news.ycombinator.com | 25 Jan 2022
    Given that ESBuild [0] is a way better replacement for Webpack already (and similarly written in Go) I can see how we could pretty soon have an entire toolchain written in Go for dealing with compiling JS.

    Hopefully the whole toolchain will be embeddable, too. Being able to do configuration-in-code and produce an executable that does the whole build step in milliseconds would be cool.

    [0] https://esbuild.github.io/

  • How to Use Source Maps in TypeScript Lambda Functions (with Benchmarks)
    11 projects | dev.to | 24 Jan 2022
    Emitting Source Maps is very easy with esbuild. We simply set the boolean property in our configuration. Now when we run the build, we'll get an index.js.map file as well as our index.js. This file must be uploaded to the Lambda service. We'll see how to do that with AWS CDK, AWS SAM and the Serverless Framework a bit later in this article.
  • State of the Web: Bundlers & Build Tools
    17 projects | dev.to | 23 Jan 2022
    Another way that many people are trying to speed up bundling and code transformation is through using more optimized languages like Go or Rust. Currently, the two most notable tools that do this are esbuild and SWC. esbuild was created by Evan Wallace in 2016 using Go. esbuild performed the role of Babel in transforming modern JavaScript, the TypeScript compiler, Terser, and basic bundling all in one package that was significantly faster than any other tools at that time. SWC was created in 2017 by kdy1 using Rust. SWC is even faster than esbuild, although only marginally. esbuild is currently more popular than SWC and is used by projects like Vite, although Deno and Next.js have adopted SWC.
  • Modern Webapps with React, Phoenix, Elixir and TypeScript
    8 projects | dev.to | 21 Jan 2022
    For our React frontend, I've chosen Vite to handle all the tooling for me. It has got all the sane defaults I need for a TypeScript project with React, plus it uses ESBuild which gives us blazing fast feedback during development.
  • TypeScript Features to Avoid
    9 projects | news.ycombinator.com | 20 Jan 2022
    I've just looked this up and it seems to support `const enum` just fine[0]. I remember Babel not being able to process `const enum`, since it goes across module boundaries and Babel does not.

    [0]: https://github.com/evanw/esbuild/issues/128

  • [PT-BR] Usando esbuild com Typescript
    2 projects | dev.to | 19 Jan 2022
    PS C:\Users\Em1dio> esbuild Usage: esbuild [options] [entry points] Documentation: https://esbuild.github.io/ Repository: https://github.com/evanw/esbuild ...
  • Getting errors with TypeORM and SvelteKit — any ideas?
    2 projects | reddit.com/r/sveltejs | 10 Jan 2022
    Your repo is missing /src/lib/User.ts https://github.com/evanw/esbuild/issues/257 indicates that annotation based TypeORM is not going to work in ESBuild
  • First Look at Lambda Powertools TypeScript
    11 projects | dev.to | 10 Jan 2022
    Decorators and TypeScript aren't supported out of the box in Lambda (without using deno) so we'll also need a transpilation step if we go this route. Fortunately this is a mostly solved problem for AWS CDK, AWS SAM and Serverless Framework users. If you want or need to roll your own, esbuild is a great place to start and seems to be the bundler of choice for this purpose.
  • Package your NodeJS Lambda functions individually with esbuild for faster cold-start times
    7 projects | dev.to | 4 Jan 2022
    esbuild is a newer bundler built in Go, which is gaining considerable popularity for its speedy execution time and simple configuration, as well as removing the need for Babel with its native TypeScript support. However, it should be noted it has less features and is less mature than webpack (and probably always will because it is deliberately targeting a reduced feature set).
  • Predicciones 🧞‍♀️💻 2022
    3 projects | dev.to | 4 Jan 2022

What are some alternatives?

When comparing deno and esbuild you can also consider the following projects:

swc - Rust-based platform for the Web

Rollup - Next-generation ES module bundler

webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

vite - Next generation frontend tooling. It's fast!

parcel - The zero configuration build tool for the web. 📦🚀

Tailwind CSS - A utility-first CSS framework for rapid UI development.

Snowpack - ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️

PostCSS - Transforming styles with JS plugins

import-maps - How to control the behavior of JavaScript imports

svgr - Transform SVGs into React components 🦁

ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

terser - 🗜 JavaScript parser, mangler and compressor toolkit for ES6+