Installation
Packages
Section titled “Packages”| Package | Runs on | Use it for |
|---|---|---|
@octap/sdk |
Your Node server | Points, vouchers, webhooks and verifying customers. Holds your API key. |
@octap/browser-sdk |
Your website | Customer sign-in and signing. Holds no merchant credential. |
@octap/contracts |
Anywhere | TypeScript types only. @octap/sdk re-exports the ones you need. |
Never import @octap/sdk into browser code, because it would expose your API key.
Install
Section titled “Install”Once they are published, you will install them like this:
# On your servernpm install @octap/sdk
# On your websitenpm install @octap/browser-sdkUse them today
Section titled “Use them today”Work inside the octap-core repository, where the root manages every package as an npm workspace.
git clone https://github.com/OctaPointees/octap-core.gitcd octap-corenpm cinpm run buildCode in that repository can then import @octap/sdk and @octap/browser-sdk by name. Run it locally shows the examples that do this.
Requirements
Section titled “Requirements”- Node SDK: a runtime with a global
fetch. The repository itself requires Node>=24.15 <25. - Browser SDK: a modern browser that can load Google’s sign-in script.
- From OctaP: an API key, your organization ID, and for sign-in, the shared Google client ID with your site’s origin added to it.

