Yes, there are many other key generators out there, why should anyone bother?
Well, my main motivation here is being able to generate these keys offline in pretty much any operating system, for privacy of course.
My "vision" is to keep the app dedicated to Nostr and offer various APIs to access new keys, like an HTTP interface, a web page, a desktop app, a mobile app, a command-line interface, and so on so forth.
For those interested in trying the command-line interface
I'm assuming you have node already installed in your environment, I have used node 18 during the development but it's tested against 20 and 22 as well.
npm i
Usage
npm run generate-nostr-keys
It should give you something like this:
These are your keys to the Nostr network: Public Key: npubad0cf718356266fe317aa508c293768a3abfb95fdc34f5f7866955ba566c1f87 Private Key: nsec4b327c5183b12966c5449c493baa1ade60044e78ddc5d84042c59921c9a82c55 These keys are used to identify you on the Nostr network, anyone who gains access to them can impersonate you. If you lose them, you will not be able to access your Nostr account ever again.