You might be looking for <a href="http:&#x2F;&#x2F;terralang.org&#x2F;api.html" rel="nofollow">http:&#x2F;&#x2F;terralang.org&#x2F;api.html</a> § <i>Managing Terra Values from Lua</i>.  Quoting:<p>&gt; We provide wrappers around LuaJIT’s FFI API that allow you to allocate and manipulate Terra objects directly from Lua.