# Install spidermonkey with Homebrew, MacPorts, pacman

JavaScript-C Engine. Version 140.13.0 via Homebrew; verified 2026-07-21. Also installable with macports: sudo port install spidermonkey.

## Install

```sh
sudo av install brew:spidermonkey
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install spidermonkey
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install spidermonkey
```

  Evidence: MacPorts ports tree: lang/spidermonkey/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- pacman (92%):

```sh
sudo pacman -S js140
```

  Evidence: Arch Linux sync databases: js140 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:spidermonkey
- **Package manager:** Homebrew
- **Version:** 140.13.0
- **Source summary:** JavaScript-C Engine
- **Homepage:** <https://spidermonkey.dev>
- **Last updated:** 2026-07-21T17:12:11Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- js (alias)
- js140 (alias)
- js140-config (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 140.13.0
## Project history and usage

SpiderMonkey is Mozilla's JavaScript and WebAssembly engine. It is best known as the JavaScript engine inside Firefox, but package managers also expose it as an embeddable engine and standalone JS shell.

### Project history

Mozilla's JavaScript engine blog says Brendan Eich wrote the first SpiderMonkey version in 1995. Current Mozilla documentation describes SpiderMonkey as the JavaScript and WebAssembly implementation library of Firefox, with behavior defined by the ECMAScript and WebAssembly specifications.

### Adoption history

SpiderMonkey's main adoption path is Firefox, but its standalone shell and embedding APIs have long made it useful to developers, testers, and distribution packagers. The spidermonkey.dev homepage says it is used in Firefox, Servo, and other projects, can be embedded in C++ and Rust projects, run as a standalone shell, and compiled to WASI.

### How it is used

Package users often install SpiderMonkey for the js shell, development headers, or embedding experiments rather than as a user-facing app. Mozilla's build documentation describes using mach to build the JS shell, running it with mach run, and testing with jit-tests and jstests.

### Why package nerds care

SpiderMonkey matters to package nerds because it is a major browser engine component exposed as a standalone runtime package. Its versioned shells, embedding headers, JIT behavior, WebAssembly support, and test-suite expectations make it a recurring dependency and compatibility target across language-runtime packaging.

### Timeline

- 1995: Brendan Eich writes the first SpiderMonkey version.
- 2000s: SpiderMonkey continues as Mozilla's core JavaScript engine and accumulates shell, embedding, and test infrastructure.
- 2010s: Mozilla documents major engine internals and performance work through the JavaScript engine blog and source docs.
- 2020s: SpiderMonkey is documented as a JavaScript and WebAssembly engine used in Firefox and embeddable in C++ and Rust.

### Related projects

- Firefox is the primary consumer and source tree for SpiderMonkey.
- Servo is listed by spidermonkey.dev as a user of the engine.
- ECMAScript and WebAssembly specifications define the behavior SpiderMonkey implements.
- Searchfox and Firefox Source Docs are common navigation surfaces for the source.

### Sources

- <https://api.github.com/repos/mozilla-firefox/firefox>
- <https://blog.mozilla.org/javascript/2014/07/21/slimmer-and-faster-javascript-strings-in-firefox/>
- <https://firefox-source-docs.mozilla.org/js/>
- <https://firefox-source-docs.mozilla.org/js/build.html>
- <https://github.com/mozilla-firefox/firefox>
- <https://spidermonkey.dev/>


## Security Notes

No matching local secret-handling manifest was found for spidermonkey. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Other Package-Manager Records

- MacPorts - spidermonkey: normalized package name match | MacPorts ports tree: lang/spidermonkey/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- pacman - js140 - 140.13.0-1: installed executable or alias match | Arch Linux sync databases: js140 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | JavaScript interpreter and libraries - Version 140 | https://spidermonkey.dev/


## Combined YAML source

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


## Sources

- 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
