{"adoption": {"forks": 248, "observed_at": "2026-08-28T04:05:57.604838+00:00", "stars": 1944}, "canonical_url": "https://ross.abutalabs.com/products/closure_tree", "card": {"archived": false, "artifact_type": "library", "description": "Easily and efficiently make your ActiveRecord models support hierarchies", "domain": ["databases", "web-development", "developer-tools"], "enriched": true, "function": ["orm", "database", "data-science"], "health_score": 98, "homepage": "http://closuretree.github.io/closure_tree/", "language": "Ruby", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["ClosureTree/closure_tree"], "name": "ClosureTree/closure_tree", "platform": ["ruby", "jvm"], "pushed_at": "2026-08-05T19:26:01+00:00", "repo": "ClosureTree/closure_tree", "stars": 1944, "tags": ["activerecord", "closure-table", "tree-structure", "hierarchy", "rails", "nested-hashes", "ancestry", "nested-set"], "topics": ["closure-tree", "ruby", "nested-hashes", "tree-structure", "rails", "activerecord", "ancestry", "nested-set", "hierarchy", "hierarchies", "descendants", "parent", "child"], "urls": [], "use_cases": ["store hierarchical data like tags or categories in Rails", "model threaded comments with parent-child relationships", "fetch all descendants of a node in one query", "find or create a node by its ancestry path", "render tree structures as nested hashes or Graphviz DOT format", "manage user referral hierarchies"], "what_it_is": "A Ruby gem that lets ActiveRecord models act as nodes in a tree data structure using the closure table pattern. It provides highly efficient single-query reads and writes for hierarchical data like tags, threaded comments, and CMS page graphs.", "when_to_avoid": ["you are not using Ruby on Rails or ActiveRecord", "you need support for ActiveRecord versions older than 7.2", "your hierarchy is shallow and simple enough for a basic parent_id column", "you use a database other than MySQL, PostgreSQL, or SQLite"], "when_to_choose": ["you use ActiveRecord 7.2+ and need performant tree queries", "you need fast ancestor/descendant/sibling lookups in a single SELECT", "you need concurrency-safe hierarchy mutations", "you want STI support within a hierarchy"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/closure_tree", "repo": "ClosureTree/closure_tree", "role": "main", "score": 97}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "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:05:57.604838+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:57.604838+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:07:59.580400+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "51bb47e34d32210215faa418a79beb940787e63ebe0f47c8517a8428eb744129", "fetched_at": "2026-08-28T04:05:57.604838+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ClosureTree/closure_tree"}, {"content_hash": "4436b823ec600a7a42b4ecd6facdf9db0d54fae2d76bc217d4ddcd343d8276f5", "fetched_at": "2026-08-29T10:46:59.780293+00:00", "kind": "homepage", "missing": false, "url": "http://closuretree.github.io/closure_tree/"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 96, "longevity": 100, "rhythm": 96}, "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": 5586, "days_push": 28, "days_rel": 28, "gap_med": 30.0, "n_releases_24m": 11}, "score": 97, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}