# xai-org/x-algorithm

Algorithm powering the For You feed on X

Repository: https://github.com/xai-org/x-algorithm
Canonical: https://ross.abutalabs.com/products/x-algorithm
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T20:04:13+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 16
- inputs: {"age_days": 226, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 32322, forks 5322 (observed 2026-08-28T04:11:57.512129+00:00)

## What it is
The open-source algorithm that powers X's For You feed, combining in-network and ML-retrieved out-of-network posts, filtering them, and ranking with transformer-based models. It includes ranking weights, visibility filters, model training code, and a label transparency tool.

## Use cases
- understand how the X For You feed ranks posts
- study production recommendation and feed ranking systems
- reproduce a proof-of-concept feed model training run
- inspect content filtering and visibility rules on X
- learn how engagement prediction weights work in ranking
- build a social media feed ranking algorithm
- audit algorithmic transparency of a major platform

## When to choose
- you want to study or audit a real production feed ranking system
- you're researching recommender systems, engagement prediction, or content filtering at scale
- you want transparency into how X ranks and filters posts

## When to avoid
- you need a plug-and-play recommendation library for your own app
- you expect the full X production infrastructure, data, or serving stack
- you want a small, self-contained project rather than a large multi-service codebase

## Facets
- artifact type: service
- maturity: active
- function: machine-learning, search-engine, middleware, monitoring
- domain: large-language-models, machine-learning, social-media, developer-tools
- platform: rust, cloud
- tags: feed-ranking, recommendation-system, recommender, social-feed, content-filtering, transparency, transformer-model, open-algorithm, algorithms, linux, docker

## Member repositories
- xai-org/x-algorithm (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:57.512129+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:52:07.243739+00:00, confidence not recorded.
  - readme: https://github.com/xai-org/x-algorithm (fetched 2026-08-28T04:11:57.512129+00:00, sha aa6be722777c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
