@quotalayer/sdk
v0.1.0-alpha.2
Published
TypeScript SDK for QuotaLayer usage metering, entitlements, and atomic credits.
Maintainers
Readme
@quotalayer/sdk
TypeScript client for QuotaLayer usage metering, entitlements, and atomic credit reservations.
pnpm add @quotalayer/sdkimport { QuotaLayer } from '@quotalayer/sdk';
const quotaLayer = new QuotaLayer({
baseUrl: 'http://127.0.0.1:8080',
apiKey: process.env.QUOTALAYER_API_KEY!,
});
const entitlement = await quotaLayer.entitlements.check('customer-001', 'ai.chat');See the QuotaLayer repository for self-hosting, Credits reservation examples, API documentation, and Alpha limitations.
Licensed under Apache-2.0.
