I have no way to teste it myself. but I tested it against nos2x, so apparently it's a bit simple. I made an update, if you get a chance please try again and let me know if it worked
Discussion
Doesn't work still, is the code available somewhere so I could test and fix?
As you see here, the window.nostr provider is registered and available in console:

Ok, I just made it public here https://github.com/Buildtall-Systems/npub.dev