# SpiderMonkey

> Mozilla's JavaScript and WebAssembly engine

Source: https://talira.ai/catalog/spidermonkey-m3qg5n19
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / runtimes / javascript engines](https://talira.ai/categories/developer-tools/runtimes/javascript-engines)
- Licence: MPL-2.0[^1][^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^4]
- Implements: [JavaScript](https://talira.ai/catalog/javascript-jwpzc8t6.md)
- Backed by: [Mozilla](https://talira.ai/orgs/mozilla.md)

SpiderMonkey is Mozilla's JavaScript and WebAssembly engine, the one in Firefox and Servo. It's written in C++, Rust and JavaScript, with a baseline interpreter and compiler, the WarpMonkey optimizing JIT, WebAssembly compilers and a garbage collector. It can be embedded in C++ and Rust programs, run as a standalone shell, or compiled to WASI to run JavaScript inside WebAssembly. Its code lives in Firefox's repository, under js/src; the other JavaScript engines are [V8](https://talira.ai/catalog/v8-yth24qvy.md) and [JavaScriptCore](https://talira.ai/catalog/javascriptcore-m7b1hmdq.md).

## Links

- Website: https://spidermonkey.dev/
- Docs: https://firefox-source-docs.mozilla.org/js/index.html

## Problems it solves

- embed a JavaScript engine in my C++ application
- run JavaScript inside a WebAssembly module
- a JavaScript shell to test engine behaviour outside the browser
- script my Rust program with JavaScript

## Features

- JavaScript and WebAssembly engine used in Firefox and Servo
- embeddable in C++ and Rust
- standalone shell
- compiles to WASI
- WarpMonkey JIT, baseline interpreter and compiler

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by Mozilla

Warnings:

- activity not tracked: no repository is linked

## Related

- Implements [JavaScript](https://talira.ai/catalog/javascript-jwpzc8t6.md)

## Alternatives

- [V8](https://talira.ai/catalog/v8-yth24qvy.md): Google's open source high-performance JavaScript and WebAssembly engine
- [JavaScriptCore](https://talira.ai/catalog/javascriptcore-m7b1hmdq.md): WebKit's built-in JavaScript engine

## Sources

[^1]: https://github.com/mozilla-firefox/firefox/blob/main/js/src/jsapi.cpp (checked 23 Nov 2026)
[^2]: https://github.com/mozilla-firefox/firefox/blob/main/js/src/vm/Interpreter.cpp (checked 23 Nov 2026)
[^3]: https://github.com/mozilla-firefox/firefox/blob/main/js/src/gc/GC.cpp (checked 23 Nov 2026)
[^4]: https://spidermonkey.dev/ (checked 23 Nov 2026)
