# Install spidermonkey with Homebrew, MacPorts, pacman

JavaScript-C Engine. Version 140.12.0 via Homebrew; verified 2026-06-22.

## 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
- **Package manager page:** <https://formulae.brew.sh/formula/spidermonkey>
- **Version:** 140.12.0
- **Source summary:** JavaScript-C Engine
- **Homepage:** <https://spidermonkey.dev>
- **Repository:** <https://github.com/mozilla-firefox/firefox>
- **Upstream docs:** <https://firefox-source-docs.mozilla.org/js>
- **License:** MPL-2.0
- **Source archive:** <https://archive.mozilla.org/pub/firefox/releases/140.12.0esr/source/firefox-140.12.0esr.source.tar.xz>
- **Last updated:** 2026-06-22T14:06:20-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

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

## Dependencies

- icu4c@78
- nspr
- readline

## Build dependencies

- cbindgen
- lld
- pkgconf
- python@3.14
- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 140.12.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://spidermonkey.dev
- info: Release/tag comparison is only available for GitHub repositories.
## 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.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** spidermonkey
- **Aliases:** spidermonkey@140
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 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.11.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/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [nspr](https://www.automicvault.com/pkg/brew/nspr/) - Runtime dependency declared by Homebrew.
- [cbindgen](https://www.automicvault.com/pkg/brew/cbindgen/) - Build dependency declared by Homebrew.
- [lld](https://www.automicvault.com/pkg/brew/lld/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Build dependency declared by Homebrew.
- [gjs](https://www.automicvault.com/pkg/brew/gjs/) - Popular package that depends on this formula.
- [jsawk](https://www.automicvault.com/pkg/brew/jsawk/) - Popular package that depends on this formula.
- [plowshare](https://www.automicvault.com/pkg/brew/plowshare/) - Popular package that depends on this formula.
- [quickjs](https://www.automicvault.com/pkg/brew/quickjs/) - Shares av.db curated category or tags: cli, javascript, javascript-engine, language-runtime, runtime.
- [v8](https://www.automicvault.com/pkg/brew/v8/) - Shares av.db curated category or tags: cli, engine, javascript, language-runtime, runtime.
- [boa](https://www.automicvault.com/pkg/brew/boa/) - Shares av.db curated category or tags: cli, engine, javascript, language-runtime.
- [deno](https://www.automicvault.com/pkg/brew/deno/) - Shares av.db curated category or tags: cli, javascript, language-runtime, runtime.
- [duktape](https://www.automicvault.com/pkg/brew/duktape/) - Shares av.db curated category or tags: cli, javascript, language-runtime, runtime.
- [fibjs](https://www.automicvault.com/pkg/brew/fibjs/) - Shares av.db curated category or tags: cli, javascript, language-runtime, runtime.
- [jerryscript](https://www.automicvault.com/pkg/brew/jerryscript/) - Shares av.db curated category or tags: cli, engine, javascript, language-runtime.
- [n](https://www.automicvault.com/pkg/brew/n/) - Shares av.db curated category or tags: cli, javascript, language-runtime, runtime.
- [node](https://www.automicvault.com/pkg/brew/node/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, icu4c, icu4c-78, javascript, language.

## Combined YAML source

View the package source record on GitHub. [combined/spidermonkey.yml](https://github.com/automic-vault/db/blob/main/combined/spidermonkey.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
