macOS
brew install bunlocal Homebrew formula metadata
安装
brew install bunlocal Homebrew formula metadata
nix profile install nixpkgs#bunnixpkgs package indexes · pkgs/by-name/bu/bun/package.nix · 来源: api.github.com
sudo pacman -S bunArch Linux sync databases · bun · 来源: geo.mirror.pkgbuild.com
choco install bunChocolatey community package catalog · bun · 来源: community.chocolatey.org
scoop install main/bunScoop official bucket manifest trees · bucket/bun.json · 来源: api.github.com
winget install --id Oven-sh.Bun -eWindows Package Manager source index · Oven-sh.Bun · 来源: cdn.winget.microsoft.com
概览
Incredibly fast JavaScript runtime, bundler, test runner, and package manager
历史
Bun is an all-in-one JavaScript and TypeScript toolkit: runtime, package manager, script runner, test runner, package runner, and bundler shipped as a single executable.
Bun was created as a response to the accumulated layers of Node.js-era JavaScript tooling. The official 1.0 announcement, published on September 8, 2023, framed Bun as a stable, production-ready toolkit for running, building, testing, and debugging JavaScript and TypeScript.
The project is powered by JavaScriptCore rather than V8 and is designed as a faster, leaner, more modern replacement for Node.js while preserving compatibility with npm packages, Node-style module resolution, CommonJS, ES modules, Web APIs, and many Node built-ins.
Bun's documentation later described it as written in Rust and powered by JavaScriptCore, while the GitHub README emphasizes that the single `bun` command includes the runtime plus test runner, script runner, package manager, and package runner.
Bun moved from an alternative runtime curiosity into mainstream JavaScript tooling after the 1.0 release because it promised speed without forcing developers to abandon existing package.json projects. Official install paths include shell installer, npm, Homebrew, Docker, and Windows PowerShell, and package-manager metadata now lists it across Homebrew, Chocolatey, MacPorts, Nix, pacman, Scoop, and winget.
Its adoption is tied to projects experimenting with faster local feedback loops: replacing Node for script execution, replacing npm/yarn/pnpm for installs, replacing Jest/Vitest in some tests, and replacing separate bundlers for simple build cases.
Common commands include `bun run` for scripts and TypeScript files, `bun install` for npm-compatible dependency installation, `bun test` for tests, `bun build` for bundling, and `bunx` for executing packages. Configuration is optional and lives in local or global `bunfig.toml` files for Bun-specific settings.
Bun's package manager writes `node_modules`, reads package.json, uses a global cache, and supports workspaces and npm registry configuration. Because it aims to run existing Node.js applications with little or no change, usage often starts as a drop-in replacement for selected scripts rather than a full-stack rewrite.
Bun is significant because it collapses several previously separate JavaScript package tools into one binary. For package historians, it marks a major post-Node/npm phase where runtime, package manager, test runner, and bundler compete as integrated developer platforms rather than independent commands.
It is also important because it made package-manager performance and lockfile workflows part of a runtime's identity. Bun's rise pressured the broader ecosystem to treat install speed, TypeScript startup, test speed, and Node compatibility as one developer-experience surface.
安全态势
没有找到 bun 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
bunfig.toml~/.bunfig.toml$XDG_CONFIG_HOME/.bunfig.tomlCredential-bearing paths to review before unattended agent runs.
bunfig.toml~/.bunfig.toml$XDG_CONFIG_HOME/.bunfig.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bun | cli | 全局可执行文件 | |
bunx | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/oven-sh/bun
安装元数据
| 软件包键 | brew:bun |
|---|---|
| 版本 | 1.3.14 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/bun |
| 主页 | https://bun.com/ |
| 仓库 | https://github.com/oven-sh/bun |
| 上游文档 | https://bun.com/docs |
| 许可证 | MIT AND LGPL-2.0-or-later AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND IJG AND LGPL-2.1-or-later AND Zlib AND (Apache-2.0 WITH LLVM-exception) |
| 源码归档 | https://github.com/oven-sh/bun.git |
| 最后更新 | 2026-06-03T16:56:51Z |
| Pulse | updated |
| 构建依赖 | cmake, llvm@21, ninja, rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 已定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bun |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
bun
nix profile install nixpkgs#bunbun 1.3.14-1
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://github.com/oven-sh/bun
sudo pacman -S bunbun
sudo port install bunbun
choco install bunmain/bun
scoop install main/bunOven-sh.Bun
winget install --id Oven-sh.Bun -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.