Fireship · @fireship
Bun in 100 Seconds
Uploaded January 22, 2026 · Length 2:46
Summary
Bun.js explained: a fast JavaScript runtime and tool chain that replaces Node.js and other tools for building web apps.
- bun.js
- javascript runtime
- node.js alternative
- web development
- tool chain
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Bun.JS, a megaast JavaScript runtime and
- 0:03
tool chain that was built by someone who
- 0:04
woke up one day, looked at their node
- 0:06
modules folder, and chose violence. The
- 0:08
JavaScript programming language was
- 0:10
originally designed in 1995 for
- 0:12
front-end scripting in web browsers,
- 0:14
mostly to annoy people with pop-up
- 0:16
windows and targeted ads. But one
- 0:18
fateful day in 2009, it escaped the
- 0:20
browser, got a back-end job, and evolved
- 0:22
into the most cursed tool chain in
- 0:24
software history with a basic stack
- 0:26
including Node.js JS as a runtime, mpm
- 0:28
as a package manager, Webpack for a
- 0:30
bundler, just for testing, Babel for
- 0:32
transpiling, and a graveyard of config
- 0:34
files nobody understands. Then in 2021,
- 0:37
Bun came along and said, "What if the
- 0:39
runtime could do everything and do
- 0:41
everything faster?" The JavaScript world
- 0:43
agreed and now Bun powers tools like
- 0:45
Claude Code, serverless functions on
- 0:47
cloud platforms, and the local dev
- 0:49
environments for millions of soy devs.
- 0:51
At its core, Bun is a JavaScript runtime
- 0:53
like Noode.js, JS, but with an extreme
- 0:55
focus on performance, which they
- 0:56
achieved by swapping out C++ for Zigg
- 0:59
and Chrome's V8 engine for JavaScript
- 1:01
Core, the same engine used by Safari.
- 1:04
Starting from scratch has allowed it to
- 1:05
throw up some impressive Trust Me Bro
- 1:07
benchmarks. But it's more than just a
- 1:09
runtime. It replaces your bundler, so
- 1:11
you can write TypeScript and JavaScript
- 1:13
without any config nightmares. It
- 1:15
replaces your testing frameworks and
- 1:16
package managers, and it even has
- 1:18
built-in database drivers to work with
- 1:20
SQL, Reddus, and S3 buckets in the
- 1:22
cloud. And it does all of this from a
- 1:24
single binary while maintaining
- 1:26
compatibility with the Node.js ecosystem
- 1:28
is so instead of assembling a tool
- 1:29
chain, you just run bun and move on with
- 1:31
your life. To get started, we can
- 1:33
install it using a single command, then
- 1:35
open up the terminal and run bun init to
- 1:37
start a new project. And that gives us a
- 1:39
TypeScript file where we can start
- 1:40
writing some code. Then to run it, we
- 1:42
can run bun run and we can auto restart
- 1:44
on changes with the watch flag. No need
- 1:46
to mess with a transpiler or extra
- 1:48
dependencies. But now we want to build a
- 1:50
web app. And instead of installing
- 1:52
ExpressJS, we just use the built-in bun
- 1:54
HTTP module to create a basic web
- 1:56
server. That was easy, but now we want
- 1:58
to store some data in SQLite. You simply


