How to make and material/node group addon?

Hi! Need some help.
I’d like to save my node group as an addon. I know I can use appending node groups (and saving it to load every time with blender) or use .ngr exporting but I’d like to make an independent addon.

I don’t know python. I’ll learn python after learning C++ at a good level. Any help welcome :wink:

I have seen a tutorial how to do that a long time ago but i cannot find it anywhere. I’ll be glad if you know that tut and link it in a post for me.