xai-org

    xai-org/x-algorithm

    #139 this week

    Algorithm powering the For You feed on X

    backend
    Rust
    Apache-2.0
    33.5K stars
    5.4K forks
    33.5K GitHub watchers
    Updated Oct 8, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #58 among Backend repositories tracked this week, and #57 over the last 30 days; #139 of 1,950 repositories GStars tracks this week (top 7%).

    The project lists 2 contributors on GitHub.

    Use Cases & Benefits

    • Implements the core algorithm that powers the personalized For You feed on X by combining in-network and out-of-network posts, filtering, and ranking them using a transformer model.
    • Enables fine-grained, real-time content ranking and filtering with modular pipelines and transparency into filtering rules, supporting complex visibility decisions per viewer.
    • Use for building scalable, personalized social media feeds that blend followed and recommended content with advanced ML-based ranking.
    • Use for experimenting with content visibility filtering and moderation by integrating label-driven rules and user-specific settings.
    • Use for developing and deploying transformer-based ranking models with synthetic data generation and multi-source candidate retrieval in Rust.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Code of conduct: present

    Watch-outs

    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    This repository contains the core code that determines which posts a viewer sees in the For You feed on X. It combines in-network content (from accounts the viewer follows) with out-of-network content (discovered through ML-based retrieval and other mechanisms), filters content based on a variety of inputs, and ranks posts using a transformer model.

    Excerpt from the xai-org/x-algorithm README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Sep 5: +61Sep 6: +65Sep 7: +84Sep 8: +66Sep 9: +75Sep 10: +69Sep 11: +65Sep 12: +38Sep 13: +5Sep 21: +40Sep 22: +14

    +895 stars over 34 days across 14 snapshot days; best day +84 on Sep 7.

    Forks

    5.4K+72

    Open issues

    120+21

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 11, by 7-day star growth

    xai-org/x-algorithm compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    DuarteSantos8/openGym11.1K+5.4K603 days ago
    anthropics/knowledge-work-plugins29.5K+3.2K75—
    666ghj/MiroFish79.0K+2.2K23220 days ago
    microsoft/mxc2.8K+1.4K656 days ago
    danyuchn/asd-ste100-skill4.7K+1.0K75—
    xai-org/x-algorithm33.5K+075—
    Category median11.1K+2.2K65—

    Also by xai-org

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description