{"id":26600740,"url":"https://github.com/glassesneo/spellua","last_synced_at":"2025-04-09T16:23:44.689Z","repository":{"id":255900168,"uuid":"823207613","full_name":"glassesneo/spellua","owner":"glassesneo","description":"A high level LuaJIT binding for Nim","archived":false,"fork":false,"pushed_at":"2024-11-02T15:32:33.000Z","size":23,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-23T18:46:48.858Z","etag":null,"topics":["lua","luajit","nim"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glassesneo.png","metadata":{"files":{"readme":".github/README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2024-07-02T15:29:57.000Z","updated_at":"2025-03-08T13:49:27.000Z","dependencies_parsed_at":"2024-11-02T12:33:30.015Z","dependency_job_id":null,"html_url":"https://github.com/glassesneo/spellua","commit_stats":null,"previous_names":["glassesneo/spellua"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glassesneo%2Fspellua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glassesneo%2Fspellua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glassesneo%2Fspellua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glassesneo%2Fspellua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glassesneo","download_url":"https://codeload.github.com/glassesneo/spellua/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065940,"owners_count":21042004,"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","nim"],"created_at":"2025-03-23T18:34:19.337Z","updated_at":"2025-04-09T16:23:44.684Z","avatar_url":"https://github.com/glassesneo.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spellua\nspellua is a high level LuaJIT bindings for Nim.\n\n## Installation\n```sh\nnimble install spellua\n```\n\n## Usage\n```nim\nimport\n  std/os,\n  spellua\n\nlet driver = LuaDriver.init()\ndriver.loadFile(getAppDir()/\"sample.lua\")\n\n# Get lua variables\necho driver.getString(Name)\necho driver.getInteger(Size)\necho driver.getBoolean(Enable)\n\n# Bind lua variables\ndriver.bindString(V1)\necho V1\n\n# Sync nim variables to lua runtime\nlet syncVal = 5\ndriver.syncInteger(syncVal)\necho driver.getInteger(syncVal)\n\n# Call lua function (partly supported)\ndriver.call(\"PrintValue\", 100)\n\ndriver.close()\n```\n\n```lua\n-- sample.lua\nName = [[=================\nHello World\n=================]]\n\nSize = 640\n\nEnable = true\n\nV1 = \"bound variable\"\n\n---@param value integer\nfunction PrintValue(value)\n  print(value)\nend\n```\n\n## License\nspellua is licensed under the WTFPL license. See COPYING for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglassesneo%2Fspellua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglassesneo%2Fspellua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglassesneo%2Fspellua/lists"}