# mruby/mruby

Lightweight Ruby

Repository: https://github.com/mruby/mruby
Canonical: https://ross.abutalabs.com/products/mruby
Language: C
License: MIT
License Family: permissive
Last push: 2026-08-26T15:13:57+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 5249, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5601, forks 850 (observed 2026-08-28T04:09:22.805003+00:00)

## What it is
mruby is a lightweight implementation of the Ruby programming language, ISO-standard compliant and Ruby 4.x syntax compatible, written in C. It can be embedded and linked into applications, and ships with an interpreter (mruby), an interactive shell (mirb), and a bytecode compiler (mrbc).

## Use cases
- embed a scripting language in a C/C++ application
- run Ruby scripts on embedded devices
- compile Ruby programs to bytecode
- add user scripting/plugin support to a game or app
- use a lightweight Ruby interpreter instead of full CRuby
- evaluate Ruby expressions interactively in a REPL

## When to choose
- you need a small, embeddable Ruby runtime in C
- you target resource-constrained or embedded environments
- you want to compile Ruby to bytecode or C source for distribution

## When to avoid
- you need the full Ruby standard library and gems ecosystem
- you need the latest complete Ruby 4.x feature set and compatibility
- you want a managed, memory-safe runtime without C integration work

## Facets
- artifact type: library
- maturity: stable
- function: interpreter, compiler, programming-language, cli
- domain: programming-languages, embedded-systems, developer-tools, cross-platform
- platform: c, cpp, cross-platform, embedded, cli, windows
- tags: ruby, lightweight-runtime, embeddable, bytecode-compiler, mirb, mrbgems, linux, macos

## Member repositories
- mruby/mruby (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:22.805003+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:27.949937+00:00, confidence not recorded.
  - readme: https://github.com/mruby/mruby (fetched 2026-08-28T04:09:22.805003+00:00, sha 2bc926fe95bb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
