{"id":13895261,"url":"https://github.com/ceifa/demoon","last_synced_at":"2025-07-05T18:33:06.419Z","repository":{"id":53014616,"uuid":"355584323","full_name":"ceifa/demoon","owner":"ceifa","description":"Lua + Node = demoon","archived":false,"fork":false,"pushed_at":"2023-02-21T14:53:06.000Z","size":25,"stargazers_count":77,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-05T09:17:08.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ceifa.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}},"created_at":"2021-04-07T14:56:06.000Z","updated_at":"2025-06-25T02:22:39.000Z","dependencies_parsed_at":"2024-01-24T14:03:05.571Z","dependency_job_id":null,"html_url":"https://github.com/ceifa/demoon","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"4d854848d9aedaedead4cef5e8e714320e72cd4c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ceifa/demoon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Fdemoon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Fdemoon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Fdemoon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Fdemoon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceifa","download_url":"https://codeload.github.com/ceifa/demoon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceifa%2Fdemoon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263784855,"owners_count":23510986,"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":[],"created_at":"2024-08-06T18:02:05.851Z","updated_at":"2025-07-05T18:33:06.401Z","avatar_url":"https://github.com/ceifa.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# demoon\n\nYou love Lua but the runtime API is very weak and you don't want to handle and learn a lot of different luarock libraries? You came at the right place! This project aims to offer the bests of **Lua** and **NodeJS** together.\n\n\u003e Don't use this in production!\n\n## Usage\n\nYou don't need `lua` installed to run demoon, but you need `node` and npm as well, firstly, install demoon globally:\n\n```sh\n$: npm i -g demoon\n```\n\nThen run it passing your entry lua file:\n\n```sh\n$: demoon app.lua\n```\n\n## Example\n\nThis is a little sample code to demonstrate how demoon is powerful and bridges well with nodeJS:\n```lua\n-- you can require node modules (package.json/node_modules works as well)\nlocal http = require('http')\n\n-- you can require js modules and lua files\n-- require('./myjsmodule.js')\n-- require('./myluamodule.lua')\n\nlocal port = os.getenv('PORT') or 8080\n\nfunction sleep(ms)\n    -- you can use and create promises\n    return Promise.create(function(resolve)\n        setTimeout(resolve, ms)\n    end)\nend\n\n-- top level await works!\nsleep(1000):await()\n\nhttp.createServer(async(function (req, res)\n    -- you can await inside async bounded functions\n    sleep(1000):await()\n\n    res:write('Hello World!')\n    res['end']()\nend)):listen(port)\n\nprint('Your server is running on port ' .. port .. '!')\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceifa%2Fdemoon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceifa%2Fdemoon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceifa%2Fdemoon/lists"}