The bun runtime is an integrated JavaScript and TypeScript toolchain built around Apple’s JavaScriptCore engine. It can run files, install packages, run tests, and bundle code from one binary. Production readiness still depends on the Node.js APIs, packages, platform, and observability stack your app actually uses. Treat Bun 1.4.0 as a candidate runtime, not a drop-in guarantee.

This guide is a bun vs node evaluation, not a vendor race. Versions below were current on 31 August 2026. Recheck the living docs before you freeze a pin.

What the Bun runtime is

People searching bun js usually want one binary that replaces several tools. The homepage describes Bun as a fast JavaScript runtime and toolkit. The official repository describes the same product: runtime, bundler, test runner, and package manager.

Those four roles are easy to mix up. Keep them separate when you plan a trial.

A team can adopt the package manager and still start the process with Node.

Keep those four roles named in the trial plan.

The install command can drop into an existing Node project. The homepage says you can adopt one tool or all of them.

Many teams should start with install and tests. Then they can decide whether the process should be Bun.

The bun javascript runtime executes code on JavaScriptCore, the engine Apple ships in Safari. Node.js uses V8. That engine split explains startup gaps, heap tools, and some native addon pain. It does not, by itself, prove your app will be faster.

Profiles, heap snapshots, and some C++ addons follow V8 contracts. Bun 1.4 adds V8-format CPU and heap profiles so Chrome DevTools can open them. That is compatibility for tools, not proof that every V8 C++ addon loads.

Bun transpiles TypeScript and JSX before it runs a file. The run command on a .ts file needs no extra compiler in the path. Direct run is not type checking. The bundler docs say Bun is not a tsc stand-in for types or declaration emit.

Keep tsc or an equivalent checker in CI, and plan your TypeScript 6 or 7 compiler path separately from runtime execution. Install @types/bun if editors need the Bun global. bun init writes a tsconfig.json aimed at that workflow, including types bun.

The current stable line is Bun v1.4.0, GitHub tag bun-v1.4.0, published 20 August 2026 at 14:07 UTC by Jarred-Sumner. No newer tag existed on 31 August 2026. 1.4 is the first stable release written in Rust.

Earlier 1.3.x builds were still Zig. The bun rust port is a mechanical rewrite of the host, not a new JavaScript engine. Saying Bun is written in Zig is false for 1.4 and later.

The GitHub 1.4.0 notes state that Bun is free, open source, and MIT-licensed. JavaScriptCore still comes from WebKit. In December 2025 Anthropic acquired Bun. The homepage now says Bun has joined Anthropic and remains open source. That is a parent-company fact, not a reason to treat this as an AI product review.

For a two-minute visual tour of the same toolchain, use the Fireship video Bun in 100 Seconds (22 January 2026). It is a sketch, not a production checklist.

How the bun runtime differs from Node.js

Node is a V8 process plus a large standard library. Extra tools live in other packages. The bun js runtime ships the engine, APIs, package manager, test runner, and bundler together. The operational difference is not faster JavaScript.

Layered Bun runtime core receiving JavaScript and TypeScript source and connecting to four integrated toolchain modules

It is a different process, different defaults, and Node APIs with documented gaps. Engine and language. Bun 1.4 host code is Rust plus JavaScriptCore. Node is C++ around V8.

Heap dumps, CPU profiles, and some native modules follow that split. Bun benchmark docs expose JavaScript heap stats through bun:jsc and native heap stats through mimalloc. Node tools that assume one V8 heap will not map one to one. Built-ins.

Bun implements fetch, Request, Response, Web Streams, and bun serve HTTP in the core binary. You can still use node:http. Many new Bun APIs have no Node twin.

If the app is written against Bun.serve, going back to Node is a rewrite, not a flag flip.

Integrated tools. bun install, bun test, and bun build share the same binary. That cuts tool versions in CI. It also couples upgrades.

Startup. Official runtime docs report a Linux Hello World of 5.2 ms for bun hello.js versus 25.1 ms for node hello.js. They summarize that as about 4 times faster on Linux. That is a tiny script, not your service.

Lifecycle scripts and isolated versus hoisted node_modules differ in 1.4.

When Bun is invoked as node via bun –bun, it no longer loads dotenv files, matching Node. Plain bun file.js still loads them.

A bun vs deno comparison is a different decision. Deno has its own standard library and a weaker Node story on Bun own comparison table. This article stays on bun vs node because that is the production question most Node teams actually have.

What Node compatible means in practice

Node compatible is not a percentage on a slide. It is a living matrix of modules, globals, and tests. On 31 August 2026 the page at bun.com/docs/runtime/nodejs-compat said it reflects the latest Bun compatibility with Node.js v26. Bun 1.4 reports process.versions.node as 26.3.0 and NODE_MODULE_VERSION 147.

Independently, some 1.4 blog benches used Node.js 26.7.0 as the other runtime. Record both the Bun pin and the Node pin you compare against.

The 1.4 blog says Bun added 1,517 tests from Node suite, the largest jump since 1.0. A chart in that post goes from 1,450 files passing at v1.2.0 to 3,743 at v1.4.0. The homepage, retrieved the same day, says about 1,400 newly passing Node.js tests. Prefer the blog number for the test delta, and note the homepage drift.

Green on the matrix still has footnotes. node:assert is marked fully implemented, yet legacy deepEqual uses Bun.deepEquals instead of Node loose equality. node:buffer caps a single Buffer at 4 GiB. node:console writes straight to file descriptors; replacing process.stdout.write does not capture console.log. Read the row, not only the color.

Compatibility matrix with mostly green API modules, several amber partial modules, and red blocked modules beside mismatched native connectors

These yellow rows are the ones that bite production Node apps.

node:diagnostics_channel is yellow. channel, subscribe, tracingChannel, and some built-in channels exist. boundedChannel is missing, as are several built-in channels including http.server, net, module, console, child_process, and worker_threads. Subscribers do not keep a Channel alive, so you must hold a reference. APM packages that lean on this module need an explicit test.

node:https is yellow. request, get, Agent, and globalAgent exist. https.Server is http.Server with TLS options, not a tls.Server.

Request sockets are not tls.TLSSocket objects. getPeerCertificate and getCipher are missing. setSecureContext, addContext, SNICallback, and handshakeTimeout are unsupported. If you terminate TLS in-process with SNI, stay on Node or put TLS on a reverse proxy or load balancer.

node:async_hooks is yellow. AsyncLocalStorage and AsyncResource exist. createHook, executionAsyncId, triggerAsyncId, and executionAsyncResource are stubs.

Bun does not invoke those hooks, aside from init for process.nextTick, and async ids are always 0. Context also does not propagate into MessagePort, BroadcastChannel, or Worker events. Request-scoped storage should be tested, not assumed.

node:child_process is yellow. IPC can send net.Socket, net.Server, and dgram.Socket handles, including to Node processes, but not http server sockets. Advanced serialization works only between Bun processes. Use JSON for Node and Bun IPC. subprocess.channel.ref and unref are missing.

node:sea is red. It is not implemented. The documented stand-in is bun build –compile for single-file executables.

Native addons are their own gate. Anything that picks a prebuilt binary by NODE_MODULE_VERSION needs a build for 147. N-API addons can work, but you still have to run require() on the target OS. 1.4 also tightens TLS defaults: rejectUnauthorized is true for Bun.connect and related APIs, and checkServerIdentity runs before fetch writes a request body. A self-signed lab cert that worked on 1.3 can fail on 1.4.

Framework claims in the 1.4 blog are specific, not blanket. Playwright, vitest, OpenTelemetry HTTP and fs instrumentation, and dd-trace are called out as working in 1.4. bun –bun next build is described for Next.js 16.3. Still run your own matrix. A passing Node test file is not the same as your production adapter.

Is Bun faster than Node.js?

The honest answer is: sometimes, in some phases, under named conditions. Do not paste homepage ratios into an architecture review without those conditions.

Official method. Time with performance.now() or Bun.nanoseconds(). For HTTP load, Bun tells you to use bombardier, oha, or http_load_test, not autocannon. Autocannon can be slower than Bun.serve, which skews the result.

For CLI and scripts, use hyperfine. Measure memory on both heaps: JavaScriptCore via heapStats from bun:jsc, and native via Bun.unsafe.mimallocDump(). Until 1.4, those heaps used different allocators. 1.4 moved JavaScriptCore onto mimalloc as well. You still have two logical heaps to inspect.

Cold start versus sustained work. The runtime docs Linux Hello World (5.2 ms versus 25.1 ms) is a cold start of a tiny file. The 1.4 blog reports a different start story versus Bun 1.3, not versus Node: on Linux, hello.js went from 10.9 ms in 1.3 to 5.1 ms in 1.4, with Node.js 26 at 27.2 ms. On Windows, 15.5 ms versus 39.0 ms in 1.3.14 and 40.1 ms for Node.js 26. Do not merge 4 times versus Node and 50 percent versus 1.3 into one speed claim.

Sustained HTTP and memory. The 1.4 blog publishes peak memory under load for several servers, with 1,000,000 requests and 64 connections (100,000 for Next.js and Vite). Those rows compare Bun 1.4, Bun 1.3, and Node.js 26. They are memory under a specific load, not a universal RAM law.

Database time, disk, and downstream HTTP will dominate many real apps. If Postgres is most of wall time, a faster JS start will not save the SLO.

HTTP/3 is not a free win. Bun.serve can set http3 true beside tls. The 1.4 blog marks that path experimental: zero-round-trip resumption is off, server.upgrade returns false over HTTP/3, and the notes say not to ship http3 true to production yet. fetch HTTP/2 and HTTP/3 are also experimental flags.

bun vs node js performance work should always disclose Bun version, Node version, OS, CPU, warmup, concurrency, payload, and the load tool. If you cannot name those, you do not have a result. You have a slogan.

A production-readiness checklist

Use this list on a disposable clone. Tick items with evidence, not hope.

Pin versions. Record bun –version (expect 1.4.0 at writing), process.versions.node (26.3.0 on Bun 1.4), process.versions.modules (147), and the Node.js version you still run in production.

Inventory Node APIs. Search for diagnostics_channel, async_hooks beyond AsyncLocalStorage, in-process https.Server, child_process handle passing, node:sea, process.binding, and custom TLS SNI. Map each hit to green, yellow, or red on the current compat page.

Install and scripts. Run bun install from a clean tree. Watch lifecycle scripts, native optional deps, and linker layout. New 1.4 monorepos default to the isolated linker; existing lockfiles keep the old layout.

Native addons. Require every .node module on the target OS. Rebuild for NODE_MODULE_VERSION 147. Fail the trial if a binary is missing for linux-x64, linux-arm64, or Windows.

Framework matrix. Run the real entrypoints: next build and next start, Express or Fastify boot, workers, and cron. The 1.4 blog is a hint, not a certificate.

OS and containers. Exercise the image you will ship. Official builds cover Linux, macOS, and Windows on x64 and ARM64, plus native FreeBSD. Android builds are experimental. glibc minimum is 2.17 as of 1.3.13.

Signals and shutdown. Send SIGTERM. Confirm drain, keep-alive close, and job stop. Watch mode and –no-orphans change child handling; production should not rely on –watch.

TLS and HTTP. Hit the real cert chain. 1.4 runs checkServerIdentity before fetch sends a body, uses host as default servername on tls.connect, and defaults rejectUnauthorized to true on Bun.connect. Do not enable http3 true in production.

Streams and workers. Move a representative upload and download. 1.4 made Web Streams native and changed paused readable.read() to return one chunk. Workers still ignore some resourceLimits.

Observability. Confirm logs, metrics, and traces. OpenTelemetry HTTP and fs instrumentation and dd-trace are called out in 1.4, but async_hooks stubs and missing diagnostics_channel channels can still blind a vendor agent. Turn on bun –cpu-prof and bun –heap-prof in a staging replica.

Security review. Read the 1.4 hardening notes: tighter TLS, stricter Bun.serve request parsing, and safer tarball extract. Plan for cert mismatches that 1.3 tolerated.

Support and rollback. Keep a Node image and the old lockfile. If the app uses Bun.serve or Bun-only APIs, write a rollback path before the canary, not after.

A safe trial plan

Do not flip production on a blog chart. Run a staged trial that can fail closed.

Five-stage Bun production trial path with local, CI, benchmark, canary, and decision checkpoints plus a red rollback route

Local parity. Create a branch. Install Bun 1.4.0. Keep the Node toolchain installed.

Run bun install and the existing test command, then bun test if you want a second runner. Fix only what the branch proves.

CI shadow. Add a job that uses oven-sh/setup-bun and runs install, typecheck with tsc, tests, and a production build. Do not delete the Node job. Compare exit codes and durations for a week of real commits.

Representative bench. Capture one hot path: HTTP handler, queue worker, or CLI. Warm up. Use oha or bombardier against both Bun and Node on the same machine class.

Record p50, p95, error rate, and peak RSS. If the load generator CPU pins, the number is invalid.

Canary. Ship one non-critical service or a slice of traffic. Prefer a worker with bounded blast radius over the public edge. Watch error rate, latency, memory, and native-addon crashes.

Rollback threshold. Write the abort rule before traffic moves. Example: error rate 1.5 times Node for 15 minutes, or a native crash, or a missing trace field that breaks on-call. Revert by image pin, not by debugging in place.

Post-trial decision. Keep Bun, keep Node, or split tools. Use Bun for install and tests, and Node for the process, if that is the safer split. Write down the APIs that failed. That note is the only part that stays useful when 1.5 ships.

When Bun is a good fit and when Node remains safer

There is no universal winner. Fit is about APIs, people, and rollback, not brand preference.

Bun is a good fit when the team owns the service, the stack is TypeScript-first, and native addons are few or already building for Node 26. It is also a fit when cold start matters for CLI, serverless, or short workers, and when you want bun install and bun test even if node still starts the app. Bun.serve plus built-in SQL, S3, and WebSocket APIs can shrink a new service. Named production users on the homepage include Railway Functions, Midjourney WebSocket notifications, and Claude Code shipped as a Bun executable. Those are existence proofs for their workloads, not a transfer of risk.

Node remains safer when you terminate TLS with SNI in-process, depend on async_hooks hooks or full diagnostics_channel coverage, pass HTTP server sockets through child_process, or need node:sea. It remains safer when a critical native addon has no module 147 build, when your APM vendor has not proven Bun, or when the org standard is Node LTS with a long support contract. It remains safer when the app is already well tuned and the bottleneck is a database, not JS startup.

Split adoption is a valid third path. Use Bun as a package manager and test runner, and keep Node as the bun js runtime competitor in production until the checklist is green. That path avoids a false bun vs node deadline.

Revisit the answer on each Bun minor. The compatibility page changes. 1.4 already moved the Node target from 24.x to 26.3.0. A decision made on 1.3 TLS defaults is stale.