Skip to main content
npm version The TopK JavaScript library provides convenient access to the TopK API from Node.js environments with full TypeScript support.

Installation

Prerequisites

Usage

Handling errors

The SDK throws plain Error objects. Check err.message to identify the error:

Retries

The client automatically retries on slow-down and LSN consistency timeouts. Retry behaviour can be configured via retryConfig:

Requirements

Node.js 18 or higher.