Installation
VaultSaaS SDK is distributed as an npm package and can be installed using any Node.js package manager.Package managers
Install@vaultsaas/core using your preferred package manager:
Requirements
Node.js version
VaultSaaS SDK requires Node.js 20 or later:Bun support
The SDK is fully compatible with Bun 1.1+:TypeScript support
VaultSaaS SDK is written in TypeScript and includes full type definitions out of the box. No additional@types packages are needed.
TypeScript configuration
For the best experience, use TypeScript 5.0 or later with the following compiler options:tsconfig.json
TypeScript is optional. You can use VaultSaaS SDK with plain JavaScript, but you’ll miss out on type safety and autocomplete.
Module formats
The package exports both ESM and CommonJS formats:package.json
ESM (recommended)
CommonJS
Provider dependencies
VaultSaaS SDK has zero runtime dependencies. All provider adapters are included in the core package:StripeAdapter- Stripe integrationDLocalAdapter- dLocal integrationPaystackAdapter- Paystack integration
You don’t need to install separate Stripe, dLocal, or Paystack SDKs. VaultSaaS SDK communicates with providers directly via their REST APIs.
Verify installation
Verify the installation by importing the SDK:verify.ts
Version compatibility
| VaultSaaS SDK | Node.js | Bun | TypeScript |
|---|---|---|---|
| 0.1.x | 20+ | 1.1+ | 5.0+ |
Check the changelog for version-specific updates and breaking changes.
Next steps
Quickstart
Create your first payment in under 10 minutes
Configuration
Learn how to configure the VaultClient for your use case
Stripe setup
Configure the Stripe adapter
API Reference
Explore the complete API documentation