oven-sh /bun
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
★ 96,741⑂ 5,277👁 625⑃ 27,718● 19,217▤ 219◈ 979
96,741
stars
+15+225+618
5,277
forks
625
watchers
27,718
prs
19,217
issues
219
releases
979
discussions
README
Bun Documentation • Discord • Issues • Roadmap Read the docs → What is Bun? Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun. At its core is the _Bun runtime_, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Rust and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage. bash bun run index.tsx TS and JSX supported out-of-the-box The bun command-line tool also implements a test runner, script runner, and Node.js-compatible package manager. Instead of 1,000 node_modules for development, you only need bun. Bun's built-in tools are significantly faster than existing options and usable in existing Node.js projects with little to no changes. bash bun test run tests bun run start run the start script in package.json bun install install a package bunx cowsay 'Hello, world!' execute a package Install Bun supports Linux (x64 & arm64), macOS (x64 & Apple Silicon), and Windows (x64 & arm64). Linux users — Kernel version 5.6 or higher is strongly recommended, but the minimum is 5.1. x64 users — if you see "illegal instruction" or similar errors, check our CPU requirements sh with install script (recommended) curl -fsSL https://bun.com/install | bash on windows powershell -c "irm bun.sh/install.ps1 | iex" with npm npm install -g bun with Homebrew brew tap oven-sh/bun brew install bun with Docker docker pull oven/bun docker run --rm --init --ulimit memlock=-1:-1 oven/bun Upgrade To upgrade to the latest version of Bun, run: sh bun upgrade Bun automatically releases a canary build on every commit to main. To upgrade to the latest canary build, run: sh bun upgrade --canary View canary build Quick links - Intro - What is Bun? - Installation - Quickstart - TypeScript - TypeScript 6 - Templating - bun init - bun create - Runtime - bun run - File types (Loaders) - JSX - Environment variables - Bun APIs - Web APIs - Node.js compatibility - Plugins - Watch mode / Hot Reloading - Module resolution - Auto-install - bunfig.toml - Debugger - REPL - $ Shell - Package manager - bun install - bun add - bun remove - bun update - bun link - bun pm - bun outdated - bun publish - bun patch - bun why - bun audit - bun info - Global cache - Global store - Isolated installs - Workspaces - Catalogs - Lifecycle scripts - Filter - Lockfile - Scopes and registries - Overrides and resolutions - Security scanner API - .npmrc - Bundler - Bun.build - Loaders - Plugins - Macros - vs esbuild - CSS - HTML & static sites - Hot Module Replacement (HMR) - Full-stack with HTML imports - Standalone HTML - Minifier - Compiler - Single-fil
Top issues
#159Bun's Roadmap183 comments · 2022-05-06#1825`bun test`119 comments · 2023-01-18#17723Moving from Node to Bun spikes container CPU and memory usage until it crashes103 comments · 2025-02-26#13656Add WebTransport support96 comments · 2024-08-31#533Monorepo support94 comments · 2022-07-10#4290Support V8 C++ APIs for "nan" addons and other packages to work90 comments · 2023-08-24#4822Support AdonisJS 678 comments · 2023-09-10#3312CPU emulator leads to strange memory issues69 comments · 2023-06-14
Discussions
#47864Yatta JS — a Bun-first backend framework0 comments · 2026-11-03#47835A VS Code extension that shows bun run and bun test output on the line that logged it0 comments · 2026-11-03#47570Is porting usockets to Rust a good idea? Any plan for it?1 comments · 2026-10-31#46500Re-evaluating Bun's Long-Term JavaScript Engine Strategy0 comments · 2026-10-22#46493Bun v1.4.40 comments · 2026-10-22#46433Why even attempt to replace node?9 comments · 2026-10-20#45182Browser testing tool1 comments · 2026-10-13#45181Universal packages (Such as testing)0 comments · 2026-10-13
Latest release
Bun v1.4.4 bun-v1.4.4 2026-10-22To install Bun v1.4.4 bash curl -fsSL https://bun.com/install | bash or you can use npm npm install -g bun Windows: bash powershell -c "irm bun.com/install.ps1|iex" To upgrade to Bun v1.4.4: bash bun upgrade Read Bun v1.4.4's release notes on Bun's blog Thanks to 39 contributors! - @0xh3x - @1cedsoda - @alex-mextner - @alii - @Artoria2e5 - @bompus - @C0casio45 - @cirospaciari - @davidhevn - @deepshekhardas - @Dex4Sure - @dylan-conway - @EffortlessSteven - @eriklangille - @filipesarturi - @fredluz - @gerardp - @gohryt - @himself65 - @hughescr - @Jarred-Sumner - @jdjkelly - @jecquas
相关报道 (5)
至顶网GitHub与Anthropic用AI智能体改写Rust代码,方法各异-AI应用2026-10-14Pasquale PillitteriGitHub Trending Top 10: 智能体、内存与端侧运行主导本周2026-05-21OSCHINABun 1.0 大动作:用 Rust 重写核心代码,6755 个提交背后的技术豪赌2026-05-15InfoQ.cn6 天、96 万行Rust、直接合并?Claude Code 被 Bun 的内存泄漏拖垮后,Bun 让 Claude 亲手重写了自己2026-05-13智源社区Claude Code源码「换壳」反杀,全网疯狂克隆!Anthropic封杀失败2026-04-02
News & coverage (16)
Hacker NewsZig → Rust porting guide▲ 723 · 555 comments · 2026-05-05Hacker NewsRewrite Bun in Rust has been merged▲ 708 · 789 comments · 2026-05-14Hacker NewsBun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"▲ 488 · 345 comments · 2026-05-15Hacker NewsBun v0.2.0▲ 133 · 58 comments · 2022-10-14Hacker NewsBun adds pnpm-style isolated installation mode▲ 114 · 16 comments · 2025-07-19Hacker NewsBun: cgroup-aware AvailableParallelism / HardwareConcurrency on Linux▲ 45 · 24 comments · 2026-04-03Hacker NewsRemove .zig Files from Bun▲ 37 · 28 comments · 2026-05-14endorlabs.comWhy NPM Malware Keeps Reaching for Bun2026-08-10InfoQPulumi Adds Full Bun Runtime Support2026-04-18GIGAZINEFake Bun runtime infects over 1,000 NPM packages and 27,000 Github repositories with malware in just a few hours2025-11-25