Install
@westyx-nexus scope at it in your .npmrc:
Requirements
Both ESM and CommonJS builds ship, each with its own type declarations.
Use a public API key
A public key is safe to ship in a bundle: it cannot read secrets, and the backend’s Double-Gate check ties it to one service host. Any other key is rejected when the provider initialises, with aNexusConfigError that names the option and carries only the key’s prefix - never its material.
Create one in the Nexus admin console under the service’s API keys, choosing the public key type.
The key is sent in the X-Nexus-API-Key request header on every call, so it never appears in a URL, in browser history, or in a referrer.
TypeScript
Type declarations are bundled with the package. No@types/ package is needed.