Skip to content

coryetzkorn/twitter-algorithm

Repository files navigation

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! 🇺🇸

About

The official Twitter ranking algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •