GitHub - tv-labs/lua: A Lua 5.3 runtime in pure Elixir ยท GitHub
2026-06-30
![]()
This repository implements a complete Lua 5.3 virtual machine in pure Elixir, with a lexer, parser, register-based VM, and standard library all running on the BEAM without NIFs or C dependencies. It enables sandboxed execution of untrusted scripts (from AI agents, games, user-defined rules, etc.) with a simple API for sharing data and functions between Elixir and Lua, where scripts are isolated by default and errors include source location information. The library provides intuitive interfaces like Lua.eval!/2 for execution, Lua.set!/3 for exposing Elixir functions to Lua, and custom APIs via the deflua macro.
Was this useful?