{"id":18020918,"url":"https://github.com/edubart/minilua","last_synced_at":"2025-04-07T12:09:11.035Z","repository":{"id":42328998,"uuid":"316592937","full_name":"edubart/minilua","owner":"edubart","description":"Single-file port of Lua, a powerful scripting language.","archived":false,"fork":false,"pushed_at":"2024-07-25T15:47:24.000Z","size":787,"stargazers_count":284,"open_issues_count":0,"forks_count":22,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-31T10:11:09.683Z","etag":null,"topics":["c","game-development","lua","minilua","scripting-language","single-file","single-header","single-header-lib"],"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/edubart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-27T20:21:28.000Z","updated_at":"2025-03-30T01:03:09.000Z","dependencies_parsed_at":"2024-10-30T06:08:24.499Z","dependency_job_id":null,"html_url":"https://github.com/edubart/minilua","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"536a1341ba2d9f8234faa50dc8493f00763a8ec9"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubart%2Fminilua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubart%2Fminilua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubart%2Fminilua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubart%2Fminilua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edubart","download_url":"https://codeload.github.com/edubart/minilua/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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":["c","game-development","lua","minilua","scripting-language","single-file","single-header","single-header-lib"],"created_at":"2024-10-30T06:08:16.844Z","updated_at":"2025-04-07T12:09:11.012Z","avatar_url":"https://github.com/edubart.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# MiniLua\n\nThis is Lua contained in a single header to be bundled in C/C++ applications with ease.\n[Lua](https://www.lua.org/) is a powerful, efficient, lightweight, embeddable scripting language.\n\n## Example Usage\n\n```c\n#define LUA_IMPL\n#include \"minilua.h\"\n\nint main() {\n  lua_State *L = luaL_newstate();\n  if(L == NULL)\n    return -1;\n  luaL_openlibs(L);\n  luaL_loadstring(L, \"print 'hello world'\");\n  lua_call(L, 0, 0);\n  lua_close(L);\n  return 0;\n}\n```\n\n## Usage\n\nCopy `minilua.h` into your C or C++ project, include it anywhere you want to use Lua API.\nThen do the following in *one* C file to implement Lua:\n```c\n#define LUA_IMPL\n#include \"minilua.h\"\n```\n\nBy default it detects the system platform to use, however you can explicitly define one.\n\nNote that almost no modification was made in the Lua implementation code,\nthus there are some C variable names that may collide with your code,\ntherefore it is best to declare the Lua implementation in dedicated C file.\n\nOptionally provide the following defines:\n  - `LUA_MAKE_LUA`     - implement the Lua command line REPL\n\n## Documentation\n\nFor documentation on how to use Lua read its [official manual](https://www.lua.org/manual/).\n\n## Updates\n\n- **25-Jul-2024**: Updated to Lua 5.4.7.\n- **13-Nov-2023**: Updated to Lua 5.4.6.\n- **28-Jan-2022**: Updated to Lua 5.4.4.\n- **31-Mar-2021**: Updated to Lua 5.4.3.\n- **03-Dec-2020**: Updated to Lua 5.4.2.\n- **27-Nov-2020**: Library created, using Lua 5.4.2-rc1.\n\n## Notes\n\nThis library tries to keep up with latest official Lua release.\nThe header is generated using the bash script `gen.sh` all modifications done is there.\n\n## License\n\nSame license as Lua, the MIT license, see LICENSE.txt for information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedubart%2Fminilua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedubart%2Fminilua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedubart%2Fminilua/lists"}