{"adoption": {"forks": 164, "observed_at": "2026-08-28T04:06:56.611757+00:00", "stars": 2494}, "canonical_url": "https://ross.abutalabs.com/products/defaults", "card": {"archived": false, "artifact_type": "library", "description": "💾 Swifty and modern UserDefaults", "domain": ["mobile-development", "desktop-applications", "developer-tools"], "enriched": true, "function": ["state-management", "serialization", "developer-tools"], "health_score": 92, "homepage": "https://swiftpackageindex.com/sindresorhus/Defaults/documentation/defaults", "language": "Swift", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["sindresorhus/Defaults"], "name": "sindresorhus/Defaults", "platform": ["cross-platform"], "pushed_at": "2026-06-23T21:26:22+00:00", "repo": "sindresorhus/Defaults", "stars": 2494, "tags": ["userdefaults", "swift-package-manager", "swiftui", "key-value-storage", "codable", "icloud-sync", "apple-platforms", "macos", "ios", "swift"], "topics": ["userdefaults", "nsuserdefaults", "macos", "ios", "swift-package-manager", "swift-package", "swifty", "swiftui-components", "storage"], "urls": [], "use_cases": ["store app settings persistently across launches", "replace @AppStorage with strongly-typed defaults", "observe changes to user preference values", "store Codable types in UserDefaults", "sync app preferences across devices via iCloud", "use UserDefaults outside of SwiftUI"], "what_it_is": "A Swift library providing a strongly-typed, modern facade over UserDefaults for persistent key-value storage in Apple platform apps. It supports Codable values, SwiftUI property wrappers, change observation, and iCloud synchronization.", "when_to_avoid": ["you need a database or large structured storage rather than key-value preferences", "you target platforms outside Apple's ecosystem", "you're not using Swift or Swift Package Manager", "you need cross-platform persistence like shared preferences on Android"], "when_to_choose": ["you're building a macOS, iOS, tvOS, watchOS, or visionOS app in Swift", "you want type-safe, centralized defaults with default values defined in one place", "you need SwiftUI bindings plus observation outside SwiftUI", "you want to store Codable or custom types in user defaults"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/defaults", "repo": "sindresorhus/Defaults", "role": "main", "score": 87}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "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:06:56.611757+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.611757+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:27:17.802279+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4d9e9ad72f2e2e24ac658e988dfb0f19a9f25cf860216cc7fb891c0e82477e5d", "fetched_at": "2026-08-28T04:06:56.611757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/Defaults"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 89, "longevity": 100, "rhythm": 78}, "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": 3066, "days_push": 71, "days_rel": 71, "gap_med": 41, "n_releases_24m": 10}, "score": 87, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}