{"adoption": {"forks": 22, "observed_at": "2026-08-28T04:03:29.878070+00:00", "stars": 1078}, "canonical_url": "https://ross.abutalabs.com/products/betteralign", "card": {"archived": false, "artifact_type": "cli-tool", "description": "Detect and fix struct field alignment to reduce memory usage in Go programs", "domain": ["developer-tools", "performance", "programming-languages"], "enriched": true, "function": ["linter", "formatter", "developer-tools"], "health_score": 99, "homepage": null, "language": "Go", "license": "BSD-3-Clause", "license_family": "permissive", "maturity": "active", "member_repos": ["dkorunic/betteralign"], "name": "dkorunic/betteralign", "platform": ["go", "cli", "windows"], "pushed_at": "2026-08-21T10:01:24+00:00", "repo": "dkorunic/betteralign", "stars": 1078, "tags": ["struct-alignment", "memory-optimization", "static-analysis", "code-rewriting", "golang-analyzer", "linux", "macos"], "topics": ["alignment", "analyzer", "golang", "memory", "garbage-collector"], "urls": [], "use_cases": ["reduce memory usage of Go structs by reordering fields", "find structs with suboptimal field alignment in a Go codebase", "automatically fix struct field ordering without losing comments", "detect positional composite literals that would break if fields are reordered", "run fieldalignment analysis in CI with opt-in or opt-out annotations"], "what_it_is": "betteralign is a Go static analysis tool that detects structs whose fields could be reordered to reduce memory usage, and can optionally rewrite them safely. It is a fork of the official fieldalignment analyzer with improvements like comment preservation, atomic writes, and safer skip/ignore controls.", "when_to_avoid": ["your project is not written in Go", "you only care about anonymous structs, which are deliberately skipped", "you need atomic rewrite guarantees on Windows"], "when_to_choose": ["you want memory savings from struct field reordering in Go", "you need comment-preserving rewrites that the upstream fieldalignment tool lacks", "you have generic structs or positional literals that crash or break upstream tooling"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/betteralign", "repo": "dkorunic/betteralign", "role": "main", "score": 96}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.878070+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:53:08.863557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5e0794314b322bf48de28cab10de8166ef18ce7c674e9dccb8fb3c3f24d41ffc", "fetched_at": "2026-08-28T04:03:29.878070+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dkorunic/betteralign"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 98, "longevity": 90, "rhythm": 98}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1267, "days_push": 12, "days_rel": 13, "gap_med": 18, "n_releases_24m": 32}, "score": 96, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}