Decision Workspace
grain-script-boa vs BREP_script_core vs grain-script-rhai
Side-by-side comparison of Rust crates
Boa-based JavaScript scripting layer for grain-agent. Loads user `.js` files from disk, runs them in an isolated boa_engine::Context owned by a dedicated worker thread, and exposes registered tools to the agent through the `grain_ai_agent_headless::Extension` trait.
The BREP script interpreter core: evaluate one JavaScript file on Boa, call one global function with one JSON argument, and return its JSON result or its refusal. Shared by the PLM server's hooks and the CAD app, native and wasm.
Rhai-based scripting layer for grain-agent. Loads user `.rhai` files from disk, executes them in a shared sync-mode `rhai::Engine`, and exposes the tools they register to the agent. Sibling to `grain-script-boa` — both surfaces emit `Vec<Arc<dyn AgentTool>>` and a host crate (e.g. the TUI) can mix them however it likes.
Core Metrics
| grain-script-boa | BREP_script_core | grain-script-rhai | |
|---|---|---|---|
| Health Score | 47 | 48 | 47 |
| Total Downloads | 238 | 61 | 133 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 7 | 7 | 3 |
| Releases | 3 | 3 | 3 |
| Last Updated | 137d ago | 3d ago | 137d ago |
| Age | 4m | 14d | 4m |
Health Breakdown
Technical Details
| grain-script-boa | BREP_script_core | grain-script-rhai | |
|---|---|---|---|
| Version | 0.0.1-beta3 | 0.1.2 | 0.0.1-beta3 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | non-standard | MIT |
| Dependencies | 10 | 3 | 10 |
| Crate Size | 25KB | 18KB | 19KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | — | 1.92 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •BREP_script_core leads with a health score of 48/100, but none of the options score above 80.
- •grain-script-boa has the most downloads (238), suggesting wider adoption.