So. I did find a solution. You can make a package out of your storage module and then import that in your custom node. I didn't know nodejs persists once loaded packages you require multiple times. Then just require the storage class in the custom node and it works.