Bun's Avatar

Bun

@bun.sh.bsky.social

Bun is a fast, all-in-one toolkit for installing, bundling, running and testing JavaScript & TypeScript. To install Bun: ``` curl https://bun.sh/install | bash -s ``` https://bun.sh

3,252 Followers  |  1 Following  |  51 Posts  |  Joined: 02.11.2024  |  2.1032

Latest posts by bun.sh on Bluesky

wow

maybe ur right

22.06.2025 09:55 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Bun v1.2.15

28.05.2025 22:14 β€” πŸ‘ 56    πŸ” 2    πŸ’¬ 2    πŸ“Œ 1
Preview
Bun v1.2.15 Fixes 11 issues (addressing 261 πŸ‘). bun audit scans dependencies for security vulnerabilities, bun pm view shows package metadata from npm. bun init adds a Cursor rule to use Bun instead of Node.js/Vi...

Bun v1.2.15
- Fixes 11 issues (addressing 261 πŸ‘)
- `bun audit` scans for vulnerabilities
- `bun pm view <pkg>`
- `bun init` adds a Cursor rule
- `bun ./index.html` gets "Automatic workspace folders" edit files in browser
- Fixes for vm & worker_threads

bun.sh/blog/bun-v1....

28.05.2025 19:10 β€” πŸ‘ 37    πŸ” 4    πŸ’¬ 3    πŸ“Œ 0
Preview
Bun v1.2.14 Fixes 39 issues (addressing 179 πŸ‘). Adds support for catalogs in bun install, --react flag for bun init, improved HTTP routing with method-specific routes, better TypeScript default module settings, f...

Bun v1.2.14
- Fixes 39 issues (addressing 179 πŸ‘)
- Catalogs in bun install simplify sharing dependency versions in monorepos
- Fixes HTTPS proxy issue impacting OpenAI Codex
- zstd + fetch
- Several Node compatibility bugfixes

Thanks to 13 contributors!

bun.sh/blog/bun-v1....

22.05.2025 15:32 β€” πŸ‘ 26    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Stream browser console. log to terminal
Memory
272 MB
OLD
150 ΠΌΠ²
NEW
Hot reloads with lucide-react (307 reloads)
[browser)
Hello!
Node.js
Compatibility
98.4% of timers tests pass
node,js

Stream browser console. log to terminal Memory 272 MB OLD 150 ΠΌΠ² NEW Hot reloads with lucide-react (307 reloads) [browser) Hello! Node.js Compatibility 98.4% of timers tests pass node,js

Bun v1.2.12

05.05.2025 21:04 β€” πŸ‘ 70    πŸ” 3    πŸ’¬ 3    πŸ“Œ 2
Preview
Bun v1.2.12 Stream browser console logs to your terminal, dev server uses less memory. Node.js compatibility improvements for timers, vm, net, http, and bugfixes for TextDecoder, hot reloading reliability bugfixe...

Bun v1.2.12
- Echo browser console logs to terminal
- Reduced memory usage for frontend hmr with Bun.serve()
- Node.js compatibility fixes for `timers`, `vm`, `net`, and `http`
- bugfix for global postinstalls impacting Claude Code

thx 10 contributors!

bun.sh/blog/bun-v1....

04.05.2025 12:09 β€” πŸ‘ 35    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
Preview
[JSC] Add MultiGetByVal FTL node by Constellation Β· Pull Request #43579 Β· WebKit/WebKit ed70771 [JSC] Add MultiGetByVal FTL node https://bugs.webkit.org/show_bug.cgi?id=291030 rdar://148552535 Reviewed by Yijia Huang. This patch adds new FTL node MultiGetByVal. In DFG / FTL, we atte...

github.com/WebKit/WebKi...

05.04.2025 00:02 β€” πŸ‘ 9    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
mport { run, bench } from "mitata";

// Assuming the vectors are of the same length
function cosineDistance(a, b) {
  let dotProduct = 0;
  let magA = 0;
  let magB = 0;
  for (let i = 0; i < a.length; i++) {
    dotProduct += a[i] * b[i];
    magA += a[i] * a[i];
    magB += b[i] * b[i];
  }
  return 1 - dotProduct / (Math.sqrt(magA) * Math.sqrt(magB));
}

// Generate random data for testing
const dimensions = 1536; // Adjust dimensions as needed
const array1 = Array.from({ length: dimensions }, () => Math.random() * 100);
const array2 = Array.from({ length: dimensions }, () => Math.random() * 100);
const floatArray1 = new Float32Array(array1);
const floatArray2 = new Float32Array(array2);

bench("Array", () => {
  cosineDistance(array1, array2);
});

bench("Float32Array", () => {
  cosineDistance(floatArray1, floatArray2);
});

await run();
bun-latest array.mjs # New
clk: ~3.94 GHz
cpu: Apple M3 Max
runtime: bun 1.2.9 (arm64-darwin)

benchmark                   avg (min … max)
-------------------------------------------
Array                          1.07 Β΅s/iter   1.07 Β΅s  β–‡β–ƒ β–„β–ˆβ–‚
                        (1.06 Β΅s … 1.13 Β΅s)   1.09 Β΅s β–„β–ˆβ–ˆβ–†β–ˆβ–ˆβ–ˆβ–‡β–…β–„β–„β–„β–‚β–‚β–‚β–β–β–β–β–‚β–‚
Float32Array                   1.64 Β΅s/iter   1.64 Β΅s                   β–ˆ
                        (1.46 Β΅s … 1.68 Β΅s)   1.67 Β΅s β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–ˆβ–ˆβ–ƒβ–
bun-1.2.8 array.mjs # Prev
clk: ~3.87 GHz
cpu: Apple M3 Max
runtime: bun 1.2.8 (arm64-darwin)

benchmark                   avg (min … max)
-------------------------------------------
Array                          1.07 Β΅s/iter   1.07 Β΅s  β–„  β–ˆβ–‚
                        (1.06 Β΅s … 1.11 Β΅s)   1.10 Β΅s β–…β–ˆβ–†β–†β–ˆβ–ˆβ–„β–„β–…β–‚β–β–β–β–‚β–‚β–β–β–β–β–β–
Float32Array                  13.52 Β΅s/iter  13.50 Β΅s  β–ˆ   β–ˆ
                      (13.41 Β΅s … 14.02 Β΅s)  13.59 Β΅s β–ˆβ–ˆβ–β–β–β–ˆβ–ˆβ–ˆβ–β–ˆβ–ˆβ–β–β–β–β–β–β–β–β–ˆβ–ˆ
node array.mjs # Node, for comparison
clk: ~3.94 GHz
cpu: Apple M3 Max
runtime: node 23.10.0 (arm64-darwin)

benchmark                   avg (min … max)
-------------------------------------------
Array

mport { run, bench } from "mitata"; // Assuming the vectors are of the same length function cosineDistance(a, b) { let dotProduct = 0; let magA = 0; let magB = 0; for (let i = 0; i < a.length; i++) { dotProduct += a[i] * b[i]; magA += a[i] * a[i]; magB += b[i] * b[i]; } return 1 - dotProduct / (Math.sqrt(magA) * Math.sqrt(magB)); } // Generate random data for testing const dimensions = 1536; // Adjust dimensions as needed const array1 = Array.from({ length: dimensions }, () => Math.random() * 100); const array2 = Array.from({ length: dimensions }, () => Math.random() * 100); const floatArray1 = new Float32Array(array1); const floatArray2 = new Float32Array(array2); bench("Array", () => { cosineDistance(array1, array2); }); bench("Float32Array", () => { cosineDistance(floatArray1, floatArray2); }); await run(); bun-latest array.mjs # New clk: ~3.94 GHz cpu: Apple M3 Max runtime: bun 1.2.9 (arm64-darwin) benchmark avg (min … max) ------------------------------------------- Array 1.07 Β΅s/iter 1.07 Β΅s β–‡β–ƒ β–„β–ˆβ–‚ (1.06 Β΅s … 1.13 Β΅s) 1.09 Β΅s β–„β–ˆβ–ˆβ–†β–ˆβ–ˆβ–ˆβ–‡β–…β–„β–„β–„β–‚β–‚β–‚β–β–β–β–β–‚β–‚ Float32Array 1.64 Β΅s/iter 1.64 Β΅s β–ˆ (1.46 Β΅s … 1.68 Β΅s) 1.67 Β΅s β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–β–ˆβ–ˆβ–ƒβ– bun-1.2.8 array.mjs # Prev clk: ~3.87 GHz cpu: Apple M3 Max runtime: bun 1.2.8 (arm64-darwin) benchmark avg (min … max) ------------------------------------------- Array 1.07 Β΅s/iter 1.07 Β΅s β–„ β–ˆβ–‚ (1.06 Β΅s … 1.11 Β΅s) 1.10 Β΅s β–…β–ˆβ–†β–†β–ˆβ–ˆβ–„β–„β–…β–‚β–β–β–β–‚β–‚β–β–β–β–β–β– Float32Array 13.52 Β΅s/iter 13.50 Β΅s β–ˆ β–ˆ (13.41 Β΅s … 14.02 Β΅s) 13.59 Β΅s β–ˆβ–ˆβ–β–β–β–ˆβ–ˆβ–ˆβ–β–ˆβ–ˆβ–β–β–β–β–β–β–β–β–ˆβ–ˆ node array.mjs # Node, for comparison clk: ~3.94 GHz cpu: Apple M3 Max runtime: node 23.10.0 (arm64-darwin) benchmark avg (min … max) ------------------------------------------- Array

In the next version of Bun & Safari

Polymorphic array access gets up to 8x faster, thanks to
@yusukesuzuki.bsky.social

05.04.2025 00:02 β€” πŸ‘ 39    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0
Preview
Bun v1.2.8 Fixes 18 bugs (addressing 18 πŸ‘). napi improvements make node-sdl 100x faster. Headers.get() is 2x faster. Several node:http bugfixes. node:fs improvements. `bun install --frozen-lockfile` now works wi...

Thanks to 10 contributors!

bun.sh/blog/bun-v1....

31.03.2025 16:35 β€” πŸ‘ 11    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Bun v1.2.8
- Fixes 18 bugs (addressing 18 πŸ‘)
- napi perf improvement for integers
- 2x faster headers.get()
- node:http & node:fs bugfixes
- `bun install --frozen-lockfile` + `overrides` fix
- `bun pack` directory-specific ignores

Full release notes below

31.03.2025 16:35 β€” πŸ‘ 58    πŸ” 2    πŸ’¬ 2    πŸ“Œ 2
Preview
Bun v1.2.7 Fixes 35 bugs (addressing 219 πŸ‘). Bun.CookieMap is a Map-like API for getting & setting cookies. Bun's TypeScript type declarations have been rewritten to eliminate conflicts with Node.js and DOM type...

bun.sh/blog/bun-v1....

27.03.2025 10:47 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Bun v1.2.7
- Fixes 35 bugs (addressing 219 πŸ‘)
- Builtin request.cookies.set & get in Bun.serve() routes
- Fixed TypeScript type definitions conflicts with `@types/node` & libdom
- Bugfixes for node:http, node:vm

Thanks to 13 contributors! Full release notes below

27.03.2025 10:47 β€” πŸ‘ 59    πŸ” 3    πŸ’¬ 2    πŸ“Œ 2
Post image 26.03.2025 11:16 β€” πŸ‘ 34    πŸ” 3    πŸ’¬ 3    πŸ“Œ 2
Preview
Bun v1.2.6 Fixes 74 bugs (addressing 36 πŸ‘). Faster, more compatible node:crypto. `timeout` option in Bun.spawn. Support for `module.children` in `node:module`. Connect to PostgreSQL via unix sockets with `Bun.SQ...

Bun v1.2.6
- Fixes 74 bugs (addressing 36 πŸ‘)
- node:crypto gets faster & more Node.js compatible
- Faster fastify & express
- `timeout` in Bun.spawn
- Dev Server stability fixes
- Bun.SQL unix domain sockets

Thanks to 23 contributors!
bun.sh/blog/bun-v1....

25.03.2025 08:09 β€” πŸ‘ 57    πŸ” 7    πŸ’¬ 1    πŸ“Œ 0
Preview
Bun v1.2.5 Fixes 75 bugs (addressing 162 πŸ‘), and adds +69 passing Node.js tests. Improvements to the frontend dev server, CSS modules support, a full rewrite of Node-API, faster `Sign`, `Verify`, `Hash`, `Hmac` ...

Bun v1.2.5
- Fixes 75 bugs (addressing 162 πŸ‘)
+69 passing tests from Node.js
- Frontend Dev Server fixes, CSS Modules support
- Full rewrite of N-API (napi addons)
- Faster Sign, Verify, Hash, Hmac from node:crypto

Thanks to 25 contributors!

bun.sh/blog/bun-v1....

11.03.2025 12:57 β€” πŸ‘ 42    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - shutock/twurbun: A Turborepo template with a shared Tailwind v4 config, Biome for linting & formatting, and Bun for blazing-fast package management. A Turborepo template with a shared Tailwind v4 config, Biome for linting & formatting, and Bun for blazing-fast package management. - shutock/twurbun

built a @turbo.build template with a shared @tailwindcss.com v4 config, @biomejs.dev for linting & formatting, and powered by @bun.sh

Check it out: github.com/shutock/twur...

02.03.2025 01:54 β€” πŸ‘ 10    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Bun v1.2.4 Up to 60% faster Bun.build on macOS, codesigning support for single-file executables on macOS, dev server stability improvements, fixes a regression from v1.2.3 affecting Hono, fixes up/down buttons i...

Bun v1.2.4
- Frontend dev server stability improvements
- Codesign compiled executables on macOS
- Up to 60% faster `bun build` on macOS
- Node.js compatibility fixes
- Faster array.includes
- Many bugfixes

Thanks to 17 contributors!
bun.sh/blog/bun-v1....

26.02.2025 10:26 β€” πŸ‘ 83    πŸ” 5    πŸ’¬ 1    πŸ“Œ 0
Preview
Bun v1.2.3 Fixes 128 bugs (addressing 349 πŸ‘). Bun gets a full-featured frontend development toolchain with incredibly fast hot reloading and bundling. Built-in routing for Bun.serve() makes it simpler to build w...

Bun v1.2.3
- Fixes 128 bugs (addressing 349 πŸ‘)
- Incredibly fast frontend dev server with hot reloading
- Builtin routes in Bun.serve
- Many Bun.SQL fixes
- Wasm gets faster
- Node compatibility improvements for napi & Buffer

Thanks to 23 contributors!
bun.sh/blog/release...

22.02.2025 07:22 β€” πŸ‘ 88    πŸ” 13    πŸ’¬ 2    πŸ“Œ 1

And done! Try exporting your Paper docs with my new tool: www.npmjs.com/package/drop...

19.02.2025 17:36 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
Post image

The above is a TailwindCSS + shadcn/ui Twitter frontend clone demo app. This is hot reloading css & js/ts/tsx, running a tailwindcss plugin, transpiling jsx/tsx, websocket hmr happening live as you type.

11.02.2025 08:05 β€” πŸ‘ 11    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

In the next version of Bun

Bun.serve() gets builtin support for hot reloading frontend applications.

11.02.2025 08:05 β€” πŸ‘ 135    πŸ” 10    πŸ’¬ 3    πŸ“Œ 2
Is Bun The End Of Vite?
YouTube video by Jack Herrington Is Bun The End Of Vite?

@bun.sh is gunning for @vite.dev! youtu.be/NvitRPQqaSs Now it can serve HTML files right off the command line, and it even supports API routes!

04.02.2025 16:52 β€” πŸ‘ 18    πŸ” 3    πŸ’¬ 2    πŸ“Œ 1
Preview
Bun v1.2.2 Fixes 38 bugs (addressing 129 πŸ‘). JavaScript idle memory usage drops by 10–30%. Fixes regression impacting vite build. Reliability improvements to Bun.SQL, Bun.S3Client, Bun's CSS parser. Node.js comp...

Bun v1.2.2
- Fixes 38 bugs (addressing 129 πŸ‘)
- JavaScript idle memory usage reduced by 10–30%
- Fixes v1.2.1 regression impacting `vite build`
- Node compatibility fixes
- Reliability improvements to Bun.SQL and Bun.S3Client

Thanks to 12 contributors!
bun.sh/blog/bun-v1....

01.02.2025 05:43 β€” πŸ‘ 70    πŸ” 6    πŸ’¬ 2    πŸ“Œ 1
Preview
Bun v1.2.1 Fixes 32 bugs. S3 storage class support, X25519 support in crypto.generateKeyPair. fs.stat uses less memory. node:fs, node:child_process, and node:process compatibility improvements. CSS parser bugfix...

Bun v.1.2.1
- Fixes 32 bugs
- S3Client gets `storageClass` support
- X25519 support in node:crypto
- Node.js compatibility improvements for node:fs & node:child_process. fs.stat uses less memory.
- Several memory leak fixes

Thanks to 16 contributors!
bun.sh/blog/bun-v1....

27.01.2025 23:10 β€” πŸ‘ 35    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

If we don’t already do this then that’s a bug. I’m pretty sure we already do this though

26.01.2025 04:01 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Bun's FINALLY A Bundler (and much much more)
YouTube video by Theo - t3β€€gg Bun's FINALLY A Bundler (and much much more)

bun dler

youtu.be/Y5JrsqBt7sI?...

26.01.2025 02:39 β€” πŸ‘ 41    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Preview
Bun 1.2 Built-in Postgres client with Bun.sql, built-in S3 object support with Bun.s3, a new text-based lockfile: bun.lock, Express is 3x faster, and a major update on Node.js compatibility.

Introducing Bun 1.2

bun.sh/blog/bun-v1.2

22.01.2025 21:32 β€” πŸ‘ 116    πŸ” 20    πŸ’¬ 1    πŸ“Œ 3
Bun 1.2
YouTube video by Bun Bun 1.2

Bun v1.2 in 17 hours

youtu.be/uSzffuqfJQk?...

20.01.2025 22:23 β€” πŸ‘ 58    πŸ” 7    πŸ’¬ 2    πŸ“Œ 1

it was fixed, and then msw switched to using an undocumented internal node module that we haven't implemented support for

20.01.2025 06:55 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@bun.sh is following 1 prominent accounts