{"id":18137962,"url":"https://github.com/rickbutton/yoga-wasm","last_synced_at":"2025-06-11T23:03:47.362Z","repository":{"id":47873834,"uuid":"254230303","full_name":"rickbutton/yoga-wasm","owner":"rickbutton","description":"The Yoga layout engine, but in WebAssembly.","archived":false,"fork":false,"pushed_at":"2021-08-12T06:31:25.000Z","size":51,"stargazers_count":26,"open_issues_count":6,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-21T12:41:00.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rickbutton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-09T00:17:21.000Z","updated_at":"2025-03-03T04:18:51.000Z","dependencies_parsed_at":"2022-09-15T01:12:48.161Z","dependency_job_id":null,"html_url":"https://github.com/rickbutton/yoga-wasm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rickbutton/yoga-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickbutton%2Fyoga-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickbutton%2Fyoga-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickbutton%2Fyoga-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickbutton%2Fyoga-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickbutton","download_url":"https://codeload.github.com/rickbutton/yoga-wasm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickbutton%2Fyoga-wasm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259360794,"owners_count":22845817,"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-11-01T15:07:50.324Z","updated_at":"2025-06-11T23:03:47.346Z","avatar_url":"https://github.com/rickbutton.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yoga-wasm\n\n`yoga-wasm` is a build of Facebook's [Yoga](https://github.com/facebook/yoga)\nFlexbox layout engine, for JavaScript and WebAssembly.\n\nIt is a drop in replacement for the [`yoga-layout`](https://www.npmjs.com/package/yoga-layout) NPM package.\n\n## Installation\n\n```bash\n# npm\nnpm install --save yoga-wasm\n\n# yarn\nyarn add yoga-wasm\n```\n\n## Usage\n\nYou should be able to use `yoga-wasm` in the same way you would normally use `yoga-layout`:\n\n```js\nimport * as yoga from \"yoga-wasm\";\n\nconst node = yoga.Node.create();\n\nnode.setMaxWidth(100);\n\nnode.calculateLayout(100, 100, yoga.DIRECTION_LTR);\n```\n\n## Prior Art\n\n[`yoga-dom`](https://github.com/vincentriemer/yoga-dom) is another attempt to port Yoga to JS with WebAssembly. I leaned heavily on \n[viankakrisna](https://github.com/viankakrisna)'s `embind` bindings when porting the latest version of Yoga's bindings from `nbind` to `embind`.\n\n## Contributing\n\nOpen a PR or file an issue!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickbutton%2Fyoga-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickbutton%2Fyoga-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickbutton%2Fyoga-wasm/lists"}