1
0
Fork
You've already forked bun
0
镜像bun
  • Zig 62.7%
  • C++ 22.9%
  • TypeScript 8%
  • C 3.1%
  • JavaScript 1.6%
  • Other 1.3%
Jarred Sumner 44c97fa591
Add WebKit Inspector support for Bun's Dev Server ( #19320 )
Co-authored-by: chloe caruso <git@paperclover.net>
Co-authored-by: Zack Radisic <56137411+zackradisic@users.noreply.github.com>
2025年04月29日 18:34:26 -07:00
.buildkite ci: merge build c++ and build vendor steps ( #19292 ) 2025年04月25日 18:11:33 -07:00
.cursor/rules delete usingnamespace in bindings generator ( #19020 ) 2025年04月15日 12:14:47 -07:00
.github Update docs.yml ( #19182 ) 2025年04月22日 00:27:35 -07:00
.vscode no usingnamespace, organize jsc namespace, enable -fincremental ( #19122 ) 2025年04月22日 16:34:15 -07:00
bench Make request.method getter not allocate memory ( #18961 ) 2025年04月11日 20:59:38 -07:00
cmake Add WebKit Inspector support for Bun's Dev Server ( #19320 ) 2025年04月29日 18:34:26 -07:00
completions Added command: publish to fish completions ( #16593 ) 2025年01月23日 05:15:35 -08:00
dockerhub Update docker images from debian:bullseye to debian:bookworm ( #18278 ) 2025年04月12日 06:17:53 -07:00
docs Update nodejs-apis.md 2025年04月26日 03:52:33 -07:00
examples meta: update bun.locks with bun 1.2 ( #16867 ) 2025年01月29日 01:47:43 -08:00
misctools no usingnamespace, organize jsc namespace, enable -fincremental ( #19122 ) 2025年04月22日 16:34:15 -07:00
packages Support >= 3 arguments in Spawn.stdio ( #19358 ) 2025年04月28日 21:35:20 -07:00
patches Disable warnings from Highway ( #19288 ) 2025年04月25日 18:23:10 -07:00
scripts Update runner.node.mjs 2025年04月25日 14:42:01 -07:00
src Add WebKit Inspector support for Bun's Dev Server ( #19320 ) 2025年04月29日 18:34:26 -07:00
test Add WebKit Inspector support for Bun's Dev Server ( #19320 ) 2025年04月29日 18:34:26 -07:00
.clang-tidy Reapply "Convert build scripts to CMake ( #13427 )" 2024年09月11日 08:24:50 -07:00
.clangd meta: fix disabling of clangd auto header insertion ( #17172 ) 2025年02月10日 02:04:21 -08:00
.cursorignore Update .cursorignore 2024年12月26日 11:48:30 -08:00
.dockerignore bump webkit ( #15328 ) 2024年12月12日 03:21:56 -08:00
.editorconfig Bring uSockets & uWebSockets forks into Bun's repository ( #4372 ) 2023年08月28日 08:38:30 -07:00
.git-blame-ignore-revs remove more usingnamespace ( #19042 ) 2025年04月17日 19:04:05 -07:00
.gitattributes fix: add file association for *.mdc files ( #16963 ) 2025年02月01日 22:18:17 -08:00
.gitignore remove more usingnamespace ( #19042 ) 2025年04月17日 19:04:05 -07:00
.lldbinit Bring back btjs ( #18108 ) 2025年03月11日 22:51:05 -07:00
.mailmap do not print duplicate code ( #16231 ) 2025年01月07日 20:19:12 -08:00
.prettierignore disable async in script tags in dev server ( #17517 ) 2025年02月21日 11:28:27 -08:00
.prettierrc fix vscode json handling in prettier ( #10133 ) 2024年04月09日 20:42:42 -07:00
.typos.toml ci: check for typos in documentation ( #16235 ) 2025年01月08日 07:23:54 +00:00
build.zig fix: require.extensions uses Strong instead of being clever ( #19231 ) 2025年04月23日 17:52:41 -07:00
bun.lock @types/bun: Reimplement WebSocket type in default environment ( #19017 ) 2025年04月14日 19:10:52 -07:00
bunfig.node-test.toml node:module compatibility pt 1 ( #18106 ) 2025年03月12日 15:47:41 -07:00
bunfig.toml Add BUN_DEBUG flag to control where debug logs go ( #9019 ) 2024年02月21日 14:13:43 -08:00
CMakeLists.txt Update CMakeLists.txt 2025年02月06日 18:07:55 -08:00
CODE_OF_CONDUCT.md Add a code of conduct 2022年09月03日 20:54:15 -07:00
CONTRIBUTING.md update webkit ( #19238 ) 2025年04月23日 23:21:22 -07:00
entitlements.debug.plist Faster debug builds ( #16354 ) 2025年01月12日 20:03:24 -08:00
entitlements.plist New subcommand: bun upgrade. It upgrades bun to the latest version. 2021年10月28日 05:34:38 -07:00
LATEST Bump 2025年04月28日 22:48:43 -07:00
LICENSE.md libdeflate ( #12741 ) 2024年07月24日 01:30:31 -07:00
Makefile update webkit ( #19238 ) 2025年04月23日 23:21:22 -07:00
oxlint.json Fix several lints ( #19121 ) 2025年04月19日 05:41:34 -07:00
package.json Bump 2025年04月28日 22:48:43 -07:00
README.md update some docs 2025年01月16日 02:04:18 -08:00
SECURITY.md Create SECURITY.md 2023年09月12日 16:53:59 -07:00
tsconfig.base.json feat: new binding generator ( #15638 ) 2024年12月10日 12:43:17 -08:00
tsconfig.json types: Rewrite to avoid conflicts and allow for doc generation ( #18024 ) 2025年03月25日 14:33:30 -07:00
workspace.code-workspace go 2021年08月11日 13:56:03 -07:00

Logo

Bun

stars Bun speed

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 Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage.

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.

bun test # run tests
bun run start # run the `start` script in `package.json`
bun install <pkg> # install a package
bunx cowsay 'Hello, world!' # execute a package

Install

Bun supports Linux (x64 & arm64), macOS (x64 & Apple Silicon) and Windows (x64).

Linux users — Kernel version 5.6 or higher is strongly recommended, but the minimum is 5.1.

# with install script (recommended)
curl -fsSL https://bun.sh/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:

bun upgrade

Bun automatically releases a canary build on every commit to main. To upgrade to the latest canary build, run:

bun upgrade --canary

View canary build

Guides

Contributing

Refer to the Project > Contributing guide to start contributing to Bun.

License

Refer to the Project > License page for information about Bun's licensing.