{"id":30190754,"url":"https://github.com/skyleite/luyoga","last_synced_at":"2025-08-12T20:08:18.339Z","repository":{"id":308409104,"uuid":"1032724080","full_name":"SkyLeite/luyoga","owner":"SkyLeite","description":"Lua bindings to facebook/yoga","archived":false,"fork":false,"pushed_at":"2025-08-05T19:03:18.000Z","size":106,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-05T20:27:47.326Z","etag":null,"topics":["css","layout-engine","love2d","lua","ui","yoga"],"latest_commit_sha":null,"homepage":"https://skyleite.github.io/luyoga/","language":"Lua","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/SkyLeite.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}},"created_at":"2025-08-05T18:17:04.000Z","updated_at":"2025-08-05T19:03:22.000Z","dependencies_parsed_at":"2025-08-05T20:40:34.116Z","dependency_job_id":null,"html_url":"https://github.com/SkyLeite/luyoga","commit_stats":null,"previous_names":["skyleite/luyoga"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/SkyLeite/luyoga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyLeite%2Fluyoga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyLeite%2Fluyoga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyLeite%2Fluyoga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyLeite%2Fluyoga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkyLeite","download_url":"https://codeload.github.com/SkyLeite/luyoga/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyLeite%2Fluyoga/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270127392,"owners_count":24531793,"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-08-12T02:00:09.011Z","response_time":80,"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":["css","layout-engine","love2d","lua","ui","yoga"],"created_at":"2025-08-12T20:08:15.211Z","updated_at":"2025-08-12T20:08:18.315Z","avatar_url":"https://github.com/SkyLeite.png","language":"Lua","readme":"# Luyoga\n\nThis is a set of Lua-friendly bindings for [Yoga](https://www.yogalayout.dev), Facebook's layout library.\n\n## Setup\n\nSimply copy the `luyoga` directory to your project and require it.\n\n## Usage\n\nThe library is designed to resemble Yoga as closely as possible, so the official docs should be enough to learn how to use it.\n\n### Building a Yoga tree\n\n```lua\nlocal yoga = require(\"yoga\")\n\nlocal root = yoga.Node.new()\nroot.style:setFlexDirection(yoga.Enums.FlexDirection.Row)\nroot.style:setWidth(100)\nroot.style:setHeight(100)\n\nlocal child0 = yoga.Node.new()\nchild0.style:setFlexGrow(1)\nchild0.style:setMargin(1, yoga.Enums.Edge.Right)\nroot:insertChild(child0, 0)\n\nlocal child1 = yoga.Node.new()\nchild1.style:setFlexGrow(1)\nroot:insertChild(child1, 1)\n```\n\n### Laying out the tree\n\n```lua\nroot:caculateLayout(nil, nil, yoga.Enums.Direction.LTR)\n```\n\n### Reading layout results\n\n```lua\nlocal left = child0.layout:getLeft();\nlocal height = child0.layout:getHeight();\n```\n\n## Contributing\n\n### Running locally\n\n1. Build the project locally using `luarocks make --tree=./dev --no-manifest luyoga-1.0-1.rockspec`\n2. Update `test.lua` with your code and run it with `luajit test.lua`\n\n### Writing tests\n\nTODO\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyleite%2Fluyoga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyleite%2Fluyoga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyleite%2Fluyoga/lists"}