Adding in builtin modules


I want to implement a basic C++ module, but I cant seem to find a good “template” class to base my code off of. Any suggestions? Also, what IDE is good for building electron? VS is all kinds of buggy and draws TONS of syntax errors. I do not want to add in a module by putting it in node-modules, I want it inside of the application itself.