Twitter Algorithm

Our algorithm has been a secret since Twitter first began in 2006, but at the request of our new owner, Elon Musk, our algorithm is now in the public domain. 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

Viewing

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

Pro tips:

  • Try typing "elon" for 25 points
  • Or "🐸" for 50 points

Contributing

First, run the development server:

npm run dev
# or
yarn dev

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

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