# 使用 Homebrew, Nix 安装 boa

查看 boa 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:boa
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install boa
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#boa
```

  证据: nixpkgs package indexes: pkgs/by-name/bo/boa/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:boa
- **软件包管理器:** Homebrew
- **版本:** 0.21.1
- **来源摘要:** Embeddable and experimental Javascript engine written in Rust
- **主页:** <https://github.com/boa-dev/boa>
- **仓库:** <https://github.com/boa-dev/boa>
- **最后更新:** 2026-06-22T14:02:54-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- boa (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.21.1
## 项目历史与用法

Boa is an embeddable experimental JavaScript engine written in Rust, with a CLI and Rust crates for parsing, interpreting, and embedding ECMAScript.

### 项目历史

Boa began as Jason Williams's Rust JavaScript-engine experiment. The Boa about page says it was introduced at JSConf EU 2019, and the JSConf EU talk page describes Williams building an engine from scratch in Rust during the previous year.

The project grew into the boa-dev organization and a set of crates centered on boa_engine. Its README describes an experimental lexer, parser, and interpreter that tracks the evolving ECMAScript specification.

### 采用历史

Boa's adoption is mostly developer and embedders' adoption rather than browser adoption. It is carried by Homebrew and Nix and published through Rust's crate ecosystem, where Rust programs can embed it directly.

The project's public releases and blog posts emphasize conformance progress, embeddability, WebAssembly use, and keeping pace with Test262 and ECMAScript changes.

### 使用方式

Users can run the boa CLI for experiments, but the more important use case is embedding boa_engine in Rust applications that need JavaScript evaluation without linking to V8.

Boa is also useful for language-engine work: implementers can study parser, runtime, built-in-object, and conformance work in a Rust codebase that is smaller and more approachable than production browser engines.

### 为什么软件包爱好者会关心

Boa matters to package nerds because JavaScript engines are usually huge C++ dependencies. A Rust-native, crate-published engine changes the packaging shape for applications that only need embeddable JS semantics.

Its significance is still experimental: package users should not read the Homebrew formula as a Node.js replacement. The interesting part is the long-term Rust ecosystem bet on standards-conforming embeddable scripting.

### 时间线

- 2018-2019: Jason Williams builds a JavaScript engine from scratch in Rust.
- 2019-06: Boa is introduced at JSConf EU 2019.
- 2021-06: Boa v0.12 is announced on the official blog.
- 2021-09: Boa v0.13 blog post highlights embedding in Rust projects and WebAssembly use.
- 2020s: boa-dev continues publishing boa_engine and tracking ECMAScript/Test262 conformance.

### Related projects

- V8, SpiderMonkey, and JavaScriptCore: production browser/server JavaScript engines Boa is often compared against but does not replace.
- QuickJS, MuJS, and Kiesel: smaller embeddable JavaScript engines in adjacent niches.
- Test262: the official ECMAScript conformance suite Boa uses as a progress target.
- Rust crates such as boa_engine and boa_parser: the packaged Rust components behind the CLI and embedding story.

### 来源

- <https://2019.jsconf.eu/jason-williams/lets-build-a-javascript-engine.html>
- <https://boajs.dev/about>
- <https://boajs.dev/blog>
- <https://boajs.dev/docs/intro>
- <https://docs.rs/boa_engine/latest>
- <https://github.com/boa-dev/boa>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - boa: normalized package name match | nixpkgs package indexes: pkgs/by-name/bo/boa/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/boa.yml](https://github.com/mxcl/pkgdb/blob/main/combined/boa.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
