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)
Replying to @bunjavascript
@bunjavascript Yeah so your new linters are fucking insane. Thanks for the free performance LMAO
4
3
124
8,601
The @bunjavascript team implemented both import defer and using in JavaScriptCore, and they've shipped in Safari 27.3 Beta! 🎉 developer.apple.com/document…
26
290
13,681
Bun AoT in an Express node:sqlite REST API 40% less memory 14% lower cpu No JIT warmup
35
16
3
682
31,704
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
182
10,720
$ 𝚊𝚕𝚒𝚊𝚜 𝚗𝚘𝚠=𝚟𝚎𝚛𝚌𝚎𝚕 $ 𝚌𝚊𝚝 >𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 <<'𝙴𝙾𝙵' 𝙵𝚁𝙾𝙼 𝚘𝚟𝚎𝚗/𝚋𝚞𝚗:𝚊𝚕𝚙𝚒𝚗𝚎 𝙲𝙼𝙳 ["𝚋𝚞𝚗","-𝚎","𝙱𝚞𝚗.𝚜𝚎𝚛𝚟𝚎({𝚙𝚘𝚛𝚝:𝟾𝟶,𝚏𝚎𝚝𝚌𝚑:()=>𝚗𝚎𝚠 𝚁𝚎𝚜𝚙𝚘𝚗𝚜𝚎('𝚠𝚎 𝚊𝚛𝚎 𝚜𝚘 𝚋𝚊𝚌𝚔')})"] 𝙴𝙾𝙵 $ 𝚗𝚘𝚠 > 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,607
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,758
Merging Bun AOT next week, then testing on Claude Code Expecting 2-3x less memory + CPU & a slightly smaller binary This is the future of server-side JavaScript Instead of you rewriting in Rust, we rewrote JavaScript's compiler to emit native code ahead of time
4th attempt at Bun AOT. Code quality & design is better. Perf is nearly there. Most importantly though It’s just TypeScript. Disregard everything I said last week about `as` casts changing runtime behavior and function arguments throwing. None of that is necessary.
115
59
29
1,617
108,509
Bun's now leading the TypeScript checker race! As always, in @framer's monorepo: 🏆 bun check: 2.42s, 2.0 GB | v1.4.4 🥈 tsrs: 2.50s, 2.6 GB | v0.18 🥉 tsc-ts: 5.9s, 5.3 GB | v0.6 TS 7.1 beta: 13.9s, 8.1 GB
Bun v1.4.4 - Fixes 271 issues, addressing 544 👍 - `bun fmt` is a fast Prettier-compatible code formatter - `bun check` gets 1.4x - 7.8x faster - New in Bun.SQL & WebSocket - Security fixes, including for Brotli, TLS certs, HTTP/3, and more bun.com/blog/bun-v1.4.4
7
12
7
288
22,685
In the next version of Bun bun check gets 1.7x - 7x faster
62
27
9
1,252
53,510
Bun retweeted
Moved an important API from Node → @bunjavascript Latency p50: −25% p95: −60% p99: −80% Resources Memory: −63% CPU: −25%
7
4
3
169
19,204
An early preview of experimental Bun + JSC with ahead-of-time compilation For Claude Code's CLI: 24% faster startup, 48% lower memory, 46% lower CPU, and nearly 2x larger binary size
68
65
22
1,379
146,652
In the next version of Bun `Bun.FetchSession` gives you a `fetch` function with its own keepalive connection pool
23
19
6
626
46,552
Replying to @bunjavascript
@bunjavascript v1.4 😍
2
2
39
3,712
Bun retweeted
thank you bun
Bun v1.4.1 reduces idle memory usage
3
6
4
395
27,235
In the next version of Bun Bigger BigInt
5
10
2
243
20,388
So far, it seems quite stable in terms of memory usage. Thanks, @bunjavascript @jarredsumner!
Bun 1.4 - Fixes over 2,900 GitHub issues - +1,517 tests from the Node.js test suite - Reduces idle CPU by 5x - Reduces memory usage by up to 35% - Starts up to 50% faster on Linux - Rewrites Bun in Rust Thank you everyone who contributed since Bun 1.3! bun.com/blog/bun-v1.4
4
2
1
474
39,012
The Bun runtime on Vercel Functions now supports larger package sizes and extended max duration. • Up to 5GB uncompressed • Functions can run up to 30 minutes • Available on Fluid compute in beta vercel.com/changelog/bun-run…
6
7
3
226
13,649
actually the bun 1.4.0 had not even landed, these were other optimizations now it has landed and the result is that memory use is down from ~300mb to ~100mb, an impressive -67% reduction!
guess when i moved to bun 1.4.0
5
6
217
16,603
In the next version of Bun Bun gets 2 MB smaller
36
19
11
1,415
103,898
Bun 1.4 is our smallest release yet
154
99
76
2,312
1,089,635