{"id":13491461,"url":"https://github.com/lua-batteries/lua-batteries","last_synced_at":"2025-03-28T08:33:13.324Z","repository":{"id":63164629,"uuid":"564160394","full_name":"lua-batteries/lua-batteries","owner":"lua-batteries","description":"Batteries included Lua and LuaJIT installation","archived":false,"fork":false,"pushed_at":"2023-05-15T04:54:38.000Z","size":3513,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-31T05:34:47.427Z","etag":null,"topics":["lua","luajit","luarocks"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lua-batteries.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-11-10T05:40:32.000Z","updated_at":"2024-10-06T11:19:01.000Z","dependencies_parsed_at":"2024-01-16T09:05:40.007Z","dependency_job_id":"78351082-3b0e-4fc1-a521-0dfc6e33d1d4","html_url":"https://github.com/lua-batteries/lua-batteries","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lua-batteries%2Flua-batteries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lua-batteries%2Flua-batteries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lua-batteries%2Flua-batteries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lua-batteries%2Flua-batteries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lua-batteries","download_url":"https://codeload.github.com/lua-batteries/lua-batteries/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245996691,"owners_count":20707294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","luajit","luarocks"],"created_at":"2024-07-31T19:00:57.221Z","updated_at":"2025-03-28T08:33:12.874Z","avatar_url":"https://github.com/lua-batteries.png","language":"C","readme":"\u003ch1 align=\"center\"\u003elua-batteries\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/lua-batteries/lua-batteries\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/downloads/lua-batteries/lua-batteries/total?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/lua-batteries/lua-batteries/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/lua-batteries/lua-batteries?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/lua-batteries/lua-batteries\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/repo-size/lua-batteries/lua-batteries?logo=github\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n`lua-batteries` is a batteries included lua installation more specifically it is set of meson build scripts to build [Lua](https://www.lua.org), [LuaJIT](https://luajit.org), [luarocks](https://github.com/luarocks/luarocks) and many useful libraries and modules. These scripts were initially based on franko's [lua](https://github.com/franko/lua) and [luajit](https://github.com/franko/luajit) meson build scripts but now they are extended to next level.\n\n## Libraries And Modules\n\nList of included libraries and modules provided by lua-batteries:\n\n| Package                                                               | Build Version                                                                                            | Upstream Version                                                                               |\n|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [argparse](https://github.com/luarocks/argparse)                      | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.7.1--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/argparse/argparse?style=flat-square)             |\n| [bit32](https://github.com/lunarmodules/lua-compat-5.3)               | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v5.3.5--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/siffiejoe/bit32?style=flat-square)               |\n| [cffi-lua](https://github.com/q66/cffi-lua)                           | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.2.3--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/q66/cffi-lua?style=flat-square)                  |\n| [compat53](https://github.com/lunarmodules/lua-compat-5.3)            | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.8--1-brightgreen?style=flat-square)      | ![luarocks](https://img.shields.io/luarocks/v/siffiejoe/compat53?style=flat-square)            |\n| [date](https://github.com/Tieske/date)                                | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v2.2--2-brightgreen?style=flat-square)      | ![luarocks](https://img.shields.io/luarocks/v/tieske/date?style=flat-square)                   |\n| [inpsect](https://github.com/kikito/inspect.lua)                      | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v3.1.3--0-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/kikito/inspect?style=flat-square)                |\n| [lanes](https://github.com/LuaLanes/lanes)                            | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v3.16.0--0-brightgreen?style=flat-square)   | ![luarocks](https://img.shields.io/luarocks/v/benoitgermain/lanes?style=flat-square)           |\n| [lpeg](http://www.inf.puc-rio.br/~roberto/lpeg.html)                  | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v1.0.2--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/gvvaughan/lpeg?style=flat-square)                |\n| [lrexlib-pcre2](https://github.com/rrthomas/lrexlib)                  | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v2.9.1--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/rrt/lrexlib-pcre2?style=flat-square)             |\n| [lua-cjson](https://github.com/openresty/lua-cjson)                   | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v2.1.0.12--1-brightgreen?style=flat-square) | ![luarocks](https://img.shields.io/luarocks/v/openresty/lua-cjson?style=flat-square)           |\n| [luafilesystem](https://github.com/lunarmodules/luafilesystem)        | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v1.8.0--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/hisham/luafilesystem?style=flat-square)          |\n| [luaossl](https://github.com/wahern/luaossl)                          | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v20220711--0-brightgreen?style=flat-square) | ![luarocks](https://img.shields.io/luarocks/v/daurnimator/luaossl?style=flat-square)           |\n| [luaposix](https://github.com/luaposix/luaposix)                      | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v36.1--1-brightgreen?style=flat-square)     | ![luarocks](https://img.shields.io/luarocks/v/gvvaughan/luaposix?style=flat-square)            |\n| [lua-protobuf](https://github.com/starwing/lua-protobuf)              | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.5.0--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/xavier-wang/lua-protobuf?style=flat-square)      |\n| [luasec](https://github.com/brunoos/luasec)                           | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v1.3.1--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/brunoos/luasec?style=flat-square)                |\n| [luasocket](https://github.com/lunarmodules/luasocket)                | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v3.1.0--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/lunarmodules/luasocket?style=flat-square)        |\n| [lua-sdl2](https://github.com/Tangent128/luasdl2)                     | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v2.0.5--6-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/tangent128/lua-sdl2?style=flat-square)           |\n| [lua-batteries/luastatic](https://github.com/lua-batteries/luastatic) | ![lua-batteries](https://img.shields.io/badge/lua--batteries-scm--0-brightgreen?style=flat-square)       | ![luarocks](https://img.shields.io/luarocks/v/ers35/luastatic?style=flat-square)               |\n| [luasql-sqlite3](https://github.com/lunarmodules/luasql)              | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v2.6.0--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/tomasguisasola/luasql-sqlite3?style=flat-square) |\n| [luautf8](https://github.com/starwing/luautf8)                        | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.1.5--2-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/xavier-wang/luautf8?style=flat-square)           |\n| [lua-zip](https://github.com/brimworks/lua-zip)                       | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.2--0-brightgreen?style=flat-square)      | ![luarocks](https://img.shields.io/luarocks/v/brimworks/lua-zip?style=flat-square)             |\n| [lua-zlib](https://github.com/brimworks/lua-zlib)                     | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v1.2--2-brightgreen?style=flat-square)      | ![luarocks](https://img.shields.io/luarocks/v/brimworks/lua-zlib?style=flat-square)            |\n| [ltui](https://github.com/tboox/ltui)                                 | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v2.7--1-brightgreen?style=flat-square)      | ![luarocks](https://img.shields.io/luarocks/v/waruqi/ltui?style=flat-square)                   |\n| [lui](https://github.com/zhaozg/lui)                                  | ![lua-batteries](https://img.shields.io/badge/lua--batteries-scm--0-brightgreen?style=flat-square)       |                                                                                                |\n| [luv](https://github.com/luvit/luv)                                   | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v1.44.2--1-brightgreen?style=flat-square)   | ![luarocks](https://img.shields.io/luarocks/v/creationix/luv?style=flat-square)                |\n| [lyaml](https://github.com/gvvaughan/lyaml)                           | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v6.2.8--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/gvvaughan/lyaml?style=flat-square)               |\n| [openssl](https://github.com/zhaozg/lua-openssl)                      | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.8.3--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/zhaozg/openssl?style=flat-square)                |\n| [penlight](https://github.com/lunarmodules/Penlight)                  | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v1.13.1--1-brightgreen?style=flat-square)   | ![luarocks](https://img.shields.io/luarocks/v/tieske/penlight?style=flat-square)               |\n| [toml](https://github.com/LebJe/toml.lua)                             | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.3.0--0-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/LebJe/toml?style=flat-square)                    |\n| [uuid](https://github.com/Tieske/uuid)                                | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v0.3--1-brightgreen?style=flat-square)      | ![luarocks](https://img.shields.io/luarocks/v/tieske/uuid?style=flat-square)                   |\n| [winapi](https://github.com/stevedonovan/winapi)                      | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v1.4.2--1-brightgreen?style=flat-square)    | ![luarocks](https://img.shields.io/luarocks/v/steved/winapi?style=flat-square)                 |\n| [xml2lua](https://github.com/manoelcampos/xml2lua)                    | ![lua-batteries](https://img.shields.io/badge/lua--batteries-v1.6--1-brightgreen?style=flat-square)      | ![luarocks](https://img.shields.io/luarocks/v/manoelcampos/xml2lua?style=flat-square)          |\n\n## Installation\n\nVisit [releases](https://github.com/lua-batteries/lua-batteries/releases) for prebuilt binaries. You just need to extract archive and add `bin` directory in your `PATH` environment variable. Also, see [INSTALL.md](https://github.com/lua-batteries/lua-batteries/blob/main/INSTALL.md) for installation instructions through meson. \n\nThese prebuilt binaries includes **Lua 5.4.6**, **LuaJIT 2.1.0-beta3** and **luarocks 3.9.2**\n\n| Host    | Architecture | Compiler                                                                                                                                                                  | Download                                                                                                                                |\n|---------|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| Linux   | x86_64       | [GCC](https://gcc.gnu.org)                                                                                                                                                | [.tar.xz](https://github.com/lua-batteries/lua-batteries/releases/download/v0.5.15/lua-batteries-v0.5.15-x86_64-unknown-linux-gnu.tar.xz) |\n| Windows | x86_64       | [MinGW-W64](https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.2-11.0.0-ucrt-r1/winlibs-x86_64-mcf-seh-gcc-13.1.0-mingw-w64ucrt-11.0.0-r1.7z) | [.7z](https://github.com/lua-batteries/lua-batteries/releases/download/v0.5.15/lua-batteries-v0.5.15-x86_64-w64-mingw32.7z)               |\n| Windows | x86_64       | [MSVC](https://visualstudio.microsoft.com)                                                                                                                                | [.7z](https://github.com/lua-batteries/lua-batteries/releases/download/v0.5.15/lua-batteries-v0.5.15-x86_64-pc-windows-msvc.7z)           |\n\n### On Linux (x86_64)\n\n```bash\n$ rm -rf /usr/local/lua-batteries-*\n$ mkdir /usr/local/lua-batteries-0.5.15\n$ curl -L https://github.com/lua-batteries/lua-batteries/releases/download/v0.5.15/lua-batteries-v0.5.15-x86_64-unknown-linux-gnu.tar.xz | tar xJC /usr/local/lua-batteries-0.5.15\n$ printf \"\\nexport PATH=\\\"\\$PATH:/usr/local/lua-batteries-0.5.15/bin\\\"\\n\" \u003e\u003e $HOME/.profile\n$ source $HOME/.profile\n$ lua -v\n```\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flua-batteries%2Flua-batteries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flua-batteries%2Flua-batteries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flua-batteries%2Flua-batteries/lists"}