Bun (@bunjavascript) header
Bun (@bunjavascript) profile picture

Bun is a fast, all-in-one toolkit for installing, bundling, running and testing JavaScript & TypeScript. To install: `npm i -g bun`

Joined July 2022
Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)Photo by Bun (@bunjavascript)
1.5 is going to be bigger than 1.4
39
14
2
910
30,536
Last month, Bun crossed 50 million monthly downloads
16
11
489
18,881
this excludes single file binaries that use Bun
2
26
4,186
many people saying this
Bun AOT means "Attack on Titan" mode
15
12
4
540
23,842
In the next version of Bun import.meta.glob
6
4
3
415
21,005
In the next version of Bun bun test gets improved Vitest compatibility, including: DOM environments, automocking, vi.mock hoisting, and async fake timers
16
9
3
547
55,096
Also: test.extend, vi.hoisted, importOriginal, vi.importActual, vi.doMock, vi.stubEnv, vi.stubGlobal, vi.waitFor, vi.mocked, vi.resetModules, expect.poll, expect.soft, test.for, test.fails, onTestFinished, toMatchFileSnapshot
28
4,591
Bun AoT in an Express node:sqlite REST API 40% less memory 14% lower cpu No JIT warmup
35
15
3
681
31,524
Security incidents across open-source aren't showing signs of slowing down The Bun team is dedicating a higher % of our time to security work for the foreseeable future
18
24
7
916
35,615
We upgraded our Bun runtime to Bun 1.4 and took Node.js out of the image entirely. Memory per container dropped 41%, cold starts are 18% faster and the image is 25% smaller. @jarredsumner and the @bunjavascript team are still cooking. tgr.dev/uv7Lfki
6
8
183
10,676
$ 𝚊𝚕𝚒𝚊𝚜 𝚗𝚘𝚠=𝚟𝚎𝚛𝚌𝚎𝚕 $ 𝚌𝚊𝚝 >𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 <<'𝙴𝙾𝙵' 𝙵𝚁𝙾𝙼 𝚘𝚟𝚎𝚗/𝚋𝚞𝚗:𝚊𝚕𝚙𝚒𝚗𝚎 𝙲𝙼𝙳 ["𝚋𝚞𝚗","-𝚎","𝙱𝚞𝚗.𝚜𝚎𝚛𝚟𝚎({𝚙𝚘𝚛𝚝:𝟾𝟶,𝚏𝚎𝚝𝚌𝚑:()=>𝚗𝚎𝚠 𝚁𝚎𝚜𝚙𝚘𝚗𝚜𝚎('𝚠𝚎 𝚊𝚛𝚎 𝚜𝚘 𝚋𝚊𝚌𝚔')})"] 𝙴𝙾𝙵 $ 𝚗𝚘𝚠 > Ready: bun-dockerfile.vercel.app
Your plain 𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 now deploys on Vercel. Add a 𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 or 𝙲𝚘𝚗𝚝𝚊𝚒𝚗𝚎𝚛𝚏𝚒𝚕𝚎 at your root, then Vercel selects the Container preset, builds it, and routes traffic to the image. vercel.com/changelog/deploy-…
58
12
4
364
41,523
claude.ai switched from oxfmt to bun fmt Formatting in CI got 1.7x faster
16
13
5
572
19,104
claude.ai switched from `oxlint` to `bun lint` ci got 22s faster
34
34
9
1,116
39,814
claude.ai switched from TypeScript 7 to `bun check` type-checking got 69s faster
38
35
8
984
34,826
and uses 5x less memory
3
93
4,762
I spent some time on the weekend to test bun's AOT compiler and results are nothing short of amazing. Performance up 2-3x, memory use less than half.
Bun AOT also introduces `--trim` which deletes unused parts of Bun from the compiled binary On macOS, a binary that uses Bun.serve’s HTTP server goes from 89 MB to 25 MB
74
24
3
896
73,126
We published three security advisories for Bun 1.4.3 and earlier: compromised eMudhra certificates, the brotli decoder bug (HTTP2Shell), and the HTTP/3 "Header Accordions" attack. These are all fixed in Bun 1.4.4. Please upgrade, and rebuild anything made with `bun build --compile` $ bun upgrade github.com/oven-sh/bun/secur…
19
47
10
605
41,466