Bun Started as a Complaint About Slow Tooling, Then Rewrote the Runtime
Bun has one of the few origin stories in the JavaScript ecosystem that is easy to trace to a specific annoyance. Jarred Sumner built it after years of watching development loops crawl: a fresh install of node_modules that took minutes, a test suite that took longer than the coffee break it justified, a build step assembled from four separate tools that each parsed your source again. His argument was blunt and, to most working developers, familiar. Threading more workers onto slow code does not fix slow code, and a toolchain that keeps re reading the same files is a design problem rather than a hardware problem.
The project appeared publicly as a beta in July 2022, and reached version 1.0 in September 2023. It was written in Zig, a language chosen for memory control and C interoperability without the undefined behavior traps of writing a runtime in C or C++. That choice raised eyebrows at the time and looks less strange now. A runtime that allocates constantly and needs to expose native bindings to the operating system benefits from explicit allocators, and Zig gives you those without a garbage collector layered on top of your own memory management.
The more contentious decision was the JavaScript engine. Bun embeds JavaScriptCore, the engine Apple maintains for Safari, rather than V8, the engine inside Node.js and Chrome. Most people assumed V8 was simply the engine you used. JavaScriptCore starts faster for short lived processes, because V8 optimizes aggressively for long running ones and its startup path carries that weight. For a CLI tool that runs for three seconds, executes a script, and exits, startup cost dominates everything else, which is exactly the workload Bun targets.
That single decision explains the shape of the product. Bun is not a runtime with a package manager bolted on. It is a bundler, a transpiler, a test runner, a shell, and an npm compatible installer in one binary, all sharing a parser and a module graph. When you run bun install, dependency resolution and lockfile writing happen in native code. When you run bun test, the same transpiler that handled your imports feeds the test runner, so nothing is written to disk in between. When you run a TypeScript file directly, there is no tsc step, only a transpile on load.
The frustration behind all of this is worth taking seriously as engineering commentary. Node.js accumulated an enormous ecosystem on top of a runtime that was designed before ES modules were standardized, before TypeScript was mainstream, and before anyone expected a JavaScript tool to also read a tsconfig. Compatibility layers filled the gaps, and each layer added latency. Bun's bet was that most projects would accept a runtime that reimplements the common paths natively as long as it still runs npm packages correctly, since the alternative is a decade of accumulated glue.
None of this comes free. Sharing Apple's engine means tracking a version of JavaScriptCore that Apple controls, and it means debugging a runtime whose internals are documented mostly by its source. Compatibility with the long tail of Node APIs is a moving target that teams hit in production rather than in a demo. Bun's answer has been an increasingly complete node: compatibility layer and a growing list of built in modules for the things Node developers always installed separately, from SQLite drivers to HTTP servers to password hashing.
The lesson for a senior developer is less about which runtime to pick and more about how tooling debt accumulates. Every separate parser, every on disk intermediate file, every install that shells out to a subprocess is a cost paid thousands of times across a team. Bun exists because one developer counted that cost and decided the fix was to build the whole chain again with the loop in mind. You do not have to adopt it to learn from that, but you should at least measure how much of your working day disappears into tools that were never designed together.