I made something for Mastodon: A gallery mini-app.

https://source.joinmastodon.org/Gargron/gallery

You can simply drop it in your Mastodon server's public folder, and it will show images from your server in a mosaic grid with infinite scroll. Supports some configuration as well, e.g. whether to limit it to only local images, or a specific hashtag, or which server to fetch from.

Eugen Rochko / Gallery

Gallery view for Mastodon: See all local images in a beautiful grid

Okay, here is a demo! Everything in #mastoart:

https://mastodon.social/gallery/

Please mind that not safe for work images are displayed without warning in the gallery.

@Gargron Is the visibility of the toots considered? Eg are only media showed from public toots?
@benedikt Nothing funky here it just uses the public timeline API. Same thing as if you click on the #mastoart hashtag and choose media-only in the options
@Gargron
Thanks for the clarification.