{"adoption": {"forks": 101, "observed_at": "2026-08-28T04:03:41.401212+00:00", "stars": 1127}, "canonical_url": "https://ross.abutalabs.com/products/swiftsingleton", "card": {"archived": false, "artifact_type": "learning-resource", "description": "An exploration of the Singleton pattern in Swift", "domain": ["developer-tools", "tutorials", "programming-languages"], "enriched": true, "function": ["developer-tools"], "health_score": 20, "homepage": null, "language": "Swift", "license": "Apache-2.0", "license_family": "permissive", "maturity": "abandoned", "member_repos": ["hpique/SwiftSingleton"], "name": "hpique/SwiftSingleton", "platform": [], "pushed_at": "2016-11-05T18:02:48+00:00", "repo": "hpique/SwiftSingleton", "stars": 1127, "tags": ["swift", "singleton-pattern", "design-patterns", "educational", "thread-safety", "ios", "macos"], "topics": [], "urls": [], "use_cases": ["how to implement a singleton in Swift", "thread-safe singleton Swift example", "lazy initialization singleton pattern Swift", "Swift 1.2 static let singleton", "dispatch_once singleton in Swift", "nested struct singleton workaround"], "what_it_is": "An educational repository exploring different implementations of the Singleton pattern in Swift, comparing class constant, nested struct, and dispatch_once approaches. It demonstrates lazy initialization and thread safety trade-offs across Swift versions.", "when_to_avoid": ["production code on modern Swift versions where static let is standard", "needing up-to-date Swift concurrency patterns like actors", "looking for a maintained library rather than a reference example"], "when_to_choose": ["learning how the Singleton pattern works in Swift", "comparing historical Swift singleton implementations", "teaching design patterns in Swift courses"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/swiftsingleton", "repo": "hpique/SwiftSingleton", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "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:41.401212+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:41.401212+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:38:47.836089+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4a8548a62e87e07e6c970c114b58f36755590fea0a9b553ec91eb9900a430052", "fetched_at": "2026-08-28T04:03:41.401212+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hpique/SwiftSingleton"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4467, "days_push": 3588, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}