Skip to main content

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:

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

Never hardcode API keys in your source code. Use environment variables instead.

Create .env File

.env

Load Environment Variables

Framework-Specific Setup

TypeScript Configuration

The SDK includes TypeScript definitions. Recommended tsconfig settings:
tsconfig.json

Troubleshooting

Ensure the package is installed:
Clear your package manager cache:
Update TypeScript to latest version:
Ensure your tsconfig.json has:
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