{"id":15008150,"url":"https://github.com/whtiehack/node-luajit","last_synced_at":"2026-03-10T04:34:00.039Z","repository":{"id":10245222,"uuid":"65088890","full_name":"whtiehack/node-luajit","owner":"whtiehack","description":"nodejs luajit binding  same as  Node lua  ,cross platform (win,mac,linux)","archived":false,"fork":false,"pushed_at":"2025-11-18T22:56:37.000Z","size":1627,"stargazers_count":31,"open_issues_count":6,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-22T08:28:28.100Z","etag":null,"topics":["cpp","linux","lua","luajit","node-luajit","nodejs"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whtiehack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-08-06T15:27:00.000Z","updated_at":"2024-06-23T06:10:54.000Z","dependencies_parsed_at":"2025-04-13T11:07:06.231Z","dependency_job_id":"be85a913-c1a2-4e6d-8048-57b62c8c81f6","html_url":"https://github.com/whtiehack/node-luajit","commit_stats":{"total_commits":81,"total_committers":4,"mean_commits":20.25,"dds":"0.18518518518518523","last_synced_commit":"a187ca6e42c6b1cd93dfe797a573b785581081f4"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/whtiehack/node-luajit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtiehack%2Fnode-luajit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtiehack%2Fnode-luajit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtiehack%2Fnode-luajit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtiehack%2Fnode-luajit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whtiehack","download_url":"https://codeload.github.com/whtiehack/node-luajit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtiehack%2Fnode-luajit/sbom","scorecard":{"id":1239636,"data":{"date":"2025-11-03","repo":{"name":"github.com/whtiehack/node-luajit","commit":"a187ca6e42c6b1cd93dfe797a573b785581081f4"},"scorecard":{"version":"v5.3.1-0.20251106164954-c65a663bf4a9","commit":"c65a663bf4a93c0f6eca32e6d34713d3e3440e11"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":7,"reason":"binaries present in source code","details":["Warn: binary detected: maclualib/lib/liblua.a:1","Warn: binary detected: win64luajit/lua51.dll:1","Warn: binary detected: win64luajit/lua51.lib:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v3.0.0 not signed: https://api.github.com/repos/whtiehack/node-luajit/releases/36046184","Warn: release artifact v3.0.0 does not have provenance: https://api.github.com/repos/whtiehack/node-luajit/releases/36046184"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: https://osv.dev/GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: https://osv.dev/GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: https://osv.dev/GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: https://osv.dev/GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: https://osv.dev/GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: https://osv.dev/GHSA-f5x3-32g6-xq36"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#sast"}}]},"last_synced_at":"2025-11-10T16:26:25.314Z","repository_id":10245222,"created_at":"2025-11-10T16:26:25.315Z","updated_at":"2025-11-10T16:26:25.315Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30324448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"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":["cpp","linux","lua","luajit","node-luajit","nodejs"],"created_at":"2024-09-24T19:15:23.613Z","updated_at":"2026-03-10T04:33:59.967Z","avatar_url":"https://github.com/whtiehack.png","language":"C","readme":"\n## Node-luajit binding \n\nsupport npai version 6(node minimum version  v10.20.0).\n\nneed lower version check the branch 8.x-10.x or 6.x.\n\n\n#### Cross platform.  (win,mac,linux)[x64]\nsimilar as `https://github.com/brettlangdon/NodeLua`\n\n\n## feature\n\n1. nodejs -\u003e lua  is async.\n2. nodejs -\u003e lua  in queue, so lua internal is sync.\n3. all luaState  are independent.\n4. now lua can't call nodejs direct.\n5. add,linux auto compile luajit.[2018-01-29] http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz\n6. add, cjson compile and auto load.  [2018-01-29] https://github.com/openresty/lua-cjson/archive/master.zip\n7. \u003e win64 need fix.\n8. support napi.  support node 10.20.x-14.x [2021-01-06]\n\n\n##Installation\n\n`npm install node-luajit`\n```\n// some times maybe need \nnpm install node-luajit --unsafe-perm\n\n```\n\n#### node napi\n\nLinux build luajit\n```\ngit clone https://github.com/LuaJIT/LuaJIT.git\nmake\nsudo make install\n```\n\nand need add one line `/usr/local/lib` to ` /etc/ld.so.conf` file, and run `「/sbin/ldconfig –v」` refresh. \n\nor\n\n```\nln -s /usr/local/lib/libluajit-5.1.so.2.0.4 /usr/lib\n\nsudo ldconfig\n```\n\n\n## simple usage\n\n```js\nvar MyLua = require('node-luajit');\nvar lua = new MyLua();\n\nlua.doString('print(\"hello world\") return \"rettest\"',function(err,ret){\n    console.log('dostring ret:',err,ret)\n});\n\n\n\nlua.doFile(__dirname+'/test/luatest.lua',function(err,ret){\n    console.log('doFile ret:',err,ret)\n});\n\n\n\nlua.callGlobalFunction('print',11,22,function(err,ret){\n    console.log('callGlobalFunction!!:',err,ret);\n})\n\nvar lua1 = new MyLua();\nvar lua2 = new MyLua();\n\nlua1.doString('print(\"hello world\") return \"rettest\"',function(err,ret){\n    console.log('lua1 dostring ret:',err,ret)\n});\nlua2.doString('print(\"hello world\") return \"rettest\"',function(err,ret){\n    console.log('lua2 dostring ret:',err,ret)\n});\n\n\nlua1.doFile(__dirname+'/luatest.lua',function(err,ret){\n    console.log('lua1 doFile ret:',err,ret)\n});\n\n\n\nlua2.doFile(__dirname+'/luatest.lua',function(err,ret){\n    console.log('lua2 doFile ret:',err,ret)\n});\n\n\n\n\n```\n\n### development\n\n\ngenerate xcode project:\n\n`node-gyp configure --debug -- -f xcode`\n\nif got `TypeError: 'cmp' is an invalid keyword argument for sort()` error.\n\n\nuse `python2` instead, such as  `PYTHON=/usr/bin/python node-gyp configure -- -f xcode`\n\nNow you should have a ./build/binding.xcodeproj which you can open. \n\nConfigure the executable of the project in Xcode as node and debug away :)\n\n\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhtiehack%2Fnode-luajit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhtiehack%2Fnode-luajit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhtiehack%2Fnode-luajit/lists"}