Decision Workspace
grain-script-rhai vs grain-script-boa vs mofa-extra
Side-by-side comparison of Rust crates
47
grain-script-rhai
experimentalv0.0.1-beta3
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.
47
grain-script-boa
experimentalv0.0.1-beta3
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.
46
mofa-extra
experimentalv0.1.1
MoFA Extra modules including Rhai scripting support
Core Metrics
| grain-script-rhai | grain-script-boa | mofa-extra | |
|---|---|---|---|
| Health Score | 47 | 47 | 46 |
| Total Downloads | 133 | 238 | 1.0K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 3 | 7 | 6 |
| Releases | 3 | 3 | 2 |
| Last Updated | 137d ago | 137d ago | 231d ago |
| Age | 4m | 4m | 7m |
Health Breakdown
grain-script-rhai
Maintenance
12
Quality
12
Community
7
Popularity
3
Documentation
13
grain-script-boa
Maintenance
12
Quality
12
Community
7
Popularity
3
Documentation
13
mofa-extra
Maintenance
8
Quality
14
Community
7
Popularity
4
Documentation
13
Technical Details
| grain-script-rhai | grain-script-boa | mofa-extra | |
|---|---|---|---|
| Version | 0.0.1-beta3 | 0.0.1-beta3 | 0.1.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | Apache-2.0 |
| Dependencies | 10 | 10 | 11 |
| Crate Size | 19KB | 25KB | 29KB |
| Features | 0 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •grain-script-rhai leads with a health score of 47/100, but none of the options score above 80.
- •mofa-extra has the most downloads (1.0K), suggesting wider adoption.