Hi,
You could do this with a snapin, however, we do not have the docs for this right now (this is something we are working on).
You can take a look in plugins/snapin/ and take a look at how they work.
Feel free to ask any questions about that, or hop into
slack and we can help.