A JavaScript application (OOP-based) for generating and displaying profile, list, and community URLs from X (formerly Twitter), featuring OAuth 2.0 support, token refresh, local storage, and filtered blocked users.
-
OAuth 2.0 PKCE login (using your X Developer Client ID)
-
Automatic token refresh (if supported by your client)
-
Persistent storage using
localStorageandsessionStorage -
Manual logout (clears all stored tokens)
-
Dynamic URL generation for:
- Communities: members, moderators
- Lists: followers, members
- Users: followers, following, verified followers
-
Visual indicator of authentication status
-
Modern UI styled like X.com
-
Clone or download this project:
git clone https://github.com/andrealba/x-finder-general.git cd x-finder-general -
Open
index.htmlin your browser directly, or launch a local server:# With Python 3 python -m http.server # Then visit http://localhost:8000
-
Fill in the required fields:
- Your Client ID from developer.x.com
- Optionally, a Bearer Token
- One of: Community ID, List ID, or User ID
-
Click "Login with X" to begin the OAuth flow.
-
Copy
x-finder-general.htmlto your repo root. -
In GitHub > Settings > Pages:
- Set source to
mainbranch, root folder (/).
- Set source to
-
After deployment, add the following URI in your app settings on X Developer Portal:
https://andrealba.github.io/x-finder-general
Tokens are stored in localStorage for ease of use during development. In production:
- Consider encrypting tokens
- Set shorter token expiration
- Implement CORS protection on server
- Strip debug logs and error traces
This project is released under the MIT License.