{"id":28075164,"url":"https://github.com/mikeleg/flexsaber","last_synced_at":"2026-04-24T21:33:54.790Z","repository":{"id":292688297,"uuid":"981566638","full_name":"mikeleg/flexsaber","owner":"mikeleg","description":"Flexsaber is a declarative Web Components library for building flexible layouts using Flexbox. Designed to work in plain HTML, frontend frameworks, or no-code environments. Precise, modular, and powerful like a lightsaber.","archived":false,"fork":false,"pushed_at":"2025-05-12T09:35:55.000Z","size":1340,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T11:13:20.414Z","etag":null,"topics":["flexbox","frontend","html","ui-library","web-components"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/mikeleg.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,"zenodo":null}},"created_at":"2025-05-11T12:02:23.000Z","updated_at":"2025-05-12T09:33:09.000Z","dependencies_parsed_at":"2025-05-13T00:55:04.014Z","dependency_job_id":null,"html_url":"https://github.com/mikeleg/flexsaber","commit_stats":null,"previous_names":["mikeleg/flexsaber"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mikeleg/flexsaber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeleg%2Fflexsaber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeleg%2Fflexsaber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeleg%2Fflexsaber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeleg%2Fflexsaber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeleg","download_url":"https://codeload.github.com/mikeleg/flexsaber/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeleg%2Fflexsaber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":["flexbox","frontend","html","ui-library","web-components"],"created_at":"2025-05-13T00:55:02.016Z","updated_at":"2026-04-24T21:33:54.785Z","avatar_url":"https://github.com/mikeleg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flexsaber\n[![Build](https://github.com/mikeleg/flexsaber/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/mikeleg/flexsaber/actions?query=workflow%3A%22Build%22)\n\n![Flexsaber Logo](./logo.png)\n\n**Flexsaber** is a declarative Web Components library for building flexible layouts using Flexbox. Designed to work in plain HTML, frontend frameworks, or no-code environments. Precise, modular, and powerful like a lightsaber.\n\n---\n\n## 🚀 Installation\n```bash\nnpm install flexsaber\n```\n---\n\n## 🧪 Usage Example\n```html\n\u003cfx-container spacing=\"24\" scroll\u003e\n  \u003cfx-row gap=\"16\" wrap align=\"center\" justify=\"space-between\"\u003e\n    \u003cfx-item size=\"200px\" grow=\"1\"\u003eItem A\u003c/fx-item\u003e\n    \u003cfx-item size=\"200px\"\u003eItem B\u003c/fx-item\u003e\n  \u003c/fx-row\u003e\n\u003c/fx-container\u003e\n```\n\n---\n\n## 🧩 Components\n- `\u003cfx-container\u003e`: Full-space container with optional scroll and padding\n- `\u003cfx-row\u003e`: Horizontal flex container\n- `\u003cfx-column\u003e`: Vertical flex container\n- `\u003cfx-item\u003e`: Child element with optional `size`, `grow`, `shrink`, and `align`\n\n---\n\n## ⚙️ Attributes\nAll sizing values are in pixels (omit the `px` suffix).\n\n| Attribute   | Description                            |\n|-------------|----------------------------------------|\n| `gap`       | Uniform spacing between children       |\n| `row-gap`   | Vertical spacing override              |\n| `col-gap`   | Horizontal spacing override            |\n| `wrap`      | Enables wrapping                       |\n| `align`     | Align items vertically (e.g. center)   |\n| `justify`   | Align items horizontally (e.g. start)  |\n| `grow`      | Flex-grow value                        |\n| `shrink`    | Flex-shrink value                      |\n| `size`      | Flex-basis (initial size)              |\n\n---\n\n## 🛡 License\nMIT © 2025 Michele Gatti\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeleg%2Fflexsaber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeleg%2Fflexsaber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeleg%2Fflexsaber/lists"}