Bun

No Change
trial
First Added:May 28, 2026 Updated: July 2, 2026

Bun. Is an all-in-one JavaScript runtime, package manager, test runner, and bundler in a single binary.

Summary

Garden stance: We trial Bun for our estate.

Key points: | Tool | Role | |——|——| | bun run | Execute scripts and TypeScript entrypoints | | bun install | npm-compatible lockfile and registry client | | bun test | Jest-compatible test runner with fast startup | | bun build | Bundle JS, TS, and JSX for server or browser targets | | Bun.serve | HTTP server with WebSocket support |

Compatibility: Bun aims for broad Node API parity but gaps remain in native addons and obscure modules. Run your test suite and integration checks before declaring parity.

Process management: PM2 supports Bun since v1. Same cluster and reload patterns apply as for Node.

Engine difference: JavaScriptCore (Safari) vs V8 (Node). Performance profiles differ; benchmark your app rather than assuming universal wins.

Alternatives: Node.js remains the conservative default JavaScript runtime on the server.

References

Details

ToolRole
bun runExecute scripts and TypeScript entrypoints
bun installnpm-compatible lockfile and registry client
bun testJest-compatible test runner with fast startup
bun buildBundle JS, TS, and JSX for server or browser targets
Bun.serveHTTP server with WebSocket support

Compatibility: Bun aims for broad Node API parity but gaps remain in native addons and obscure modules. Run your test suite and integration checks before declaring parity.

Process management: PM2 supports Bun since v1. Same cluster and reload patterns apply as for Node.

Engine difference: JavaScriptCore (Safari) vs V8 (Node). Performance profiles differ; benchmark your app rather than assuming universal wins.

Alternatives: Node.js remains the conservative default JavaScript runtime on the server.

References