# berry-lang/berry

A ultra-lightweight embedded scripting language optimized for microcontrollers.

Repository: https://github.com/berry-lang/berry
Canonical: https://ross.abutalabs.com/products/berry
Homepage: https://berry-lang.github.io
Language: C
License: MIT
License Family: permissive
Topics: berry, scripting-language, c, embedded, microcontroller, language
Last push: 2026-08-26T09:52:28+00:00

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

## Adoption (not part of the score)
Stars 1055, forks 133 (observed 2026-08-28T04:03:24.291267+00:00)

## What it is
Berry is an ultra-lightweight dynamically typed embedded scripting language written in ANSI C99, designed for low-performance embedded devices like microcontrollers. It features a one-pass bytecode compiler and register-based VM with an interpreter core under 40KiB that can run in under 4KiB of heap.

## Use cases
- embed a scripting language in a microcontroller firmware
- add user-scriptable logic to an embedded C application
- run dynamic scripts on devices with only a few KiB of RAM
- extend a host application with a lightweight FFI-based scripting engine
- script IoT devices like ESP32 or ARM Cortex-M boards

## When to choose
- you need scripting on resource-constrained microcontrollers where Lua is too heavy
- you want an easy-to-embed C interpreter with a small footprint and FFI
- you need a dynamically typed language with OOP, functional, and imperative styles on embedded hardware

## When to avoid
- you need a large ecosystem of libraries and package management
- you are targeting general-purpose application development on desktops or servers
- you need high raw performance from compiled native code

## Facets
- artifact type: cli-tool
- maturity: active
- function: interpreter, compiler, programming-language, embedded
- domain: programming-languages, embedded-systems, iot, developer-tools
- platform: embedded, iot, cross-platform, windows
- tags: scripting-language, microcontroller, register-based-vm, ffi, lightweight, ansi-c, programming-language, linux, macos

## Member repositories
- berry-lang/berry (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.291267+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-30T08:33:37.675204+00:00, confidence not recorded.
  - readme: https://github.com/berry-lang/berry (fetched 2026-08-28T04:03:24.291267+00:00, sha 65b1d3c26db6)
  - homepage: https://berry-lang.github.io (fetched 2026-08-29T13:00:00.861489+00:00, sha bbbec8e5dde1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
