{"id":15289275,"url":"https://github.com/nalgeon/lua-wasi","last_synced_at":"2025-04-13T09:06:48.942Z","repository":{"id":215192831,"uuid":"738342535","full_name":"nalgeon/lua-wasi","owner":"nalgeon","description":"Lua WASI build.","archived":false,"fork":false,"pushed_at":"2024-01-03T14:18:51.000Z","size":264,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T09:06:40.401Z","etag":null,"topics":["lua","wasi","wasm"],"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/nalgeon.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":"2024-01-03T02:25:25.000Z","updated_at":"2024-02-08T10:27:43.000Z","dependencies_parsed_at":"2024-01-03T03:58:39.495Z","dependency_job_id":"34a4c8e5-bd59-43b6-b530-6738e7034303","html_url":"https://github.com/nalgeon/lua-wasi","commit_stats":null,"previous_names":["nalgeon/lua-wasi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalgeon%2Flua-wasi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalgeon%2Flua-wasi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalgeon%2Flua-wasi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalgeon%2Flua-wasi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nalgeon","download_url":"https://codeload.github.com/nalgeon/lua-wasi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688569,"owners_count":21145766,"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","wasi","wasm"],"created_at":"2024-09-30T16:00:11.227Z","updated_at":"2025-04-13T09:06:48.920Z","avatar_url":"https://github.com/nalgeon.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lua WASI build\n\nThis is a [WASI](https://wasi.dev/) build of the Lua 5.4 interpreter, compiled with [wasienv](https://github.com/wasienv/wasienv).\n\nIt is published as an NPM package [@antonz/lua-wasi](https://www.npmjs.com/package/@antonz/lua-wasi):\n\n```\nhttps://unpkg.com/@antonz/lua-wasi/dist/lua.wasm\n```\n\n## Usage\n\nUsing the [Runno](https://github.com/nalgeon/runno) runtime:\n\n```js\nimport { WASI } from \"https://unpkg.com/@antonz/runno/dist/runno.mjs\";\n\nconst url = \"https://unpkg.com/@antonz/lua-wasi/dist/lua.wasm\";\nconst result = await WASI.start(fetch(url), {\n    args: [\"lua\", \"-v\"],\n    stdout: (out) =\u003e console.log(out),\n    stderr: (err) =\u003e console.error(err),\n});\nconsole.log(`exit code = ${result.exitCode}`);\n```\n\nResult:\n\n```\nLua 5.4.6  Copyright (C) 1994-2023 Lua.org, PUC-Rio\nexit code = 0\n```\n\n## Limitations\n\nNo detailed error messages for syntax errors in code.\n\nNo exception handling with `pcall`.\n\nUnsupported stdlib functions:\n\n```\nio.tmpfile\nos.execute\nos.tmpname\n```\n\n## Building from source\n\n```\nmake\nmake dist\n```\n\n## License\n\nCopyright 2024 [Anton Zhiyanov](https://antonz.org/), MIT License.\n\nLua is copyrighted by [Lua.org](https://www.lua.org/license.html), PUC-Rio, MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalgeon%2Flua-wasi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnalgeon%2Flua-wasi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalgeon%2Flua-wasi/lists"}