Note: This is no longer deployed after Twitter made API access prohibitively expensive.
ListFollowers allows you to get a list of your Twitter follows, followers, or mutuals, or combine such lists from two users with set operations.
- Find out who your biggest followers are by follower count or followers-to-follows ratio
- Giving follow recommendations to a friend: find out who you follow who they don't follow yet
- Networking: find out which of your followers are followed by a big account you want to connect with
- Making friends: when traveling, search for followers who mention your destination in their bio or location…
- …or search for followers who mention your hobbies or interests in their bio
- Find and promote underrated accounts: sort your follows from lowest follower count
- Opsec: find out who follows both your walletname account and your pseudonymous alt
- …and probably many others
This was written in 2022.
I'm making this repo public now as a code sample while I look for job opportunities. The code is not too bad, but I would do many things differently today:
- I'd mock the Twitter API so that I can at least run and manually test the app without access to the API, if not add e2e tests.
- Given that the backend is written in Typescript anyway, I'd choose a fullstack framework like Next or Tanstack Start.
- If I did go with an SPA, I'd use Tanstack Query and not fetch data in useEffect!
- I'd use Tailwind and ShadcnUI for quick and easy styling.
I do appreciate a few good things about the code:
- Meticulous handling of Twitter API errors, propagating useful information to the user
- Doing everything to optimize the number of request against the brutal Twitter API rate limits (e.g. bailing out early if the number of requests needed doesn't fit into the rate limit window, allowing the user to try different requests in the same window)
- Good UX with explicit rate limits information for the user
