Just for fun, there is a Bip32 Hierarchical Deterministic (HD) + Bip39 Mnemonic seed word list version of the key.
Don't forget to exclude unused word lists to lower bundle size and make sure to enable .wasm support to load secp256k1. See example-react-vite how to do that in vite.
npm i securepeerkey-bip
const key = await SecurePeerKeyBip.createBipKey('plastic seed stadium payment arrange inherit risk spend suspect alone debris very')