Fireship · @fireship

Bun in 100 Seconds

Uploaded January 22, 2026 · Length 2:46

Bun in 100 Seconds

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.

  1. 0:00

    Bun.JS, a megaast JavaScript runtime and

  2. 0:03

    tool chain that was built by someone who

  3. 0:04

    woke up one day, looked at their node

  4. 0:06

    modules folder, and chose violence. The

  5. 0:08

    JavaScript programming language was

  6. 0:10

    originally designed in 1995 for

  7. 0:12

    front-end scripting in web browsers,

  8. 0:14

    mostly to annoy people with pop-up

  9. 0:16

    windows and targeted ads. But one

  10. 0:18

    fateful day in 2009, it escaped the

  11. 0:20

    browser, got a back-end job, and evolved

  12. 0:22

    into the most cursed tool chain in

  13. 0:24

    software history with a basic stack

  14. 0:26

    including Node.js JS as a runtime, mpm

  15. 0:28

    as a package manager, Webpack for a

  16. 0:30

    bundler, just for testing, Babel for

  17. 0:32

    transpiling, and a graveyard of config

  18. 0:34

    files nobody understands. Then in 2021,

  19. 0:37

    Bun came along and said, "What if the

  20. 0:39

    runtime could do everything and do

  21. 0:41

    everything faster?" The JavaScript world

  22. 0:43

    agreed and now Bun powers tools like

  23. 0:45

    Claude Code, serverless functions on

  24. 0:47

    cloud platforms, and the local dev

  25. 0:49

    environments for millions of soy devs.

  26. 0:51

    At its core, Bun is a JavaScript runtime

  27. 0:53

    like Noode.js, JS, but with an extreme

  28. 0:55

    focus on performance, which they

  29. 0:56

    achieved by swapping out C++ for Zigg

  30. 0:59

    and Chrome's V8 engine for JavaScript

  31. 1:01

    Core, the same engine used by Safari.

  32. 1:04

    Starting from scratch has allowed it to

  33. 1:05

    throw up some impressive Trust Me Bro

  34. 1:07

    benchmarks. But it's more than just a

  35. 1:09

    runtime. It replaces your bundler, so

  36. 1:11

    you can write TypeScript and JavaScript

  37. 1:13

    without any config nightmares. It

  38. 1:15

    replaces your testing frameworks and

  39. 1:16

    package managers, and it even has

  40. 1:18

    built-in database drivers to work with

  41. 1:20

    SQL, Reddus, and S3 buckets in the

  42. 1:22

    cloud. And it does all of this from a

  43. 1:24

    single binary while maintaining

  44. 1:26

    compatibility with the Node.js ecosystem

  45. 1:28

    is so instead of assembling a tool

  46. 1:29

    chain, you just run bun and move on with

  47. 1:31

    your life. To get started, we can

  48. 1:33

    install it using a single command, then

  49. 1:35

    open up the terminal and run bun init to

  50. 1:37

    start a new project. And that gives us a

  51. 1:39

    TypeScript file where we can start

  52. 1:40

    writing some code. Then to run it, we

  53. 1:42

    can run bun run and we can auto restart

  54. 1:44

    on changes with the watch flag. No need

  55. 1:46

    to mess with a transpiler or extra

  56. 1:48

    dependencies. But now we want to build a

  57. 1:50

    web app. And instead of installing

  58. 1:52

    ExpressJS, we just use the built-in bun

  59. 1:54

    HTTP module to create a basic web

  60. 1:56

    server. That was easy, but now we want

  61. 1:58

    to store some data in SQLite. You simply