# NLua/NLua

Bridge between Lua and the .NET.

Repository: https://github.com/NLua/NLua
Canonical: https://ross.abutalabs.com/products/nlua
Homepage: http://nlua.org
Language: C#
License: MIT
License Family: permissive
Topics: luainterface, lua-functions, c-sharp, dotnet, xamarin, netcore, netstandard, lua
Last push: 2026-08-25T20:08:16+00:00

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

## Adoption (not part of the score)
Stars 2243, forks 325 (observed 2026-08-28T04:06:29.908358+00:00)

## What it is
NLua is a .NET library that bridges the Lua scripting language with C#/.NET, allowing Lua code to be executed from .NET applications and .NET objects to be used from Lua. It is a fork of LuaInterface and runs on Windows, Linux, macOS, iOS, Android, and UWP via .NET, .NET Core, and .NET Standard.

## Use cases
- embed a Lua scripting engine in a C# application
- let users extend a .NET app with Lua scripts
- evaluate Lua expressions from C# code
- call .NET classes and methods from Lua scripts
- run game or app configuration logic written in Lua
- bind Lua functions to C# callbacks

## When to choose
- you need Lua scripting inside a .NET, Xamarin, or Unity-adjacent C# project
- you want .NET objects accessible from Lua without registration or annotations
- you need cross-platform Lua support including mobile (iOS/Android) and UWP

## When to avoid
- your project is not on the .NET platform
- you need a pure Lua runtime without .NET interop
- you need bindings for a different scripting language like Python or JavaScript

## Facets
- artifact type: library
- maturity: stable
- function: interpreter, plugin-system, sdk
- domain: programming-languages, developer-tools, cross-platform
- platform: dotnet, cross-platform, windows
- tags: lua, csharp, scripting, binding, netcore, netstandard, xamarin, luainterface, automation, linux, macos, ios, android

## Member repositories
- NLua/NLua (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:29.908358+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-30T02:44:03.079471+00:00, confidence not recorded.
  - readme: https://github.com/NLua/NLua (fetched 2026-08-28T04:06:29.908358+00:00, sha 725fbc54af5b)
  - homepage: http://nlua.org (fetched 2026-08-29T10:24:18.205574+00:00, sha 91a22336821e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
