{"id":32570035,"url":"https://github.com/altsem/layzer","last_synced_at":"2025-10-29T08:13:15.515Z","repository":{"id":301956284,"uuid":"1010766293","full_name":"altsem/layzer","owner":"altsem","description":"A Lightweight Terminal Layout Library","archived":false,"fork":false,"pushed_at":"2025-06-29T19:41:01.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-29T20:28:19.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/altsem.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-06-29T18:58:10.000Z","updated_at":"2025-06-29T19:41:04.000Z","dependencies_parsed_at":"2025-06-29T20:29:02.217Z","dependency_job_id":"2c00ced9-7b5b-4e88-a053-57cf524ab722","html_url":"https://github.com/altsem/layzer","commit_stats":null,"previous_names":["altsem/layzer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/altsem/layzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altsem%2Flayzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altsem%2Flayzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altsem%2Flayzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altsem%2Flayzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altsem","download_url":"https://codeload.github.com/altsem/layzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altsem%2Flayzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281585109,"owners_count":26526201,"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-10-29T02:00:06.901Z","response_time":59,"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":[],"created_at":"2025-10-29T08:13:09.889Z","updated_at":"2025-10-29T08:13:15.510Z","avatar_url":"https://github.com/altsem.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# layzer\n\n### A Lightweight Terminal Layout Library\n\n**Work-in-progress, unfinished and broken, be warned**\n\n```txt\nLayzer is a zero-heap-allocation layout library for\nbuilding nested layouts with discrete positioning\nand sizing.\nIt's designed for terminal UIs, text-based interfaces,\nand any scenario where you need to compute positions and\nsizes of rectangular elements.\n\n- Zero heap allocations -           - Hierarchical layouts -\nAll layout computation is done      Support for nesting layouts\nwithout dynamic memory allocation.  and arranging children within them.\n\n- Flexible sizing -               - Axis-oriented layouts -\nAuto-sizing based on content or   Arrange  children  horizontally\nfixed dimensions.                 children\n                                  vertically\n```\n### Quick Start\n\n```rust\nuse layzer::{Layout, LayoutMeta, Axis};\n\n// Create a text element\nlet text_layout = Layout::text(\"Hello, World!\");\n\n// Create a container with children\nlet mut container = Layout {\n    meta: LayoutMeta::default().vertical().gap(1),\n    children: \u0026mut [\n        Layout::text(\"First line\"),\n        Layout::text(\"Second line\"),\n    ],\n};\n\n// Compute layout within 80x24 bounds\ncontainer.compute([80, 24]);\n\n// Iterate over computed positions and data with a stack-size of 8\nfor (position, text) in container.iter::\u003c8\u003e() {\n    println!(\"Text '{}' at position {:?}\", text, position);\n}\n```\n\n### Layout Structure\n\nLayouts form a tree structure where each node can contain data and/or children.\nThe layout engine computes positions recursively, respecting the orientation\nand sizing constraints of each node.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltsem%2Flayzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltsem%2Flayzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltsem%2Flayzer/lists"}