• Stars
    star
    202
  • Rank 193,691 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The official Twitter ranking algorithm

Twitter Algorithm

Elon Musk recently purchased Twitter and has decided to make our algorithm fully open source. We've put it on GitHub for the world to scrutinize and remix.

"Free speech is the bedrock of a functioning democracy, and Twitter is the digital town square."

~ Elon Musk

Using the validator

Want to see how your tweet will score? Give the algorithm a try for yourself

Pro tips:

  • Try typing "elon" for 100 points
  • Include a few of Elon's favorite emojis for 10 points each (πŸš€ πŸ’« 🚘 πŸ† ❀️ πŸ«ƒ)

Contributing to the algorithm

Install dependencies:

npm install

Then run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Add new to rules to our algorithm by editing algorithm.ts.

Pull requests encouraged. This is humankind's social network now.

πŸ‡ΊπŸ‡Έ FREEDOM! πŸ‡ΊπŸ‡Έ