Requirements
Before installing the Vepler SDK, ensure you have:- Node.js 18.0 or higher
- npm, yarn, pnpm, or bun package manager
- A Vepler API key (get one here)
Installation
Choose your preferred package manager:- npm
- yarn
- pnpm
- bun
Verify Installation
Check that the SDK is installed correctly:Basic Setup
1. Import the SDK
2. Initialise with API Key
3. Make Your First Call
Environment Variables
Create .env File
.env
Load Environment Variables
Framework-Specific Setup
Next.js
Next.js
Express.js
Express.js
NestJS
NestJS
TypeScript Configuration
The SDK includes TypeScript definitions. Recommended tsconfig settings:tsconfig.json
Troubleshooting
Module not found error
Module not found error
Ensure the package is installed:Clear your package manager cache:
TypeScript errors
TypeScript errors
Update TypeScript to latest version:Ensure your tsconfig.json has:
API key not working
API key not working
Check that:
- The key starts with
vpr_live_ - No extra spaces or quotes around the key
- The key has not expired
Version Management
Check Installed Version
Update to Latest
Next Steps
TypeScript Guide
Full SDK usage guide
Examples
See working examples
Authentication
Authentication details
API Reference
Full endpoint documentation