Yes. Should I put it under the "optionalDependencies" key in package.json? Then how one goes to install it if they want?
Discussion
I think an optionDependency would be better in this case. because then developers can at least decide if to install it. It it does not need to be installed if not needed (though npm will still try to install it by default)
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#optionaldependencies