aplotor/expanse

[Feature] Plugin system

QtFuta opened this issue · 0 comments

I have an idea to include some sort of plugin system to process the posts that are being saved.

This way expanse can be decoupled of some features users might want to add and focus on only storing data directly retrieved from Reddit's API.

For example, saving images of posts, a plugin could be implemented for whatever image storage service a user might want to use (to disk, imgur, imgbb, any other cloud provider, etc)
Other might be retrieve and save the content of any link.

The plugins could be registered for all post being saved (i.e. inserts to item table), or for users to decide which ones they want to enable for their posts (i.e. inserts to user_item table)