{"id":26028616,"url":"https://github.com/barisyild/hxpotpack","last_synced_at":"2026-03-11T00:04:30.787Z","repository":{"id":181429747,"uuid":"666057713","full_name":"barisyild/hxpotpack","owner":"barisyild","description":"A tiny rectangle packing haxe library (for sprite layouts)","archived":false,"fork":false,"pushed_at":"2026-01-29T09:34:26.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-08T20:57:18.823Z","etag":null,"topics":["algorithms","haxe","packing","port","potpack","sprites"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barisyild.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":"2023-07-13T15:56:01.000Z","updated_at":"2026-01-29T09:34:31.000Z","dependencies_parsed_at":"2024-05-02T03:09:04.744Z","dependency_job_id":"99c3f543-23e0-42d1-a47f-fb1308a91e68","html_url":"https://github.com/barisyild/hxpotpack","commit_stats":null,"previous_names":["barisyild/hxpotpack"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/barisyild/hxpotpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisyild%2Fhxpotpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisyild%2Fhxpotpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisyild%2Fhxpotpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisyild%2Fhxpotpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barisyild","download_url":"https://codeload.github.com/barisyild/hxpotpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisyild%2Fhxpotpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30362739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["algorithms","haxe","packing","port","potpack","sprites"],"created_at":"2025-03-06T17:19:01.067Z","updated_at":"2026-03-11T00:04:30.767Z","avatar_url":"https://github.com/barisyild.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hxpotpack\nhxpotpack is the haxe port of the original [potpack](https://github.com/mapbox/potpack) project.\n\nA variation of algorithms used in [rectpack2D](https://github.com/TeamHypersomnia/rectpack2D) and [bin-pack](https://github.com/bryanburgers/bin-pack), which are in turn based on [this article by Blackpawn](http://blackpawn.com/texts/lightmaps/default.html).\n\n## Ordered Example usage\n```haxe\nimport haxe.ds.Vector;\nimport hx.potpack.Potpack;\nimport hx.potpack.geom.PotpackRectangle; //or you can import \"openfl.display.Rectangle\" for openfl\n\nclass Test {\n    static function main() {\n        final boxes:Vector\u003cPotpackRectangle\u003e = new Vector\u003cPotpackRectangle\u003e(2);\n        boxes.set(0, new PotpackRectangle(0, 0, 300, 50));\n        boxes.set(1, new PotpackRectangle(0, 0, 100, 200));\n\n        final data = Potpack.pack(boxes);\n        trace('width: ${data.width}, height: ${data.height}, rect size: ${data.size} fill: ${data.fill}');\n\n        // potpack mutates the boxes array: it's sorted by height,\n        // and box objects are augmented with x, y coordinates:\n        trace(boxes[0]); // {x: 0, y: 200, width: 300, height: 50}\n        trace(boxes[1]); // {x: 0, y: 0, width: 100, height: 200}\n    }\n}\n```\n\n## Unordered Example usage\n```haxe\nimport haxe.ds.Vector;\nimport hx.potpack.Potpack;\nimport hx.potpack.geom.PotpackRectangle; //or you can import \"openfl.display.Rectangle\" for openfl\n\nclass Test {\n    static function main() {\n        final boxes:Vector\u003cPotpackRectangle\u003e = new Vector\u003cPotpackRectangle\u003e(2);\n        boxes.set(0, new PotpackRectangle(0, 0, 300, 50));\n        boxes.set(1, new PotpackRectangle(0, 0, 100, 200));\n\n        final data = Potpack.pack(boxes, false);\n        trace('width: ${data.width}, height: ${data.height}, rect size: ${data.size} fill: ${data.fill}');\n\n        // potpack mutates the boxes array: it's sorted by height,\n        // and box objects are augmented with x, y coordinates:\n        trace(boxes[0]); // {x: 0, y: 0, width: 100, height: 200}\n        trace(boxes[1]); // {x: 0, y: 200, width: 300, height: 50}\n    }\n}\n```\n\n## Compatibility\nCompatible with all haxe projects.\n\nThere is an additional compatibility feature for OpenFL, you can use OpenFL Rectangles.\n\n## Install Release Version\nInstall with haxelib: `haxelib install hxpotpack`\n\n## Install Development Version\nInstall with haxelib: `haxelib git hxpotpack https://github.com/barisyild/hxpotpack.git`\n\n### Original project created by [Mapbox](https://github.com/mapbox)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarisyild%2Fhxpotpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarisyild%2Fhxpotpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarisyild%2Fhxpotpack/lists"}