@kapable/sdk
v0.1.0
Published
TypeScript client SDK for the Kapable platform API
Downloads
27
Maintainers
Readme
@kapable/sdk
Official TypeScript SDK for the Kapable platform.
Installation
npm install @kapable/sdk
# or
bun add @kapable/sdkQuick Start
import { KapableClient } from '@kapable/sdk';
const client = new KapableClient({
baseUrl: 'https://api.kapable.dev',
apiKey: 'your-api-key',
});
// List projects
const projects = await client.projects.list();
// Query data
const rows = await client.data.query('my-project', 'users', {
limit: 10,
orderBy: 'created_at',
order: 'desc',
});
// Manage feature toggles
const toggle = await client.toggles.evaluate('my-project', 'new-checkout');Features
- Full TypeScript support with complete type definitions
- Dual ESM/CJS module support
- Built-in error handling with retry support
- All Kapable API endpoints covered
API Reference
See the Kapable Documentation for full API reference.
License
MIT
