Follow

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

source.joinmastodon.org/Gargro

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.

@rysiek Uhhh if you give me a few minutes, it will be

Okay, here is a demo! Everything in :

mastodon.social/gallery/

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

@Gargron any chance to get NSFW filter implemented in the future?

@Gargron Maybe add an opt-in parameter to be featured in the gallery? Tbh I'm not an artist

@Gargron how can someone implement that in its own instance?

@Gargron thanks I should have scrolled a bit more ;)

@Gargron Interesting.

Using the Falkon browser, I only get a limited number of images. When I try it using MastaLab on my phone, I get a lot of images that don't show up on the browser version.

@Gargron Seems to work fine under Firefox. I wonder what the problem with Falkon/QupZilla is.

@ekaitz_zarraga Yeah! Except mastodon.art isn't hardcoded, it's a mosaic grid instead of square thumbnails, and it uses React instead of Clojure

@Gargron uses react inside and there's a way to change the URL (I should improve it!)

Artodon can open the pictures too! ;)

@ekaitz_zarraga You definitely have a cooler name for it than just gallery

@Gargron Actually, since the latest change it points to mastodon.social :D

@Gargron Nice work. Is this a feature that will be available to all?

@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 hashtag and choose media-only in the options

@Gargron Very cool, and great example of whats possible with the Mastodon API!

@Gargron I think that's very nice !!

Maybe that's something for @mastohost ?

So I would like to use :)

@KaptainRio I will have to look deeper into it, to see what it would involve on my end to see if I can make it possible

@Gargron

OK, that's definitely the best thing I've seen in the #Fediverse yet! Listening to the @hardmous archive, and just letting the images autoscroll in a full-screen browser...
https://anonradio.net/archive/201811032200_hardmous.mp3

@Gargron You can code for Mastodon?? I mean... Could I if I wanted to? That's radical. I'm new to this social network and coding something for Twitter or Facebook would be just a dream. Is it possible to ADD things to the network?

@neontiger mastodon has an open api, so anyone can write apps or plugins for it, like Gargron's gallery tool or pinafore.social/

Mastodon federates using the ActivityPub protocol, as does Pleroma, Peertube, plume, and pixelfed. Anyone with the appropriate skills can build their own social network that communicates with the rest of the fediverse using ActivityPub: w3.org/TR/activitypub/

You can also contribute code to mastodon itself through github: github.com/tootsuite/mastodon

@Gargron Thanks for the cool singe page app! I easily deployed one for my instance at mastodon-gallery.zunda.ninja/ through Netlify!

I'd appreciate if you could clarify the license on your original code so everyone will feel more safe to clone your code, when you have time.

@Gargron I have also tried to setup #cats gallery, and now it works on
catgram.jp/gallery/

Thanks for nice gallery app❗

Sign in to participate in the conversation
Mastodon

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!