chntrkss / twitter-algorithm

The official Twitter ranking algorithm

Home Page:https://twitter-algorithm.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://twitter-algorithm.vercel.app

License:MIT License


Languages

Language:TypeScript 99.5%Language:JavaScript 0.5%