Decision Workspace
ecma-runtime-cat vs boa-cat vs rig-boa
Side-by-side comparison of Rust crates
ECMAScript runtime: native built-ins (console, Math, JSON, parseInt, isNaN, Promise, Object, Array, Error, ...) that the boa-cat engine exposes to scripts. v0.3.5 adds the seven standard error constructors `Error`, `TypeError`, `RangeError`, `SyntaxError`, `ReferenceError`, `EvalError`, `URIError`. Each is callable as `Error(message)` or `new Error(message)` and returns an Object with `name` (the constructor's name) and `message` (the first argument coerced via `to_string`).
Tree-walking ECMAScript interpreter built on ecma-syntax-cat. v0.7.2 lands three integration tests pinning down the existing `new SomeNativeFn(args)` dispatch path: `expression::construct` allocates a fresh empty Object as `this`, hands it to `call_function`, and honours the spec's "return the Object the constructor produced, else fall back to `this`" semantics. Embedders (e.g. `web-api-cat`'s `Event` / `CustomEvent` constructors) can now rely on this surface without reverse-engineering the implementation. No source change.
A minimal Boa JavaScript executor for Rig applications.
Core Metrics
| ecma-runtime-cat | boa-cat | rig-boa | |
|---|---|---|---|
| Health Score | 46 | 47 | 42 |
| Total Downloads | 486 | 830 | 20 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 52 | 99 | 0 |
| Releases | 9 | 11 | 1 |
| Last Updated | 121d ago | 118d ago | 91d ago |
| Age | 4m | 4m | 3m |
Health Breakdown
Technical Details
| ecma-runtime-cat | boa-cat | rig-boa | |
|---|---|---|---|
| Version | 0.3.5 | 0.7.2 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 6 | 5 | 2 |
| Crate Size | 32KB | 53KB | 11KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | 1.88 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •boa-cat leads with a health score of 47/100, but none of the options score above 80.