Is there already a canonical way to do this (I am speaking a ?lib from danoise somewhere)
Haha, I am flattered
Take a look in the Renoise.Application.API, it contains a bunch of features for exchanging presets.
Also, thread of interest:
https://forum.renoise.com/t/loading-saving-a-fxp-preset-via-lua/45282