Hello! I’ve been mostly away from Lemmy/Piefed for a bit (important to take a break for mental health) but, was hoping that someone could point me to Piefed plugin examples/docs.
I have been experimenting with open-source small language models (recently, Hugging Face’s SmolLM series) both professionally and on my own time and had some excellent accessibility use cases pointed out to me (ex. generating image alt text if absent) that I’d like to look into the practicality of making optionally available to Pixelfed. Because the models that I’m looking at are so small (I can run them on my android phone!), I’m confident that they could be used server-side without resource issues. And I’d also like to see if I can do any more fun, non-AI stuff with plugins too.
Thanks!


I think hendrik covered the basics. Plugins within piefed are pretty basic right now since there are only so many hooks that they can tap into. However, if you come up with a use case that the current set of hooks don’t allow you to do, please reach out and we can add more hooks in as the need arises.
The system itself can be extremely powerful, but similarly dangerous. Plugins have full access to the piefed database and any functions/modules in the codebase. If you want an example of a plugin that is currently being used in production (by at least two instances I know of) you could look at the onboarding plugin that I wrote.
Good stuff! Thanks very much.