twitter/the-algorithm
Source code for the X Recommendation Algorithm
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
The project lists 3 contributors on GitHub.
Peaked at #3 in the weekly ranking the week of Jan 18, its best in the past year.
Use Cases & Benefits
- Implements a comprehensive recommendation system serving personalized content feeds across multiple X product surfaces.
- Integrates diverse data sources, machine learning models, and real-time user signals for highly relevant and dynamic content recommendations.
- Use for developing scalable, multi-surface recommendation engines leveraging graph-based and embedding models.
- Use for research and experimentation with advanced ranking models including neural networks and multi-task learning for user engagement prediction.
- Use for building privacy-aware content filtering and trust-and-safety mechanisms within recommendation workflows.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
AGPL 3.0
Network copyleft: like the GPL, and also triggered by offering the software over a network.
Community files
- README: present
- Code of conduct: present
Watch-outs
- AGPL-style copyleft also applies when the software is offered over a network.
- Warning: No commits in over a year (last push Sep 2025).
- 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
X's Recommendation Algorithm is a set of services and jobs that are responsible for serving feeds of posts and other content across all X product surfaces (e.g. For You Timeline, Search, Explore, Notifications). For an introduction to how the algorithm works, please refer to our engineering blog.
Product surfaces at X are built on a shared set of data, models, and software frameworks. The shared components included in this repository are listed below:
The product surfaces currently included in this repository are the For You Timeline and Recommended Notifications.
The diagram below illustrates how major services and jobs interconnect to construct a For You Timeline.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
13.3K+0
Open issues
524+6
Compared with peers in AI
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| D4Vinci/Scrapling | 101.1K | +6.3K | 75 | 6 days ago |
| thedotmack/claude-mem | 115.8K | +4.7K | 75 | today |
| heygen-com/hyperframes | 82.3K | +4.0K | 75 | today |
| harry0703/MoneyPrinterTurbo | 142.0K | +3.8K | 75 | 3 days ago |
| github/spec-kit | 149.2K | +2.6K | 75 | today |
| twitter/the-algorithm | 74.0K | — | 12 | — |
| Category median | 115.8K | +4.0K | 75 | — |
Also by twitter
Other repositories from this maintainer that GStars tracks
Discover Repositories
Search across tracked repositories by name or description