{"adoption": {"forks": 267, "observed_at": "2026-08-28T04:05:24.219754+00:00", "stars": 1701}, "canonical_url": "https://ross.abutalabs.com/products/acts_as_tenant", "card": {"archived": false, "artifact_type": "library", "description": "Easy multi-tenancy for Rails in a shared database setup.", "domain": ["web-development", "backend", "developer-tools"], "enriched": true, "function": ["middleware", "database", "security"], "health_score": 34, "homepage": null, "language": "Ruby", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["ErwinM/acts_as_tenant"], "name": "ErwinM/acts_as_tenant", "platform": ["ruby"], "pushed_at": "2025-04-16T14:18:59+00:00", "repo": "ErwinM/acts_as_tenant", "stars": 1701, "tags": ["rails", "multi-tenancy", "row-level-tenancy", "shared-database", "gem", "activerecord", "web-server"], "topics": [], "urls": [], "use_cases": ["add multi-tenancy to a Rails app with a shared database", "scope all ActiveRecord models to the current tenant automatically", "resolve the current tenant from the request subdomain", "validate record uniqueness within a tenant", "prevent users from accessing another tenant's data"], "what_it_is": "A Ruby gem that adds fail-safe row-level multi-tenancy to Ruby on Rails applications using a shared database. It scopes models to a current tenant (e.g., an Account), sets the tenant per request via subdomain or controller, and guards against tenant-scoping bypasses.", "when_to_avoid": ["you need schema-based multitenancy (consider the Apartment gem)", "you're not using Rails or ActiveRecord", "you need database-per-tenant isolation"], "when_to_choose": ["you're building a Rails app with a shared database and row-level tenancy", "you want automatic, fail-safe tenant scoping with minimal code changes", "you identify tenants by subdomain or per-request logic"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/acts_as_tenant", "repo": "ErwinM/acts_as_tenant", "role": "main", "score": 30}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "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:24.219754+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:24.219754+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:37:41.932828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "2ffcb1410a5c9fd6c22561d99e21ab1a39f46fc1029039392bc60e6495f99904", "fetched_at": "2026-08-28T04:05:24.219754+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ErwinM/acts_as_tenant"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 16, "longevity": 100, "rhythm": 8}, "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": 5504, "days_push": 504, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 30, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}