from scratch to focus on three main things:
Start fast (it has the edge in mind).
Being a great and complete tool (bundler, transpiler, package
& TypeScript apps or scripts — on your local computer, server or
on the edge. Bun natively implements hundreds of Node.js and Web
APIs, including ~90% of
functions (native modules), fs, path, Buffer and more.
browsers, bringing performance and complexity enhancements to your
future infrastructure, as well as developer productivity through
better, simpler tooling.
natively supports a growing list of Node.js core modules along
with globals like Buffer and process
How does Bun work?
Bun uses the
engine, which tends
and perform a little faster than more traditional choices
like V8. Bun is written in
, a low-level programming language with manual memory
Most of Bun is written from scratch including
the JSX/TypeScript transpiler, npm client, bundler, SQLite client,
HTTP client, WebSocket client and more.
Why is Bun fast?
An enormous amount of time spent profiling, benchmarking and
optimizing things. The answer is different for every part of Bun,
but one general theme:
's low-level control over memory and lack of hidden control flow
makes it much simpler to write fast software.
Sponsor the Zig Software Foundation.
To install Bun, run this
in your terminal. It downloads Bun from GitHub.