{"adoption": {"forks": 481, "observed_at": "2026-08-28T04:09:41.788869+00:00", "stars": 6327}, "canonical_url": "https://ross.abutalabs.com/products/swift-algorithms", "card": {"archived": false, "artifact_type": "library", "description": "Commonly used sequence and collection algorithms for Swift", "domain": ["developer-tools", "cross-platform"], "enriched": true, "function": ["developer-tools"], "health_score": 87, "homepage": null, "language": "Swift", "license": "Apache-2.0", "license_family": "permissive", "maturity": "stable", "member_repos": ["apple/swift-algorithms"], "name": "apple/swift-algorithms", "platform": ["cross-platform"], "pushed_at": "2026-07-22T23:09:31+00:00", "repo": "apple/swift-algorithms", "stars": 6327, "tags": ["swift-package-manager", "sequences", "collections", "combinatorics", "itertools", "algorithms", "swift"], "topics": ["algorithm", "iterator", "itertools"], "urls": [], "use_cases": ["chunk a collection into consecutive subsequences", "generate combinations and permutations of a collection", "take a random sample from a sequence", "cycle over collection elements", "find unique or adjacent-pair operations on sequences", "group array elements by a key path"], "what_it_is": "An Apple-maintained Swift package of sequence and collection algorithms such as chunking, combinations, permutations, and random sampling. It extends the Swift standard library with well-tested, source-stable algorithm APIs.", "when_to_avoid": ["you need heavy data-structure algorithms like trees or graphs", "you want a general-purpose algorithms textbook library rather than sequence/collection helpers", "your project cannot adopt newer Swift toolchains required by recent versions"], "when_to_choose": ["you need common sequence/collection algorithms beyond the Swift standard library", "you want a source-stable, Apple-maintained package with semver guarantees", "you want Python-itertools-like functionality in Swift"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/swift-algorithms", "repo": "apple/swift-algorithms", "role": "main", "score": 65}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "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:09:41.788869+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:41.788869+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:46:10.141078+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ffe19f6f8dfef85cc1666b01eb6810900c4625c3cd4a3519cb4444700ef3b815", "fetched_at": "2026-08-28T04:09:41.788869+00:00", "kind": "readme", "missing": false, "url": "https://github.com/apple/swift-algorithms"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 93, "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": 2162, "days_push": 42, "days_rel": 569, "gap_med": null, "n_releases_24m": 1}, "score": 65, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}