api-sdk
Use when working with the TypeScript SDK for making API calls to Bknd, handling authentication, and managing data operations from client or server code. Covers Api class initialization, CRUD operations, auth methods, and module-specific APIs.
npx skills add majiayu000/claude-skill-registry --skill api-sdk --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# TypeScript SDK The Bknd TypeScript SDK provides a type-safe, promise-based client for interacting with Bknd's REST API. Use it for both client-side browser applications and server-side code. ## What You'll Learn - Initialize the Api class with different auth strategies - Perform CRUD operations on entities - Handle authentication and token management - Access media and system APIs - Use type safety with auto-generated DB types ## Quick Start ```typescript import { Api } from "bknd"; const api = new Api({ host: "https://api.example.com" }); // Read data const posts = await api.data.readMany("posts", { limit: 10 }); // Login with password await api.auth.login("password", { email: "user@example.com", password: "pass" }); ``` ## Api Class The `Api` class is the main entry point for all SDK operations. ### Constructor Options ```typescript const api = new Api({ host: string, // API base URL (default: http://localhost) headers?: Headers, // Custom headers storage?: Storage, // For token persistence (see below) key?: string, // Token storage key (default: "auth") token?: string, // Direct JWT token user?: SafeUser | null, // User object (server-side) request?: Request, // Extract from H
- What You'll Learn
- Quick Start
- Api Class
- Constructor Options
- Storage Interface
- Initialization Patterns
- Data API
- Read Operations
- Create Operations
- Update Operations
- Delete Operations
- Utility Methods
- Auth API
- Media API
What does the api-sdk skill do?
Use when working with the TypeScript SDK for making API calls to Bknd, handling authentication, and managing data operations from client or server code. Covers Api class initialization, CRUD operations, auth methods, and module-specific APIs.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-sdk --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
