# rhaiscript/rhai

Rhai - An embedded scripting language for Rust.

Repository: https://github.com/rhaiscript/rhai
Canonical: https://ross.abutalabs.com/products/rhai
Homepage: https://crates.io/crates/rhai
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: scripting-engine, embedded-scripting-language, scripting-language, no-std, embedded, webassembly, wasm, rhai
Last push: 2026-08-26T18:12:16+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 75, longevity 100
- inputs: {"age_days": 3838, "days_push": 7, "days_rel": 8, "gap_med": 107, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5635, forks 247 (observed 2026-08-28T04:09:26.384880+00:00)

## What it is
Rhai is an embedded scripting language and evaluation engine for Rust, offering a simple dynamically-typed language similar to JavaScript+Rust. It lets applications safely expose native Rust functions and types to user scripts, and supports WASM and no-std targets.

## Use cases
- add a scripting engine to my Rust application
- let users write custom scripts that call Rust functions
- embed a safe sandboxed scripting language in a game or app
- run user-provided configuration logic in Rust
- evaluate dynamic expressions at runtime in Rust
- scripting support that compiles to WebAssembly or no_std

## When to choose
- you need a safe, easy-to-embed scripting language tightly integrated with Rust types and functions
- you need no_std or WASM support
- you want dynamic, user-extensible behavior without compiling Rust plugins

## When to avoid
- you need maximum raw script execution speed from a mature bytecode VM
- you need a full standalone language with a large ecosystem
- you need static typing or compile-time guarantees in scripts

## Facets
- artifact type: library
- maturity: stable
- function: interpreter, programming-language, plugin-system, embedded
- domain: programming-languages, developer-tools
- platform: rust, wasm, cross-platform
- tags: scripting-engine, embedded-scripting, no-std, dynamic-typing, sandboxed-evaluation, automation

## Member repositories
- rhaiscript/rhai (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:26.384880+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:55:19.816882+00:00, confidence not recorded.
  - readme: https://github.com/rhaiscript/rhai (fetched 2026-08-28T04:09:26.384880+00:00, sha 9c4164b09ea5)
  - registry_crates: https://crates.io/api/v1/crates/rhai (fetched 2026-08-29T08:49:50.055554+00:00, sha 4e4c11c3eb8a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
