{"id":24331151,"url":"https://github.com/deevus/zig-squarified","last_synced_at":"2025-09-04T04:46:23.345Z","repository":{"id":270678813,"uuid":"911122821","full_name":"deevus/zig-squarified","owner":"deevus","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-05T08:34:38.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T11:20:01.372Z","etag":null,"topics":["zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/deevus.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}},"created_at":"2025-01-02T09:47:30.000Z","updated_at":"2025-01-05T08:34:42.000Z","dependencies_parsed_at":"2025-01-02T11:18:30.588Z","dependency_job_id":"673b950b-694c-4ce0-8273-1858ea2d4000","html_url":"https://github.com/deevus/zig-squarified","commit_stats":null,"previous_names":["deevus/zig-squarified"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deevus/zig-squarified","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fzig-squarified","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fzig-squarified/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fzig-squarified/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fzig-squarified/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deevus","download_url":"https://codeload.github.com/deevus/zig-squarified/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fzig-squarified/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273554242,"owners_count":25126310,"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-09-04T02:00:08.968Z","response_time":61,"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":["zig-package"],"created_at":"2025-01-18T01:18:08.394Z","updated_at":"2025-09-04T04:46:23.326Z","avatar_url":"https://github.com/deevus.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig-squarified\r\n\r\n**A library for generating squarified treemap layouts in Zig.**\r\n\r\n## Demo\r\n```\r\nzig build run\r\n```\r\nRuns a basic Raylib demo that displays a treemap.\r\n\r\n![image](assets/demo.png)\r\n\r\n## Install as a Zig package\r\n```\r\nzig fetch git+https://github.com/deevus/zig-squarified.git --save=squarified\r\n```\r\nImport as a dependency in your `build.zig`:\r\n```zig\r\nconst lib_squarified = b.dependency(\"squarified\", {});\r\nconst module_squarified = lib_squarified.module(\"squarified\");\r\n\r\nexe.root_module.addImport(\"squarified\", module_squarified);\r\n```\r\n\r\n## Usage\r\n```zig\r\nconst squarify = @import(\"squarified\");\r\nconst Squarify = squarify.Squarify(f32);\r\n\r\n// Create your root node\r\nconst root = Node{\r\n    .value = 100,\r\n    .data = 0,\r\n    .children = \u0026[_]Node{\r\n        Node{ .value = 50, .data = 1 },\r\n        Node{ .value = 30, .data = 2 },\r\n        Node{ .value = 20, .data = 3 },\r\n    },\r\n};\r\n\r\n// Define your container\r\nconst container = squarify.Rect{ .x = 0, .y = 0, .width = 800, .height = 600 };\r\n\r\n// Squarify\r\nconst treemap = try Squarify.init(allocator).squarify(container, root);\r\ndefer treemap.deinit();\r\n```\r\n\r\n## Contributing\r\nPull requests and issues are welcome.\r\n\r\nEnjoy creating fast squarified treemaps with Zig!\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeevus%2Fzig-squarified","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeevus%2Fzig-squarified","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeevus%2Fzig-squarified/lists"}