TypeScript SDK

Track usage, manage quotas, and enforce rate limits with TypeScript

The Limitry TypeScript SDK provides a simple, type-safe way to integrate usage tracking and quota management into your Node.js and TypeScript applications.

Common Tasks

Quick Start

import { Limitry } from 'limitry';

const client = new Limitry({ apiKey: 'your-api-key' });

// Track usage
await client.track({
  customerId: 'cust_123',
  event: 'api_call',
  value: 1,
});

// Check quota
const result = await client.checkQuota({
  customerId: 'cust_123',
  quotaId: 'api_calls',
});

if (result.allowed) {
  // Proceed with the operation
}

Learn the Concepts

New to usage metering? Start with the fundamentals:

On this page