Plugins. Everybody loves plugins. These tiny little things, which... Oops, I'm wrong, sorry.
Ok, I'll start again.
A plug-in (or plugin, add-in, addin, add-on, addon, or extension) is a software component that adds a specific feature to an existing computer program
Sounds like a real cool thing, doesn't it? It would be great, if Leafpub would support plugins, so you could add one or more features to it.
We also created an example plugin. You'll find it also on Github.
In Leafpub, a plugin can listen to any events or can be a Middleware or you can define routes in the plugin.json file and create new endpoints.
I'm looking forward to your feedback!