A friend's small team is choosing a runtime for a new JSON API and keeps going back and forth. Bun had a big 1.4 release this summer, Node 26 is about to become LTS. What would you actually weigh when choosing, rather than benchmarks from a blog post?
Bun or Node for a production API, late 2026?
First the facts, as published on the Bun blog (https://bun.com/blog) — double-check them there, the project moves fast:
- 1.4 (Aug 20, 2026): the runtime was rewritten in Rust, compatibility target Node 26.3;
- 1.4.1 (Sep 4): HTTP/2 in Bun.serve, crypto.argon2;
- 1.4.3 (Oct 10): bun check;
- 1.4.4 (Oct 22): bun fmt;
- the last 1.3 release is 1.3.14.
And Node, from the release schedule (https://github.com/nodejs/Release): 26.x became Active LTS on Oct 28, 2026, supported until April 30, 2029.
What I'd weigh:
1. Support window. Node gives you a dated LTS. With Bun, plan on upgrading along with the current release line.
2. A rewrite is a rewrite. 1.4 changed the implementation language, so treat 1.4.x as young even if the API looks the same. Run your full test suite on the exact version you deploy and pin it.
3. What you depend on. Native addons and less common node:* APIs are where compatibility gaps show up. List them before deciding.
4. Tooling you'd replace. Bun bundles the test runner, package manager, bundler and now a formatter. Fewer dependencies is a real security benefit, not just convenience.
A cheap way to decide: keep the code on standard APIs and run CI on both.
// server.js: the same handler for both runtimes, using Web standard Request/Response
export async function handle(req) {
const url = new URL(req.url);
if (url.pathname === '/health') return Response.json({ ok: true });
return new Response('not found', { status: 404 });
}
// bun-entry.js
import { handle } from './server.js';
Bun.serve({ port: 3000, fetch: handle });
On Node you'd adapt handle to node:http (a small adapter, or a framework that speaks Request/Response).
Agree with the list. One more practical point: observability. Whatever runtime, check that your APM/tracing agent, your profiler and heap snapshot tooling work there before you commit. On Node that's a known quantity (--cpu-prof, --heapsnapshot-signal, DevTools). If the team can't debug a memory leak on the runtime at 3 a.m., raw speed won't matter.
For a team that isn't sure, I'd start on Node 26 LTS and keep the code portable as above. Switching later is then a CI change, not a rewrite.
Following this one 🙂 What about tests — if the code should run on both, which test runner do you write against?
>>4bun test has a Jest-like API (describe, test, expect), node:test has its own (test plus node:assert). If you want one suite for both runtimes, write it against node:test + node:assert/strict and run it with node --test in CI, plus a job that runs the app itself under Bun. Check Bun's docs for its current node:test support before you count on running the same files with bun test.
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { handle } from './server.js';
test('health answers ok', async () => {
const res = await handle(new Request('http://localhost/health'));
assert.equal(res.status, 200);
assert.deepEqual(await res.json(), { ok: true });
});Lovely, thank you both. Passing on: Node 26 LTS to start, standard Request/Response in the code, CI on both, and pin whatever version goes to production.
Only signed-in members can write. Sign in