{"id":26822346,"url":"https://github.com/akira4o4/c-luaconfig","last_synced_at":"2026-04-17T04:34:28.925Z","repository":{"id":283868820,"uuid":"953136473","full_name":"akira4O4/C-LuaConfig","owner":"akira4O4","description":"C\\Cpp Lua Config","archived":false,"fork":false,"pushed_at":"2025-03-23T18:27:03.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T19:21:43.338Z","etag":null,"topics":["config","cpp","lua"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akira4O4.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-22T16:47:15.000Z","updated_at":"2025-03-23T18:27:06.000Z","dependencies_parsed_at":"2025-03-23T19:21:44.257Z","dependency_job_id":null,"html_url":"https://github.com/akira4O4/C-LuaConfig","commit_stats":null,"previous_names":["akira4o4/cpplua","akira4o4/c-luaconfig"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akira4O4/C-LuaConfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akira4O4%2FC-LuaConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akira4O4%2FC-LuaConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akira4O4%2FC-LuaConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akira4O4%2FC-LuaConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akira4O4","download_url":"https://codeload.github.com/akira4O4/C-LuaConfig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akira4O4%2FC-LuaConfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273816983,"owners_count":25173518,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["config","cpp","lua"],"created_at":"2025-03-30T08:18:31.691Z","updated_at":"2026-04-17T04:34:28.876Z","avatar_url":"https://github.com/akira4O4.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C-LuaConfig\n\n**Easy** C\\C++ LuaConfig lib\n\n---\n\n## Feat\n- Only one file\n- Support: C\\C++\n- Support: int,float,double,std::string,bool\n- Support: array index calls e.g.\"a.b.c[0]\"\n\n---\n\n## Usage\n\n### 1.Install Lua\n\n```bash\nsudo apt install lua5.3\n```\n\n### 2.Edit your ```config.lua```\n\n```lua\nname=\"Akira\"\n\nconfig = {\n    window = {\n        width = 1920,\n        height = 1080,\n    },\n    title = \"C-LuaConfig\",\n    enable = false,\n    colors = {\n        rgb = {1, 2, 3},\n        rgba= {1.1, 2.2, 3.3,4.4},\n    },\n}\n```\n\n### 3.Edit your ```main.cc```\n```cpp\n#include \"src/luaconfig.h\"\n#include \u003ciostream\u003e\n\nint main(int argc, char const *argv[])\n{\n    std::string file = \"../config.lua\";\n    auto config = new LuaConfig(file);\n\n    auto name = config-\u003eget\u003cstd::string\u003e(\"name\");\n    auto width = config-\u003eget\u003cint\u003e(\"config.window.width\");\n    auto height = config-\u003eget\u003cint\u003e(\"config.window.height\");\n    auto title = config-\u003eget\u003cstd::string\u003e(\"config.title\");\n    auto enable = config-\u003eget\u003cbool\u003e(\"config.enable\");\n    auto rgb0 = config-\u003eget\u003cint\u003e(\"config.colors.rgb[0]\");\n    auto rgba1 = config-\u003eget\u003cfloat\u003e(\"config.colors.rgba[1]\");\n\n    std::cout \u003c\u003c name \u003c\u003c std::endl;\n    std::cout \u003c\u003c width \u003c\u003c std::endl;\n    std::cout \u003c\u003c height \u003c\u003c std::endl;\n    std::cout \u003c\u003c title \u003c\u003c std::endl;\n    std::cout \u003c\u003c enable \u003c\u003c std::endl;\n    std::cout \u003c\u003c rgb0 \u003c\u003c std::endl;\n    std::cout \u003c\u003c rgba1 \u003c\u003c std::endl;\n\n    return 0;\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakira4o4%2Fc-luaconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakira4o4%2Fc-luaconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakira4o4%2Fc-luaconfig/lists"}