{"adoption": {"forks": 13286, "observed_at": "2026-08-28T04:12:21.363440+00:00", "stars": 73868}, "canonical_url": "https://ross.abutalabs.com/products/x-recommendation-algorithm", "card": {"archived": false, "artifact_type": "service", "description": "Source code for the X Recommendation Algorithm", "domain": ["machine-learning", "social-media", "analytics", "large-language-models"], "enriched": true, "function": ["machine-learning", "search-engine", "streaming", "data-science"], "health_score": 45, "homepage": "https://blog.twitter.com/engineering/en_us/topics/open-source/2023/twitter-recommendation-algorithm", "language": "Scala", "license": "AGPL-3.0", "license_family": "copyleft", "maturity": "active", "member_repos": ["twitter/the-algorithm", "twitter/the-algorithm-ml"], "name": "X Recommendation Algorithm", "platform": ["jvm", "rust", "cloud"], "pushed_at": "2025-09-08T18:40:54+00:00", "repo": "twitter/the-algorithm", "stars": 73868, "tags": ["recommendation-system", "feed-ranking", "scala", "social-graph", "embeddings", "content-ranking", "docker"], "topics": [], "urls": [], "use_cases": ["understand how the X For You feed ranking works", "study large-scale recommendation systems in production", "learn how social media feeds are personalized", "research community detection and graph embeddings at scale", "build a recommendation service for a social feed", "study ML model serving architecture in Scala and Rust"], "what_it_is": "The open-source source code for X's (formerly Twitter) recommendation algorithm, a set of services and jobs that serve personalized feeds of posts across X product surfaces like the For You timeline, search, and notifications. It includes data pipelines, embedding models (SimClusters, TwHIN), trust-and-safety models, and serving frameworks such as product-mixer and navi.", "when_to_avoid": ["you want a plug-and-play recommendation library for your own app", "you need a small, self-contained project that runs without X's infrastructure", "you require a permissive license since it is AGPL-3.0"], "when_to_choose": ["you want to inspect or research a real production-scale recommendation algorithm", "you need reference implementations of candidate sourcing, ranking, and feed mixing", "you are studying social graph embeddings or user interaction prediction"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/repos/twitter/the-algorithm", "repo": "twitter/the-algorithm", "role": "main", "score": 48}, {"path": "/repos/twitter/the-algorithm-ml", "repo": "twitter/the-algorithm-ml", "role": "backend", "score": 30}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "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:12:21.363440+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:12:21.363440+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T16:14:59.634828+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5f356e92d92856d6eb0445ebfb3e212e4f08c3f65ff1753fd06a4a9c5c958166", "fetched_at": "2026-08-28T04:12:21.363440+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twitter/the-algorithm"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 41, "longevity": 89, "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": 1255, "days_push": 359, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 48, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}