How it works
Top posts
This application runs entirely in your browser, which makes requests to the Mastodon API on the server of the account you are viewing.
When you view an account’s top posts at /by/@{username}/{server}
, your browser makes requests to {server}
’s public API to get all public posts by that account, sorts them by favourite_count
descending, then displays the most-favorited posts.
For example, for @kottke@botsin.space, your browser will make requests to https://botsin.space/api/v1/accounts/109478699916859289/statuses
Search
When you search for an account, your browser makes requests requests to mastodon.social’s public search endpoint, e.g. https://mastodon.social/api/v2/search?q=kottke.org. It’s the same request that mastodon.social’s search page uses.
Crimes / LLM
The "Crimes" feature uses an LLM running on a GPU in my closet. Source code, including details of the model used (currently llama 3.2) and the system prompts, are at https://github.com/ricci/criminalize. I have solar panels on my roof, if that helps you feel any better about the environmental impact.
Source code
Source code is available on GitHub at ricci / top-mastodon-posts. This is a fork of patrik-csak / top-mastodon-posts