kick-ts-api
v1.0.0
Published
Modern, secure TypeScript client for the Kick.com API with OAuth 2.1, retries, and rate limiting.
Maintainers
Readme
kick-ts-api
Modern, secure TypeScript client for the Kick.com API with OAuth 2.1, retries, and rate limiting.
Note: Kick's public API surface may evolve. Validate endpoints against
https://docs.kick.com/.
Install
pnpm add kick-ts-apiUsage
import { KickClient, Resources, StaticTokenProvider } from 'kick-ts-api';
const client = new KickClient({
tokenProvider: new StaticTokenProvider(process.env.KICK_TOKEN || ''),
});
const resources = new Resources(client);
const user = await resources.public.getUserBySlug('some-channel');
console.log(user);Features
- Robust HTTP client (timeouts, retries with backoff, 429/5xx retry, rate limiting)
- Token provider abstraction (plug your OAuth flow)
- Strict TypeScript types, zero
any - ESM + CJS builds, full type declarations
- Vitest test setup, ESLint + Prettier, TypeDoc docs
Security
- Never hardcode tokens. Use environment variables or secret stores.
- Sends
Authorization: Bearer <token>when a token provider is configured. - Handle scopes and token refresh in your token provider implementation.
License
MIT
