Node.js is no longer the only serious place to run JavaScript on the server. Bun focuses on speed and an all-in-one toolkit; Deno focuses on security, web standards and first-class TypeScript. Both now run much of the npm ecosystem. This course teaches you to use each one properly, compare them honestly with Node.js and decide where they belong in your projects.

What you'll learn

  • How the three runtimes differ: engines, design goals, compatibility and release pace
  • Running TypeScript directly in Bun and Deno, and what still needs type checking
  • Bun's toolkit: bun install, bun run, bun test, the bundler and workspaces
  • Bun's built-in APIs: Bun.serve, the SQL and SQLite clients, file I/O and the S3 client
  • Deno 2: deno.json, package.json support, npm specifiers and the JSR registry
  • Deno's permission model and why it matters for scripts and untrusted code
  • Deno's built-in formatter, linter, test runner, deno serve and deno compile
  • Web-standard APIs shared by both: fetch, Request, Response, streams and Web Crypto
  • Running frameworks such as Hono and Express, and spotting Node.js compatibility gaps
  • Packaging single-file executables, Docker images and deploying to servers and edge platforms

Who it's for

  • Node.js developers curious whether Bun or Deno can simplify their tooling
  • Teams evaluating a runtime for a new service, CLI tool or set of scripts
  • Developers writing internal tools who want TypeScript without build configuration

Prerequisites

  • Comfortable with JavaScript or TypeScript and npm
  • Experience building a small Node.js server (see Node.js & Express APIs)
  • Command-line basics

Outcomes

By the end of this course you will be able to:

  1. Build, test and ship the same small service in Bun and in Deno.
  2. Use each runtime's built-in tools in place of separate packages where it makes sense.
  3. Assess npm and Node.js compatibility risks before a migration.
  4. Make a reasoned choice between Node.js, Bun and Deno for a given project.

Projects you'll build

  • URL shortener API in Bun: an HTTP service using Bun.serve, SQLite and bun test. It practises Bun's built-in server, database client and test runner.
  • Sandboxed automation CLI in Deno: a command-line tool that fetches reports and writes files, with tightly scoped permissions, compiled into a single executable. It practises permissions, JSR packages and deno compile.
  • Portable Hono service: one web-standard codebase that runs on Node.js, Bun and Deno, with benchmarks and a compatibility report. It practises writing runtime-agnostic code and measuring performance fairly.

Tools you'll use

Bun 1.3 or later, Deno 2, Node.js 24 LTS for comparison, Hono, JSR and npm, Docker, and a load-testing tool such as oha or autocannon.

Course outline

ModuleTopic
1The runtime landscape and design goals
2TypeScript without a build step
3Bun as package manager, runner and test runner
4Bun.serve, SQL, SQLite and file APIs
5Deno 2 basics, deno.json and npm support
6Permissions and security in Deno
7Deno's built-in toolchain and JSR
8Web-standard APIs across runtimes
9Frameworks and Node.js compatibility
10Benchmarking fairly
11Compiling binaries and container images
12Choosing and migrating a real service

FAQ

Should I move my Node.js app to Bun or Deno?

Not automatically. Node.js remains a safe default with the widest support. We show how to test compatibility and measure real gains first, and many teams start by using Bun or Deno for scripts and tooling only.

Are the benchmark claims true?

Headline benchmarks often measure narrow cases. You will learn to benchmark your own workload, where the difference may be large or negligible.

Does this cover serverless and edge hosting?

We deploy to a server and an edge platform briefly. For more depth, see Serverless with AWS Lambda and Cloudflare Workers.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.