Stubs

Generating code

Generated SDKs: TypeScript

Every module has generated SDKs: packages built from it with a plugin, installed like any other. The module's SDKs tab shows the exact name and version for each plugin, ready to copy; these are the same steps.

Packages are named @stubsdev/{owner}_{module}.{pluginOwner}_{plugin}, and depend on each other the way the modules and plugins do.

Install

Point the scope at Stubs in .npmrc:

@stubsdev:registry=https://npm.stubs.dev/
npm install @stubsdev/acme_payments.protobuf-es@<version>

Private modules

Add a token with the sdk:read scope to .npmrc:

//npm.stubs.dev/:_authToken=YOUR_SDK_TOKEN